Skip to main content

List Cancellation Requests

API data

API Gateway
This API is used for payment gateway operations:

Retrieve cancellation request list

Used to retrieve the list of cancellation requests, with filtering options by status or cancellation ID. Supports pagination for better result management.

GET /v1/refund/list?status={status}&id={id}&skip={skip}&take={take}

Data dictionary - Query parameters

PARAMETERDESCRIPTIONTYPESIZENOTES
statusFilter by request statusstring50Optional. Values: PENDENTE, CANCELADO, APROVADO, REJEITADO
idFilter by a specific request IDguid-Optional.
skipNumber of records to skipint-Optional. Default: 0
takeNumber of records to returnint-Optional. Default: 10. Max: 100
{
"items": [
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"nsu": "123456789",
"authorizationCode": "ABC123",
"amount": 150.50,
"operationDate": "2024-11-12",
"installments": 1,
"status": "PENDENTE",
"description": "Solicitação do cliente"
},
{
"id": "7fb95f64-8827-5673-c4gd-3d074g77bgb7",
"nsu": "987654321",
"authorizationCode": "XYZ789",
"amount": 250.00,
"operationDate": "2024-11-11",
"installments": 3,
"status": "CANCELADO",
"description": "Produto não entregue"
}
],
"totalCount": 25,
"skip": 0,
"take": 10
}

Data dictionary - Response

FIELDDESCRIPTIONTYPENOTES
itemsList of cancellation requestsarray-
items[].idUnique identifier of the requestguid-
items[].nsuOperation identification numberstring-
items[].authorizationCodeOperation authorization codestring-
items[].amountTotal transaction amountdecimal-
items[].operationDateOperation datedateFormat: YYYY-MM-DD
items[].installmentsTotal number of installmentsint-
items[].statusRequest statusstringPENDENTE, CANCELADO, APROVADO, REJEITADO
items[].descriptionReason for the requeststring-
totalCountTotal records foundintConsiders applied filters
skipRecords skippedintPagination value
takeRecords returnedintPagination value
Usage tips
  • Use the status parameter to filter requests in a specific state
  • Use the id parameter when you need to retrieve a specific request
  • Pagination is useful for large result sets
  • If id is provided, the other filters are ignored
Sorting

Results are always sorted by creation date in descending order (most recent first).