post
https://{tenant}.bko.finologee.com/v2/direct-debits
Purpose
Use it to submit the collections of an external system to FinologeeBKO.
Rights
DIRECT_DEBIT_CREATE. One scope item of this right must cover both the creditor account and every debtor account of the batchDIRECT_DEBIT_SKIP_4EYESon the creditor account changes the resulting status, see Effects
Rules
- The request is all or nothing: when one batch or one direct debit request is invalid, FinologeeBKO creates none of the batches
- When
creditor.accountNumbermatches active accounts with different BICs, the batch is refused; usecreditor.id. When the account number has several currency accounts at the same bank, FinologeeBKO uses theEURaccount metadata.batchNamecannot be shared by two batches of the request nor by an existing batchdebtor.accountNumberis searched among the counterparty accounts within the API user'sDIRECT_DEBIT_CREATEscope, and must match only one of them- The debtor counterparty account cannot be on the tenant's blacklist and cannot be the creditor account
amounthas at most two decimals and at most 14 digits in totalrequestedCollectionDatecannot be in the pastendToEndIdcannot be shared by two direct debit requests of the request nor by an existing direct debit request
Effects
- Without
DIRECT_DEBIT_SKIP_4EYESon the creditor account, FinologeeBKO creates the batch in statusWAITING_FOR_AUTHORISATIONand notifies the users who can approve it - With
DIRECT_DEBIT_SKIP_4EYESon the creditor account, FinologeeBKO creates the batch already approved. The batch moves toAUTHORISEDand FinologeeBKO sends it to the bank, or waits inWAITING_FOR_TRANSFERwhenmetadata.autoTransferisfalse - When FinologeeBKO sends a batch to the bank, a
requestedCollectionDatethat is absent or no longer in the future becomes the current day, and the audit log records the change - The audit log of each batch records its creation and its status changes
- Subscribers to direct debit webhooks receive
DIRECT_DEBIT_GROUP_COLLECTION_COMPLETED,DIRECT_DEBIT_GROUP_FAILEDorDIRECT_DEBIT_GROUP_REJECTEDas the batch progresses. See Direct Debit Webhook API

