POST
/
v2.01
/
{ClientId}
/
mandates
/
directdebit
/
web
{
    "BankAccountId": "bankacc_m_01J999AWHFHW2PQ1ADNQ46AYE9",
    "Culture": "EN",
    "ReturnURL": "https://docs.mangopay.com/please-ignore",
    "Tag": "Created using the Mangopay API Postman collection"
}
{
    "Scheme": null,
    "BankAccountId": "bankacc_m_01J999AWHFHW2PQ1ADNQ46AYE9",
    "BankReference": null,
    "Culture": "EN",
    "DocumentURL": "https://api.sandbox.mangopay.com/webhook/eu/public/mandates/e8a73d/dfbdce2a12a442bfae973e56777b3ddb/document?version=2.01",
    "ReturnURL": "https://docs.mangopay.com/please-ignore?MandateId=mdt_m_01J999B9HSEDH9CZDEXXYZGHEZ",
    "RedirectURL": "https://api.sandbox.mangopay.com/mvc/eu/public/mandates/e8a73d/dfbdce2a12a442bfae973e56777b3ddb/confirmation?version=2.01",
    "Id": "mdt_m_01J999B9HSEDH9CZDEXXYZGHEZ",
    "CreationDate": 1727962392,
    "Status": "CREATED",
    "UserId": "user_m_01J8SY95DQ5CM7DH43NQCAS65T",
    "ExecutionType": "WEB",
    "MandateType": "DIRECT_DEBIT",
    "Tag": "Created using the Mangopay API Postman collection",
    "ResultCode": null,
    "ResultMessage": null
}
Note – Mandate expires after 1 hourIf not confirmed within 1 hour of the CreationDate, the Mandate expires with the error 001807 and a new one must be created.
For SDD, if the BankAccountId is a Danish IBAN (starting DK), this endpoint returns a 400 error because they are not currently supported.

Body parameters

BankAccountId
string
required
The unique identifier of the bank account.Warning: The Bank Account Type must be IBAN for the SEPA scheme and GB for the Bacs scheme.
Culture
string
required
Allowed values: One of the supported languages in the ISO 639-1 format: DE, EN, ES, FR, IT, NL, PLThe language in which the mandate confirmation page is to be displayed. This value only applies to mandates with the SEPA Scheme.
ReturnURL
string
required
Max. length: 220 charactersThe URL to which the user is returned after the payment, whether the transaction is successful or not.
Tag
string
Max. length: 255 charactersCustom data that you can add to this object.

Responses

{
    "Scheme": null,
    "BankAccountId": "bankacc_m_01J999AWHFHW2PQ1ADNQ46AYE9",
    "BankReference": null,
    "Culture": "EN",
    "DocumentURL": "https://api.sandbox.mangopay.com/webhook/eu/public/mandates/e8a73d/dfbdce2a12a442bfae973e56777b3ddb/document?version=2.01",
    "ReturnURL": "https://docs.mangopay.com/please-ignore?MandateId=mdt_m_01J999B9HSEDH9CZDEXXYZGHEZ",
    "RedirectURL": "https://api.sandbox.mangopay.com/mvc/eu/public/mandates/e8a73d/dfbdce2a12a442bfae973e56777b3ddb/confirmation?version=2.01",
    "Id": "mdt_m_01J999B9HSEDH9CZDEXXYZGHEZ",
    "CreationDate": 1727962392,
    "Status": "CREATED",
    "UserId": "user_m_01J8SY95DQ5CM7DH43NQCAS65T",
    "ExecutionType": "WEB",
    "MandateType": "DIRECT_DEBIT",
    "Tag": "Created using the Mangopay API Postman collection",
    "ResultCode": null,
    "ResultMessage": null
}
{
    "BankAccountId": "bankacc_m_01J999AWHFHW2PQ1ADNQ46AYE9",
    "Culture": "EN",
    "ReturnURL": "https://docs.mangopay.com/please-ignore",
    "Tag": "Created using the Mangopay API Postman collection"
}