---
title: "Cadastrar endereço de uma loja"
method: POST
path: "/api/v2/me/companies/{storeId}/addresses"
---

# Cadastrar endereço de uma loja

`POST /api/v2/me/companies/{storeId}/addresses`

## Request

- Base URL: `https://sandbox.melhorenvio.com.br`
- URL: `https://sandbox.melhorenvio.com.br/api/v2/me/companies/{storeId}/addresses`
- Auth: none required
- TypeScript: <https://skmtc.dev/melhorenvio/apis/api-melhor-envio-sandbox/docs/api/v2/me/companies/:storeId/addresses/post.ts> (a function with typed inputs; its response is checked against the schema)

Cadastro e visualização de endereços e telefones de lojas

## Path parameters

- `storeId` string, required

## Headers

- `Content-type` string, required
- `Accept` string, required
- `Authorization` string, required
- `User-Agent` string, required

## Request body

- object
  - `postal_code` string, required: Código Postal - CEP / EX: 01010010
  - `address` string, required: Endereço | Logradouro / Ex: Av. Teste
  - `number` string, required: Número / Ex: 123
  - `complement` string, required: Complemento / Ex: Casa - Apto - ABC
  - `city` string, required: Cidade / Ex: São Paulo
  - `state` string, required: Estado / Ex: São Paulo

## Response `200`

200

- object
  - `id` integer
  - `label` string
  - `postal_code` string
  - `address` string
  - `number` string
  - `complement` string
  - `district` unknown
  - `latitude` unknown
  - `longitude` unknown
  - `confirmed_at` unknown
  - `created_at` string
  - `updated_at` string
  - `city` object
    - `id` integer
    - `city` string
    - `state` object
      - `id` integer
      - `state` string
      - `state_abbr` string
      - `country` object
        - `id` string
        - `country` string

## Other responses

- `404`: 404

---

[API](https://skmtc.dev/melhorenvio/apis/api-melhor-envio-sandbox.md) - [All operations](https://skmtc.dev/melhorenvio/apis/api-melhor-envio-sandbox/llms.txt) - [OpenAPI document](https://skmtc.dev/melhorenvio/apis/api-melhor-envio-sandbox/revisions/ffbe3939fc36?raw)
