Ir al contenido
UnoPagoDocumentación
Referencia de la APICustomer dataCustomers

Get all customers

GET
/v1/customers

This API is used to get all customers. It supports pagination

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.

cursor?string
limit?number
Rangovalue <= 250
Por defecto100

Cuerpo de la respuesta

Successful response

application/json
  1. response
results*array<>
total*number
totalPages*number
nextCursor?|

The cursor to get the next page of results

exchangeRates?
Ejemplo de solicitud
curl -X GET 'https://api.unopago.com/v1/customers'
Ejemplo de respuesta
{  "results": [    {      "id": "string",      "accountId": "string",      "externalId": "string",      "mainContactId": "string",      "nationalId": "string",      "firstName": "string",      "lastName": "string",      "email": "string",      "phoneNumber": "string",      "address": "string",      "createdAt": "string",      "updatedAt": "string",      "tags": [        {          "entityTypes": [            "CUSTOMER"          ],          "id": "string",          "accountId": "string",          "name": "string",          "emoji": "string",          "color": "string",          "description": "string",          "isActive": true,          "sortOrder": -9007199254740991,          "createdAt": "string",          "updatedAt": "string",          "deletedAt": "string"        }      ],      "syncedFrom": {        "id": "string",        "name": "string"      }    }  ],  "total": 0,  "totalPages": 0,  "nextCursor": "string",  "exchangeRates": {    "property1": {      "rate": 0,      "rateDate": "string",      "daysAhead": 0    },    "property2": {      "rate": 0,      "rateDate": "string",      "daysAhead": 0    }  }}