Reembolsos

Consultar Reembolso

GET/v1/wallet/refunds
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}}

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âmetroObrig.Descrição
limitQuantidade por página (padrão 15)
lastKeyToken de paginação
startDateData inicial (ISO 8601)
endDateData final (ISO 8601)
accountIdM2M: 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
  }
}