Initiate a SEPA Direct Debit transaction
Prerequisites
- Debtor's account status: any except
Closing
orClosed
- Merchant profile status:
Enabled
- Payment method status:
Enabled
- Direct debit payment mandate status:
Enabled
- [B2B only] Debtor's account type:
Company
Guide​
- Confirm you have a project access token or, if you're an account member, a user access token with
CanManageAccountMembership
permissions. - Call the
initiateSepaDirectDebitMerchantPayment
mutation. - Include the amount
value
andcurrency
. - Choose
mandateId
and add the payment mandate ID (line 4) from the declare a payment mandate guide. - Recommended: include your merchant's name in the
label
field (line 6). - Add validations and rejections that are helpful for you, as well as optional information such as a
reference
for your internal use.
Mutation​
Dates
Dates for this mutation use ISO 8601 convention: YYYY-MM-DDTHH-mm-ssZ
.
If the date is left empty, the transaction will be executed as soon as possible. If the date indicated is a non-business day, the transaction will be executed on the next business day.
🔎 Open the mutation in API Explorer
mutation InitiateSdd {
initiateSepaDirectDebitMerchantPayment(
input: {
mandateId: "$YOUR_MANDATE_ID"
amount: { value: "75", currency: "EUR" }
label: "Your Merchant's Name"
requestedExecutionAt: "2024-04-12T16:28:22.867Z"
}
) {
... on InitiateSepaDirectDebitMerchantPaymentSuccessPayload {
__typename
paymentId
}
... on ForbiddenRejection {
__typename
message
}
... on NotFoundRejection {
id
message
}
... on InternalErrorRejection {
__typename
message
}
... on ValidationRejection {
__typename
message
}
}
}
Payload​
Note the paymentId
(line 5) for your SEPA Direct Debit payment.
{
"data": {
"initiateSepaDirectDebitMerchantPayment": {
"__typename": "InitiateSepaDirectDebitMerchantPaymentSuccessPayload",
"paymentId": "$YOUR_PAYMENT_ID"
}
}
}
Next steps​
- An incoming SEPA Direct Debit (
SepaDirectDebitIn
) is created in the merchant's account with the statusUpcoming
. - On the settlement date, the transaction status changes automatically to
Booked
and rolling reserve begins. - After the indicated rolling reserve period, the merchant receives the payment.