Saltar al contenido principal
GET
/
customers
/
{customerId}
/
addresses
Listar direcciones de cliente
curl --request GET \
  --url https://sandbox.api.riqra.com/customers/{customerId}/addresses \
  --header 'api-key: <api-key>'
{
  "data": [
    {
      "id": 123,
      "customerId": 123,
      "line": "<string>",
      "reference": "<string>",
      "isDefault": true,
      "createdAt": "<string>",
      "contact": {
        "name": "<string>",
        "phone": "<string>",
        "documentNumber": "<string>",
        "email": "<string>"
      },
      "apartment": "<string>",
      "erpCode": "<string>",
      "zipCode": "<string>",
      "extraFields": {},
      "localityId": 123,
      "coordinates": [
        {}
      ]
    }
  ]
}

Authorizations

api-key
string
header
required

Todas las llamadas al API tienen que contener este header junto a la clave para poder autenticar y autorizar al cliente.

Path Parameters

customerId
string
required

ID del cliente.

Response

200 - application/json

OK

data
object[]
required
Minimum array length: 1