Request a refund
Request a refund for a SEPA Direct Debit transaction with the API.
Prerequisites
- You're an account member with the
canInitiatePayments
membership permission. - You're authenticating with a user access token.
Guide​
- Call the
returnTransaction
mutation. - Add the
transactionId
andconsentRedirectUrl
. - Add the
ReturnTransactionSuccessPayload
, including theconsentUrl
andid
. - Add rejections (not shown).
Mutation​
🔎 Open the mutation in API Explorer
mutation RefundTransaction {
returnTransaction(
input: {
transactionId: "$TRANSACTION_ID"
consentRedirectUrl: "$REDIRECT_URL"
}
) {
... on ReturnTransactionSuccessPayload {
__typename
consent {
consentUrl
id
}
}
... on ReturnTransactionRejection {
__typename
message
}
... on ReturnTransactionNotFound {
__typename
message
}
Payload​
{
"data": {
"returnTransaction": {
"__typename": "ReturnTransactionSuccessPayload",
"consent": {
"consentUrl": "$CONSENT_URL",
"id": "$CONSENT_ID"
}
}
}
}