Cancels a payment authorisation before it is captured, releasing the amount held on the card. Works for single and frequent authorisations.
Required scope: void:create
Segurança
accountId and apiKey
Void details
Free-text reason for the void. Required, up to 255 characters. This will appear in the bank statement / MB WAY application.
Exemplo:"Cancelling the duplicated authorisation"
- Sandboxhttps://api.test.easypay.pt/2.0/void/{id}
- Productionhttps://api.prod.easypay.pt/2.0/void/{id}
curl -i -X POST \
'https://api.test.easypay.pt/2.0/void/{id}' \
-H 'AccountId: 2b0f63e2-9fb5-4e52-aca0-b4bf0339bbe6' \
-H 'ApiKey: eae4aa59-8e5b-4ec2-887d-b02768481a92' \
-H 'Content-Type: application/json' \
-d '{
"descriptive": "Cancelling the duplicated authorisation",
"transaction_key": "order-1982652-void"
}'Created
An array of human-readable messages included in the response. These messages provide detailed information about the success of the operation or explain the reasons for any failure. This field is always present in the response to ensure clarity and transparency regarding the outcome of the API request.
Exemplo:
[ "Your request was successfully created" ]
Response
{ "status": "ok", "message": [ "Your request was successfully created" ], "id": "8010e7d5-9985-4ae3-b1bf-6b70019439c7" }