Ir al contenido
UnoPagoDocumentación
Referencia de la APICustomer dataCustomers

Get a customer by its external id

GET
/v1/customers/external-id/{externalId}

Returns the customer whose current external id is exactly externalId. The match is exact: a cédula or RIF finds the customer only if it is that customer's external id.

Autorización

bearerAuth
headerAutorizaciónBearer <token>

Your API key, created in Configuración → Claves API. The key alone, without the Bearer prefix, is accepted too.

Parámetros de ruta

externalId*string

Cuerpo de la respuesta

Successful response

application/json
  1. response
id*string
Patrón^[cC][0-9a-z]{6,}$
Formatocuid
accountId*string
externalId*string|null
mainContactId*string|null
nationalId*string|null
firstName*string
lastName*string
email*string|null
phoneNumber*string|null
address*string|null
createdAt*string
updatedAt*string
foundContact?
Ejemplo de solicitud
curl -X GET 'https://api.unopago.com/v1/customers/external-id/string'
Ejemplo de respuesta
{  "id": "string",  "accountId": "string",  "externalId": "string",  "mainContactId": "string",  "nationalId": "string",  "firstName": "string",  "lastName": "string",  "email": "string",  "phoneNumber": "string",  "address": "string",  "createdAt": "string",  "updatedAt": "string",  "foundContact": {    "gender": "MALE",    "id": "string",    "externalId": "string",    "email": "string",    "phoneNumber": "string",    "emailVerified": "string",    "phoneVerified": "string",    "firstStepsStartedAt": "string",    "firstName": "string",    "lastName": "string",    "nationalId": "string",    "dateOfBirth": "string",    "nationality": "string",    "address": "string",    "createdAt": "string",    "updatedAt": "string"  }}