---
updatedAt: 2026-06-18T14:03:31.000Z
agentTools:
  projectIndex: https://docs.melhorenvio.com.br/llms.txt
---

# Cadastrar loja

Cadastro e informações das lojas

<div style={{ textAlign: "justify" }}>

Através da API também é possível gerenciar o cadastro das lojas do usuário dentro do Melhor Envio. Para cadastrar uma nova loja é necessário informar alguns dados básicos. Na resposta da requisição será retornado um `id` que deverá ser utilizado posteriormente em futuras interações.

</div>

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "api-melhor-envio-sandbox",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://sandbox.melhorenvio.com.br/",
      "description": "Ambiente de Sandbox (Testes)"
    },
    {
      "url": "https://melhorenvio.com.br/",
      "description": "Ambiente de Produção (Real)"
    }
  ],
  "security": [
    {}
  ],
  "paths": {
    "/api/v2/me/companies": {
      "post": {
        "summary": "Cadastrar loja",
        "description": "Cadastro e informações das lojas",
        "operationId": "cadastrar-loja",
        "parameters": [
          {
            "name": "Accept",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "default": "application/json"
            }
          },
          {
            "name": "Content-type",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "default": "application/json"
            }
          },
          {
            "name": "Authorization",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "default": "Bearer token"
            }
          },
          {
            "name": "User-Agent",
            "in": "header",
            "description": "É obrigatório que seja adicionado o cabeçalho HTTP User-Agent com o nome da sua aplicação junto a um email de contato/suporte.",
            "required": true,
            "schema": {
              "type": "string",
              "default": "Aplicação (email para contato técnico)"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "name",
                  "email",
                  "description",
                  "company_name",
                  "document",
                  "state_register"
                ],
                "properties": {
                  "name": {
                    "type": "string",
                    "description": "Nome / Ex: Melhor Loja"
                  },
                  "email": {
                    "type": "string",
                    "description": "Endereço de contato e-mail / Ex: contato@melhorloja.me"
                  },
                  "description": {
                    "type": "string",
                    "description": "Descrição da Loja"
                  },
                  "company_name": {
                    "type": "string",
                    "description": "Nome da Loja"
                  },
                  "document": {
                    "type": "string",
                    "description": "Número do Documento / Ex: 89.157.108/0001-04"
                  },
                  "state_register": {
                    "type": "string",
                    "description": "Inscrição Estadual / Ex: 476.210.979.481"
                  }
                }
              },
              "examples": {
                "Cadastrar": {
                  "value": {
                    "name": "Melhor Loja",
                    "email": "contato@melhorloja.me",
                    "description": "Descrição da loja",
                    "company_name": "Nome da Loja",
                    "document": "89.157.108/0001-04",
                    "state_register": "476.210.979.481"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"name\": \"Melhor Loja\",\n  \"email\": \"contato@melhorloja.me\",\n  \"description\": \"Descrição da loja\",\n  \"company_name\": \"Nome da Loja\",\n  \"document\": \"89157108000104\",\n  \"state_register\": \"476210979481\",\n  \"id\": \"781f86be-c3be-47e7-9bef-70b8675a55c3\",\n  \"updated_at\": \"2022-03-30 16:53:56\",\n  \"created_at\": \"2022-03-30 16:53:56\"\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string",
                      "example": "Melhor Loja"
                    },
                    "email": {
                      "type": "string",
                      "example": "contato@melhorloja.me"
                    },
                    "description": {
                      "type": "string",
                      "example": "Descrição da loja"
                    },
                    "company_name": {
                      "type": "string",
                      "example": "Nome da Loja"
                    },
                    "document": {
                      "type": "string",
                      "example": "89157108000104"
                    },
                    "state_register": {
                      "type": "string",
                      "example": "476210979481"
                    },
                    "id": {
                      "type": "string",
                      "example": "781f86be-c3be-47e7-9bef-70b8675a55c3"
                    },
                    "updated_at": {
                      "type": "string",
                      "example": "2022-03-30 16:53:56"
                    },
                    "created_at": {
                      "type": "string",
                      "example": "2022-03-30 16:53:56"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "401",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"message\": \"Unauthenticated.\"\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "example": "Unauthenticated."
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```