Cancels an authorised payment.
Cancels the authorisation hold on a payment, returning a unique reference for this request. You can cancel payments after authorisation only for payment methods that support distinct authorisations and captures.
For more information, refer to Cancel.
Body
-
additionalData object
This field contains additional data, which may be required for a particular modification request.
The additionalData object consists of entries, each of which includes the key and value. For more information on possible key-value pairs, refer to the ModificationRequest.additionalData section.
-
The merchant account that is used to process the payment.
-
modificationAmount object
The amount that needs to be captured/refunded. Required for
/capture
and/refund
, not allowed for/cancel
. Thecurrency
must match the currency used in authorisation, thevalue
must be smaller than or equal to the authorised amount. -
originalMerchantReference string
The original merchant reference to cancel.
-
The original pspReference of the payment to modify. This reference is returned in:
- authorisation response
- authorisation notification
-
reference string
Optionally, you can specify your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters.
-
splits array[object]
The details of how the payment should be split when distributing a payment to a Marketpay Marketplace and its Accounts.
-
tenderReference string
The transaction reference provided by the PED. For Point-of-sale integrations only.
-
uniqueTerminalId string
Unique terminal ID for the PED that originally processed the request. For Point-of-sale integrations only.
Responses
-
OK - the request has succeeded.
-
Bad Request - a problem reading or understanding the request.
-
Unauthorized - authentication required.
-
Forbidden - insufficient permissions to process the request.
-
Unprocessable Entity - a request validation error.
-
Internal Server Error - the server could not process the request.
curl \
-X POST https://pal-test.adyen.com/pal/servlet/Payment/v40/cancel \
-H "Content-Type: application/json" \
-d '{"additionalData":{},"merchantAccount":"string","modificationAmount":{"currency":"string","value":42},"originalMerchantReference":"string","originalReference":"string","reference":"string","splits":[{"account":"string","amount":{"currency":"string","value":42},"description":"string","reference":"string","type":"Commission"}],"tenderReference":"string","uniqueTerminalId":"string"}'
{
"additionalData": {},
"merchantAccount": "string",
"modificationAmount": {
"currency": "string",
"value": 42
},
"originalMerchantReference": "string",
"originalReference": "string",
"reference": "string",
"splits": [
{
"account": "string",
"amount": {
"currency": "string",
"value": 42
},
"description": "string",
"reference": "string",
"type": "Commission"
}
],
"tenderReference": "string",
"uniqueTerminalId": "string"
}
{
"additionalData": {},
"merchantAccount": "string",
"modificationAmount": {
"currency": "string",
"value": 42
},
"originalMerchantReference": "string",
"originalReference": "string",
"reference": "string",
"splits": [
{
"account": "string",
"amount": {
"currency": "string",
"value": 42
},
"description": "string",
"reference": "string",
"type": "Commission"
}
],
"tenderReference": "string",
"uniqueTerminalId": "string"
}
{
"additionalData": {},
"pspReference": "string",
"response": "[capture-received]"
}
{
"additionalData": {},
"pspReference": "string",
"response": "[capture-received]"
}