Cobranças

Listar Cobranças

GET/v1/charges
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 todas as cobranças da conta com filtros por status, método de pagamento e data.

Listar cobranças

const url = 'https://sandbox.validapay.com.br/v1/charges?limit=15&lastKey=&startDate=&endDate=&status=&search=&document=&paymentMethod=&priceId=&productId=';

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": [
    {
      "chargeId": "cha_xxx",
      "status": "PAID",
      "amount": 100.0
    }
  ],
  "pagination": {
    "total": 20,
    "hasMore": true,
    "lastKey": "eyJ..."
  }
}