v1

latestOpenAPI 3.1.02026-07-24290162.6 KB

Listar telefones de uma loja

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

get/api/v2/me/companies/{storeId}/phones

Path parameters

storeIdstring required

ID da Loja

Headers

Acceptstring required
Content-Typestring required
Authorizationstring required
User-Agentstring required

É 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.

Response

200

current_pageinteger
first_page_urlstring
frominteger
last_pageinteger
last_page_urlstring
{"stackTrail":"paths:/api/v2/me/companies/{storeId}/phones:get:responses:200:content:application/json:schema:properties:next_page_url","oasType":"schema","type":"unknown"}
pathstring
per_pageinteger
{"stackTrail":"paths:/api/v2/me/companies/{storeId}/phones:get:responses:200:content:application/json:schema:properties:prev_page_url","oasType":"schema","type":"unknown"}
tointeger
totalinteger

Example response

{
  "current_page": 1,
  "data": [
    {
      "id": 42304,
      "phone": "5340302030",
      "type": "mobile",
      "country_id": "BR",
      "created_at": "2022-03-30 20:32:31",
      "updated_at": "2022-03-30 20:32:31"
    }
  ],
  "first_page_url": "https://sandbox.melhorenvio.com.br/api/v2/me/companies/bde0e453-1d10-4245-a447-d376ae24be55/phones?page=1",
  "from": 1,
  "last_page": 1,
  "last_page_url": "https://sandbox.melhorenvio.com.br/api/v2/me/companies/bde0e453-1d10-4245-a447-d376ae24be55/phones?page=1",
  "path": "https://sandbox.melhorenvio.com.br/api/v2/me/companies/bde0e453-1d10-4245-a447-d376ae24be55/phones",
  "per_page": 10,
  "to": 2,
  "total": 2
}