Skip to main content

Open Withdrawal MED

Use this endpoint to open a MED for a withdrawal, identifying it by the endToEnd.

Unlike transaction MEDs, which arrive through the acquirer, this one is opened by you. To look up the withdrawal MEDs already opened, use List Withdrawal MEDs.

Available Environments​

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

Endpoint​

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

Request Body​

NameTypeRequiredDescriptionValidations
endToEndstringYesEnd-to-end identifier of the disputed withdrawalMust be between 8 and 255 characters
reasonStatusstring (enum) - SCAM, FRAUDULENT_ACCESS, OPERATIONAL_ERROR, OTHERYesReason the MED is being openedMust be a valid enum
messagestringNoMessage describing the caseMust be between 2 and 255 characters

Request Example​

curl --request POST \
--url https://api.gateway.com.br/core/med/withdrawal \
--header 'Authorization: Bearer your-jwt-token' \
--header 'Content-Type: application/json' \
--data '{
"endToEnd": "E12345678202603061249abcdef0123",
"reasonStatus": "OPERATIONAL_ERROR",
"message": "Saque enviado para a chave errada"
}'

Success Response​

The endpoint returns 201 Created with no body. Use List Withdrawal MEDs to follow the case you opened.

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