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
    }
  ]
}

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
integer
required

ID del cliente.

Body

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[]

Response

No Content