Mandate Reference API
POST/rest/create_mandate_reference
/rest/create_mandate_referenceThe Mandate Reference API is used to create SEPA mandate references before a payment is submitted. SEPA Direct Debit payments can either provide the mandate reference directly in the Payment API via sepa_mandate, or create it upfront with this endpoint.
This endpoint is used with SEPA Direct Debit for both schemes: dd (B2C) and dd_b2b (B2B).
Mandate Reference API Parameters
payment_typeStringrequiredUse
dd for the SEPA Direct Debit B2C scheme or dd_b2b for the SEPA Direct Debit B2B schemerecurringIntegerSet to
1 for a recurring mandate. Omit for a one-time mandatefirst_nameStringCustomer's first name
last_nameStringCustomer's last name
emailStringCustomer's email address
addressStringStreet address
address2StringSecond address line
cityStringCity of the customer
postal_codeStringPostal code of the customer
stateStringState or region of the customer
countryStringCountry code in
ISO 3166-1 alpha-2phoneStringCustomer's phone number
account_holderStringBank account holder's name
ibanStringIBAN of the bank account
bicStringBIC of the bank account
Example Request
POST /rest/create_mandate_reference
Authorization: Basic <base64(api_key:api_password)>
Content-Type: application/json
{
"payment_type": "dd",
"recurring": 1,
"first_name": "Max",
"last_name": "Mustermann",
"account_holder": "Max Mustermann",
"iban": "DE89370400440532013000"
}
Mandate Reference API Response
transaction_idStringID of the created transaction. For recurring SEPA payments, use it later as
original_transaction_idtokenStringMandate reference token to display to the customer and store for later use as
sepa_mandatestatus_codeIntegerstatusStringStatus of the transaction
error_codeIntegerError code for the response
order_idStringOrder ID of the transaction when available
Example Response
{
"transaction_id": "c2a6bf6d-2dd7-4a9c-b4de-2d04347d802b",
"token": "a7678918bfbbfa449cf9ff78446b60a4",
"status_code": 9,
"status": "registered",
"error_code": 0,
"order_id": "123000"
}
Typical Flow
- Create a mandate reference with
POST /rest/create_mandate_reference. - Show the returned
token(mandate reference) to the customer as part of the SEPA mandate text. - Store the returned
transaction_id. - Create the actual SEPA payment with the Payment API.
- For recurring collections, use the stored
transaction_idasoriginal_transaction_id.
note
If you already have your own mandate reference, you can skip this endpoint and send it directly as sepa_mandate in the Payment API.