Saltar al contenido principal
PATCH
/
customers
/
{customerId}
/
addresses
/
{addressId}
Actualizar
curl --request PATCH \
  --url https://sandbox.api.riqra.com/customers/{customerId}/addresses/{addressId} \
  --header 'Content-Type: application/json' \
  --header 'api-key: <api-key>' \
  --data '
{
  "line": "<string>",
  "apartment": "<string>",
  "reference": "<string>",
  "erpCode": "<string>",
  "zipCode": "<string>",
  "extraFields": "<string>",
  "isDefault": true,
  "contact": {
    "name": "<string>",
    "phone": "<string>",
    "documentNumber": "<string>",
    "email": "<string>"
  },
  "coordinates": [
    123
  ]
}
'
{
  "errors": [
    {
      "message": "<string>",
      "code": 123
    }
  ]
}

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
addressId
string
required

Body

application/json
line
string
Minimum string length: 1
apartment
string
Minimum string length: 1
reference
string
erpCode
string
Minimum string length: 1
zipCode
string
extraFields
string
isDefault
boolean
contact
object
coordinates
number[]
Required array length: 2 elements

Response

No Content