Clientes

Listar Clientes

GET/v1/customers
Base URL Produção:https://api.validapay.com.br
Base URL Sandbox:https://sandbox.validapay.com.br

Autenticação

bearerAuthorizationstring · header · obrigatório

Envie no header:

Authorization: Bearer {{token}}

Lista todos os clientes cadastrados com suporte a busca por nome, documento e paginação.

Listar clientes

Scopes: customers/read

const url = 'https://sandbox.validapay.com.br/v1/customers?limit=15&lastKey=&startDate=&endDate=&document=&search=';

const options = {
  method: 'GET',
  headers: {
    'Authorization': 'Bearer {{token}}'
  },
};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));

Response Examples

200200
{
  "items": [
    {
      "customerId": "cus_xxx",
      "name": "João da Silva"
    }
  ],
  "pagination": {
    "total": 5,
    "hasMore": false
  }
}