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

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.

Body

application/json
password
string
required
Minimum string length: 1
erpCode
string
firstName
string
Minimum string length: 1
lastName
string
Minimum string length: 1
email
string

Requerido si los clientes usan un email para iniciar sesión.

Minimum string length: 1
loginCode
string

Requerido si los clientes usan un código para iniciar sesión, sino ignore este campo.

Minimum string length: 1
phone
string
Minimum string length: 1
notification
object
priceListId
number

Si no esta especificado, la lista de precios por defecto será asignada.

documents
object[]
Minimum array length: 1

Response

Created