Saltar al contenido principal

Información del cliente [opcional]

PUT /payment/api/v1/{request_id}/customer

Petición

Parámetros URL

  • request_id(string): Identificador único del proceso de venta. Este valor se genera en la primera llamada API de generación del enlace de cobro.

Payload

  • customer (object, required): contiene los siguientes campos
    • name (string, required): nombre del cliente
    • surname (string, required): apellidos del cliente
    • phone (string, required):
    • title (string, optional)
    • email (string, optional): dirección email del cliente
    • document_number (string, optional):
    • document_expiration_date (string, optional):
    • birth_date (string, optional):
    • nationality (string, optional):
  • shipping (object, required): contiene los siguientes campos
    • title (string, required)
    • name (string, required): nombre del cliente
    • surname (string, required): apellidos del cliente
    • company_name (string, required):
    • address (object, required): contiene los siguientes campos
      • line_1 (string, required):
      • line_2 (string, required):
      • postal_code (string, required):
      • city (string, required):
      • country (string, required): Alpha-2 code of iso3166
    • email (string, optional): dirección email del cliente
    • phone (string, optional):
    • company_title (string, optional):
  • billing (object, optional): contiene los siguientes campos. Si no se proporcionan, se inferirán de la dirección de envío.
    • name (string, optional): nombre del cliente
    • surname (string, optional): apellidos del cliente
    • email (string, optional): dirección email del cliente
    • phone (string, optional):
    • address (object, optional): contiene los siguientes campos
      • line_1 (string, optional):
      • line_2 (string, optional):
      • postal_code (string, optional):
      • city (string, optional):
      • country (string, optional): Alpha-2 code of iso3166

Respuesta

Payload

  • code (string): Código de respuesta. 0 es ok, todo lo demás debe ser tratado como un error.

Ejemplos

Petición

{
"key": "{{key}}",
"resource": "{{resource}}",
"nonce": "{{nonce}}",
"mode": "sha256",
"payload": {
"customer": {
"title": "mr",
"name": "Jhon",
"surname": "Doe",
"email": "jhon@doe.es",
"phone": "+346123123123",
"document_number": "55593310X",
"document_expiration_date": "2024-02-27T12:00:00+01:00",
"birth_date": "1982-11-03T12:00:00+01:00",
"nationality": "ES"
},
"shipping": {
"title": "mr",
"name": "Jhon",
"surname": "Doe",
"email": "jhon@doe.es",
"phone": "+346123123123",
"company_title": "Express 24H",
"company_name": "Express",
"address": {
"line_1": "Street 123",
"line_2": "Another information",
"postal_code": "123456",
"city": "City",
"country": "ES"
}
},
"billing": {
"name": "Jhon",
"surname": "Doe",
"email": "jhon@doe.es",
"phone": "+346123123123",
"company_title": "Express 24H",
"company_name": "Express",
"address": {
"line_1": "Street 123",
"line_2": "Another information",
"postal_code": "123456",
"city": "City",
"country": "ES"
}
}
}
}

Respuesta

{
"type": "resource.status",
"code": "0",
"detail": "Customer data successfully updated.",
"payload": {},
"request_id": "634ff63c198fd062244ec5b9",
"uuid": "634ff63c198fd062244ec5b9"
}