- Modifications
- General
Cancel an in-person refund
POST
/voidPendingRefund
Modifications
tenderReference
, or the pspReference
. We recommend implementing based on the tenderReference
, as this is generated for both offline and online transactions.Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/voidPendingRefund' \
--header 'Content-Type: application/json' \
--data-raw ''
Response Response Example
200 - Example 1
{
"additionalData": {
"property1": "string",
"property2": "string"
},
"pspReference": "string",
"response": "[capture-received]"
}
Request
Body Params application/json
additionalData
object |
optional
Any of
merchantAccount
string
required
modificationAmount
object (Amount)
optional
/capture
and /refund
, not allowed for /cancel
. The currency
must match the currency used in authorisation, the value
must be smaller than or equal to the authorised amount.value
integer <int64>
required
mpiData
object (ThreeDSecureData)
optional
authenticationResponse
enum<string>
optional
transStatus
from the challenge result. If the transaction was frictionless, omit this parameter.Allowed values:
YNUA
cavv
string
optional
cavvAlgorithm
string
optional
challengeCancel
enum<string>
optional
Allowed values:
01020304050607
directoryResponse
enum<string>
optional
transStatus
from the ARes
.Allowed values:
ACDINRUY
dsTransID
string
optional
eci
string
optional
riskScore
string
optional
threeDSVersion
string
optional
tokenAuthenticationVerificationValue
string
optional
transStatusReason
string
optional
transStatus
field has the specified value. For possible values, refer to our docs.xid
string
optional
originalMerchantReference
string
optional
originalReference
string
optional
This reference is returned in:
platformChargebackLogic
object (PlatformChargebackLogic)
optional
behavior
enum<string>
optional
Allowed values:
deductAccordingToSplitRatiodeductFromLiableAccountdeductFromOneBalanceAccount
costAllocationAccount
string
optional
targetAccount
string
optional
reference
string
optional
Maximum length: 80 characters.
splits
array[object (Split) {5}]
optional
account
string
optional
type
is MarketPlace or BalanceAccount.amount
object (SplitAmount)
required
description
string
optional
reference
string
optional
type
is MarketPlace or BalanceAccount. For the other types, we also recommend sending a reference so you can reconcile the split and the associated payment in the transaction overview and in the reports. If the reference is not provided, the split is reported as part of the aggregated TransferBalance record type in Adyen for Platforms.type
enum<string>
required
Possible values: Default, PaymentFee, VAT, Commission, MarketPlace, BalanceAccount, Remainder, Surcharge, Tip.
Allowed values:
BalanceAccountCommissionDefaultMarketPlacePaymentFeeRemainderSurchargeTipVATVerification
tenderReference
string
optional
uniqueTerminalId
string
optional
Examples
Responses
🟢200OK - the request has succeeded.
application/json
Body
additionalData
object
optional
Additional properties
string
optional
pspReference
string
required
response
enum<string>
required
Allowed values:
[capture-received][cancel-received][refund-received][cancelOrRefund-received][adjustAuthorisation-received][donation-received][technical-cancel-received][voidPendingRefund-received]
🟠400Bad Request - a problem reading or understanding the request.
🟠401Unauthorized - authentication required.
🟠403Forbidden - insufficient permissions to process the request.
🟠422Unprocessable Entity - a request validation error.
🔴500Internal Server Error - the server could not process the request.
Modified at 2023-08-15 08:20:06