Cobranças
Listar Cobranças
GET
/v1/chargesBase URL Produção:
https://api.validapay.com.brBase URL Sandbox:
https://sandbox.validapay.com.brAutenticaçã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..."
}
}