Reembolsos
Consultar Reembolso
GET
/v1/wallet/refundsBase 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}}Consulta o status de um reembolso já solicitado.
Listar reembolsos
Retorna o histórico de reembolsos solicitados, com status de processamento, valor, motivo e cobrança original relacionada.
| Parâmetro | Obrig. | Descrição |
|---|---|---|
limit | ❌ | Quantidade por página (padrão 15) |
lastKey | ❌ | Token de paginação |
startDate | ❌ | Data inicial (ISO 8601) |
endDate | ❌ | Data final (ISO 8601) |
accountId | ❌ | M2M: conta específica |
const url = 'https://sandbox.validapay.com.br/v1/wallet/refunds?limit=15&lastKey=&startDate=&endDate=&accountId=';
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": [
{
"refundId": "ref_xxx",
"status": "COMPLETED",
"amount": 100.0,
"reason": "CUSTOMER_REQUEST",
"chargeId": "cha_xxx",
"endToEndId": "E...",
"createdAt": "2024-01-15T10:30:00Z"
}
],
"pagination": {
"total": 3,
"limit": 15,
"hasMore": false,
"lastKey": null
}
}