Saltar al contenido principal
PATCH
/
customers
/
{customerId}
Actualizar
curl --request PATCH \
  --url https://sandbox.api.riqra.com/customers/{customerId} \
  --header 'Content-Type: application/json' \
  --header 'api-key: <api-key>' \
  --data '
{
  "erpCode": "<string>",
  "loginCode": "<string>",
  "firstName": "<string>",
  "lastName": "<string>",
  "phone": "<string>",
  "email": "<string>",
  "password": {
    "value": "<string>",
    "sendToCustomer": true
  },
  "priceListId": 123,
  "documents": [
    {
      "number": "<string>",
      "fiscalName": "<string>",
      "fiscalAddress": "<string>",
      "forTaxes": true,
      "email": "<string>",
      "isDefault": true
    }
  ]
}
'
{
  "errors": [
    {
      "message": "<string>",
      "code": 123
    }
  ]
}

Autorizaciones

api-key
string
header
requerido

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

Parámetros de ruta

customerId
integer
requerido

ID del cliente.

Cuerpo

application/json
erpCode
string
loginCode
string
firstName
string
lastName
string
phone
string
email
string
password
object
priceListId
number

El id de la lista de precios al cual el cliente pertenece.

documents
object[]

Respuesta

No Content