Create SEPA Direct Debit batches and read their status and individual direct debit requests in FinologeeBKO.
A direct debit batch (a collection in the FinologeeBKO interface) collects funds from one or more debtor accounts for one creditor account, under SEPA Direct Debit mandates. Each batch contains direct debit requests, one per debtor. An integration uses the Direct Debits endpoints to submit the collections of an external system (billing, subscription or loan management tool) to FinologeeBKO and to follow each batch and each direct debit request until execution.
The creditor account is an ordering party account of the tenant, and each debtor account is a counterparty account, see Counterparty Accounts. FinologeeBKO publishes batch status changes to the Direct Debit Webhook API.
Feature flagThe Direct Debits endpoints are available only when the
SEPA_DIRECT_DEBITfeature flag is enabled for the tenant. Otherwise they answer404.
Key concepts
- Creditor: the ordering party account that receives the funds. Its bank must support direct debits
- Debtor: the counterparty account that is debited. It must be in status
APPROVED - Scope: rights on direct debits are scoped by creditor account and debtor counterparty account
- Currency: direct debits are SEPA payments in
EURbetween accounts in the SEPA area
Lifecycle and statuses
Batch statuses
| Status | Meaning | How it is reached |
|---|---|---|
WAITING_FOR_AUTHORISATION | Created, waiting for approval by a second user | Creation by an API user without DIRECT_DEBIT_SKIP_4EYES |
WAITING_FOR_TRANSFER | Approved, waiting for a user to send it to the bank | Approval, or creation with DIRECT_DEBIT_SKIP_4EYES, of a batch with metadata.autoTransfer set to false |
AUTHORISED | Approved and being sent to the bank | Approval, or creation with DIRECT_DEBIT_SKIP_4EYES, of a batch with automatic transfer; or manual sending to the bank |
DELIVERED | Delivered to the bank, direct debit requests in progress | Delivery to the bank |
EXECUTED | All direct debit requests executed | Bank confirmation of every direct debit request |
REJECTED_BY_BANK | Processing finished, at least one direct debit request not executed by the bank | Bank feedback |
FAILED | Delivery to the bank failed | Negative acknowledgement from the bank channel |
REJECTED_BY_USER | Rejected by an approver | Rejection of a WAITING_FOR_AUTHORISATION batch |
CANCELLED | Withdrawn before delivery to the bank | Cancellation of a WAITING_FOR_AUTHORISATION or WAITING_FOR_TRANSFER batch |
Direct debit request statuses
| Status | Meaning |
|---|---|
CREATED | Initial status |
DELIVERED | The batch was acknowledged by the bank |
PENDING_EXECUTION | The bank reports that the direct debit is in progress |
EXECUTED | The bank confirms the execution |
REJECTED_BY_BANK | The bank rejected the direct debit. statusMessage gives the reason when the bank provides one |
FAILED | Delivery to the bank failed |
REJECTED_BY_USER | The batch was rejected by an approver |
CANCELLED | The batch was cancelled |
Approval, rejection, cancellation and manual sending to the bank are done in the FinologeeBKO interface. The API has no endpoint for them.
Rights
| Right | What it allows in this section |
|---|---|
DIRECT_DEBIT_READ | Read batches and direct debit requests, within the scope of this right |
DIRECT_DEBIT_CREATE | Create batches |
DIRECT_DEBIT_SKIP_4EYES | Create batches that need no approval, for creditor accounts within the scope of this right |
DIRECT_DEBIT_AUTHORISE | Approve or reject batches in the FinologeeBKO interface |
DIRECT_DEBIT_CANCEL | Cancel batches before delivery to the bank, in the FinologeeBKO interface |
DIRECT_DEBIT_SEND_TO_BANK | Send WAITING_FOR_TRANSFER batches to the bank, in the FinologeeBKO interface |
See Permissions for how rights and scopes are assigned to users.
Typical integration flows
Create and approve under the maker-checker principle
- The API user (with
DIRECT_DEBIT_CREATE, withoutDIRECT_DEBIT_SKIP_4EYES) calls Create direct debit batches. FinologeeBKO creates the batches in statusWAITING_FOR_AUTHORISATIONand notifies the users who can approve them - A second user with
DIRECT_DEBIT_AUTHORISEapproves the batch in the FinologeeBKO interface. The user who last modified a batch cannot approve it - With automatic transfer (the default), FinologeeBKO sends the batch to the bank. Otherwise the batch waits in
WAITING_FOR_TRANSFERfor a user withDIRECT_DEBIT_SEND_TO_BANK
Create batches that go directly to the bank
- An API user with
DIRECT_DEBIT_SKIP_4EYESon the creditor account calls Create direct debit batches - FinologeeBKO sends the batches to the bank at once, or leaves them in
WAITING_FOR_TRANSFERwhenmetadata.autoTransferisfalse
Follow execution
- Subscribe to the Direct Debit Webhook API to receive
DIRECT_DEBIT_GROUP_COLLECTION_COMPLETED,DIRECT_DEBIT_GROUP_FAILEDandDIRECT_DEBIT_GROUP_REJECTED - Call Get direct debit batch for the batch status, amounts and counts per status
- Call Get direct debit request for the status and status message of each direct debit request
Related documentation
- Direct debits: direct debit collections in the FinologeeBKO interface
- Permissions
- Webhooks

