Schedule a SEPA Direct Debit collection
This endpoint allows you to schedule a SEPA Direct Debit collection to be credited on one of your accounts.
Body
Required
-
amount
integer(int64) Required Amount to be collected, in cents. The currency is always EURO.
Minimum value is
1
. -
mandate
object Required The SEPA Direct Debit collection mandate to be used.
Additional properties are allowed.
-
scheduled_date
string(date) Required The ISO8601 formatted date on which the direct debit collection will be submitted. This date must not be in the past. If your direct debit is scheduled to be submitted on a non-business day, it will be effectively submitted on the next business day. The execution will then happen on the following business day. For example, a direct debit scheduled on a Saturday will be submitted on the following Monday and executed on the Tuesday (assuming that both week days are business days).
-
local_iban
string Required Existing IBAN to be credited. It can be the main IBAN of an account or a virtual IBAN.
Format should match the following pattern:
[A-Z]{2}[0-9]{2}[a-zA-Z0-9]{1,30}
. -
message
string Message attached to this collection, visible to all involved parties.
Minimum length is
1
, maximum length is256
. -
end_to_end_id
string Unique identification to unambiguously identify the transaction. This identification is passed on, unchanged, throughout the entire end-to-end chain. It can be used for reconciliation or to link tasks relating to the transaction.
Minimum length is
1
, maximum length is35
. Format should match the following pattern:[a-zA-Z0-9\-\?\:\(\)\.\,\'\+\ ]{1,35}
. -
internal_note
string Internal note attached to this collection, visible only in your Memo Bank workspace.
Minimum length is
1
, maximum length is256
. -
custom_id
string Custom identifier that will be attached to the transaction resulting from this collection. It will not be transmitted nor visible in your Memo Bank workspace. It can only be retrieved or used to search for transactions via Memo Bank API.
Minimum length is
1
, maximum length is256
. -
custom_metadata
string Custom metadata that will be attached to the transaction resulting from this collection. It will not be transmitted nor visible in your Memo Bank workspace and can only be retrieved via API.
Minimum length is
1
, maximum length is2048
.
curl \
--request POST 'https://api.memo.bank/v2/collections' \
--header "Content-Type: application/json" \
--data '{"amount":500,"mandate":{"reference":"ABC123DEF","scheme":"core","signature_date":"2022-12-01","debtor":{"name":"John Doe","iban":"FR2512739000308553756377J95","address":{"street":"rue de la Boétie","building_number":"42","postal_code":"75008","city":"Paris","country":"FR"}},"contract_reference":"CUST-1234"},"scheduled_date":"2022-12-05","local_iban":"FR6430003000509825397888D64","message":"invoice no12345","end_to_end_id":"b0bfb42baa2642c2af0ca3e880fcd590","internal_note":"phone bill","custom_id":"637406efda8534de8c0e","custom_metadata":"This is some metadata"}'
{
"amount": 500,
"mandate": {
"reference": "ABC123DEF",
"scheme": "core",
"signature_date": "2022-12-01",
"debtor": {
"name": "John Doe",
"iban": "FR2512739000308553756377J95",
"address": {
"street": "rue de la Boétie",
"building_number": "42",
"postal_code": "75008",
"city": "Paris",
"country": "FR"
}
},
"contract_reference": "CUST-1234"
},
"scheduled_date": "2022-12-05",
"local_iban": "FR6430003000509825397888D64",
"message": "invoice no12345",
"end_to_end_id": "b0bfb42baa2642c2af0ca3e880fcd590",
"internal_note": "phone bill",
"custom_id": "637406efda8534de8c0e",
"custom_metadata": "This is some metadata"
}
{
"id": "61b05c4f-3f72-4951-8c30-a2a9faaa5184",
"reference": "ab004cfc-99fb-4ba9-bc9c-70982f853cb1",
"amount": 500,
"currency": "EUR",
"mandate": {
"reference": "ABC123DEF",
"scheme": "core"
},
"scheduled_date": "2022-12-05",
"local_iban": "FR6430003000509825397888D64",
"account_id": "708683cb-60f6-464a-a62f-be2e339c34aa",
"status": "failed",
"failure_code": "invalid_mandate_iban",
"message": "invoice no12345",
"end_to_end_id": "b0bfb42baa2642c2af0ca3e880fcd590",
"internal_note": "phone bill",
"custom_id": "637406efda8534de8c0e",
"custom_metadata": "This is some metadata"
}