Skip to main content

List Withdrawal MEDs

Use this endpoint to list the withdrawal MEDs, with filters by period, status and data of the disputed withdrawal.

Available Environments​

https://api.gateway.com.br/core

Endpoint​

  • Method: GET
  • Endpoint: /med/withdrawal
  • Authentication: Bearer token

Query Params​

ℹ️ Dates in ISO

The startDate and endDate fields must be sent as an ISO date string with time.

Example:

  • 2026-03-06T12:00:00.000Z
NameTypeRequiredDescriptionValidations
startDatestringNoStart date of the filterMust be an ISO date string with time
endDatestringNoEnd date of the filterMust be an ISO date string with time
statusstring[] (enum) - PENDING, APPEALED, APPROVED, REJECTEDNoList of statuses to filter byMust be a non-empty array with no duplicates
idstring (UUID)NoMED identifierMust be a valid UUID
withdrawalIdstring (UUID)NoIdentifier of the disputed withdrawalMust be a valid UUID
endToEndstringNoEnd-to-end identifier of the withdrawalMust be between 8 and 255 characters
amountnumberNoMED amount (integer, in cents)Must be an integer in cents; minimum 1 (R$0.01) and maximum 10000000 (R$100,000.00)
paymentMethodstring (enum) - PIXNoPayment methodMust be a valid enum

Request Example​

curl --request GET \
--url "https://api.gateway.com.br/core/med/withdrawal?startDate=2026-03-01T00:00:00.000Z&endDate=2026-03-24T23:59:59.999Z&status=PENDING" \
--header 'Authorization: Bearer your-jwt-token'

Success Response​

FieldTypeRequiredDescription
totalPagesnumberYesTotal pages
currentPagenumberYesCurrent page
perPagenumberYesItems per page
dataarrayYesList of withdrawal MEDs

Fields of the item in data​

Each item has the same shape as Get Withdrawal MED, including the AccountHolder, UserVo and StatusHistory sub-objects.

Response Example​

Masked data

Sensitive values may be masked with ***.

{
"totalPages": 1,
"currentPage": 1,
"perPage": 20,
"data": [
{
"id": "553e8400-e29b-41d4-a716-436251480000",
"acquirer": "ACQUIRER_EXEMPLO",
"endToEnd": "E12345678202603061249abcdef0123",
"notificationId": null,
"withdrawalId": "553e8400-e29b-41d4-a716-436251480001",
"status": "PENDING",
"origin": "USER",
"reason": "OPERATIONAL_ERROR",
"amount": 10000,
"paymentMethod": "PIX",
"payer": null,
"receiver": null,
"message": "Saque enviado para a chave errada",
"user": {
"name": "Usuário Exemplo",
"email": "usuario@exemplo.com",
"createdAt": "2026-01-15T10:00:00.000Z"
},
"statusHistory": [
{
"status": "PENDING",
"date": "2026-03-06T12:49:04.681Z",
"durationInMilliseconds": 1000
}
],
"medDate": "2026-03-06T12:49:04.681Z",
"createdAt": "2026-03-06T12:49:04.681Z",
"updatedAt": "2026-03-06T12:49:04.681Z"
}
]
}

Possible Errors​

CodeDescriptionSolution
401Invalid credentialsCheck your credentials
403No permission/authorizationContact support
422Invalid or missing dataCheck the format of the data
422ValidationsContact support
500Internal errorContact support