Direct Debits

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 flag

The Direct Debits endpoints are available only when the SEPA_DIRECT_DEBIT feature flag is enabled for the tenant. Otherwise they answer 404.

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 EUR between accounts in the SEPA area

Lifecycle and statuses

Batch statuses

StatusMeaningHow it is reached
WAITING_FOR_AUTHORISATIONCreated, waiting for approval by a second userCreation by an API user without DIRECT_DEBIT_SKIP_4EYES
WAITING_FOR_TRANSFERApproved, waiting for a user to send it to the bankApproval, or creation with DIRECT_DEBIT_SKIP_4EYES, of a batch with metadata.autoTransfer set to false
AUTHORISEDApproved and being sent to the bankApproval, or creation with DIRECT_DEBIT_SKIP_4EYES, of a batch with automatic transfer; or manual sending to the bank
DELIVEREDDelivered to the bank, direct debit requests in progressDelivery to the bank
EXECUTEDAll direct debit requests executedBank confirmation of every direct debit request
REJECTED_BY_BANKProcessing finished, at least one direct debit request not executed by the bankBank feedback
FAILEDDelivery to the bank failedNegative acknowledgement from the bank channel
REJECTED_BY_USERRejected by an approverRejection of a WAITING_FOR_AUTHORISATION batch
CANCELLEDWithdrawn before delivery to the bankCancellation of a WAITING_FOR_AUTHORISATION or WAITING_FOR_TRANSFER batch

Direct debit request statuses

StatusMeaning
CREATEDInitial status
DELIVEREDThe batch was acknowledged by the bank
PENDING_EXECUTIONThe bank reports that the direct debit is in progress
EXECUTEDThe bank confirms the execution
REJECTED_BY_BANKThe bank rejected the direct debit. statusMessage gives the reason when the bank provides one
FAILEDDelivery to the bank failed
REJECTED_BY_USERThe batch was rejected by an approver
CANCELLEDThe 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

RightWhat it allows in this section
DIRECT_DEBIT_READRead batches and direct debit requests, within the scope of this right
DIRECT_DEBIT_CREATECreate batches
DIRECT_DEBIT_SKIP_4EYESCreate batches that need no approval, for creditor accounts within the scope of this right
DIRECT_DEBIT_AUTHORISEApprove or reject batches in the FinologeeBKO interface
DIRECT_DEBIT_CANCELCancel batches before delivery to the bank, in the FinologeeBKO interface
DIRECT_DEBIT_SEND_TO_BANKSend 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

  1. The API user (with DIRECT_DEBIT_CREATE, without DIRECT_DEBIT_SKIP_4EYES) calls Create direct debit batches. FinologeeBKO creates the batches in status WAITING_FOR_AUTHORISATION and notifies the users who can approve them
  2. A second user with DIRECT_DEBIT_AUTHORISE approves the batch in the FinologeeBKO interface. The user who last modified a batch cannot approve it
  3. With automatic transfer (the default), FinologeeBKO sends the batch to the bank. Otherwise the batch waits in WAITING_FOR_TRANSFER for a user with DIRECT_DEBIT_SEND_TO_BANK

Create batches that go directly to the bank

  1. An API user with DIRECT_DEBIT_SKIP_4EYES on the creditor account calls Create direct debit batches
  2. FinologeeBKO sends the batches to the bank at once, or leaves them in WAITING_FOR_TRANSFER when metadata.autoTransfer is false

Follow execution

  1. Subscribe to the Direct Debit Webhook API to receive DIRECT_DEBIT_GROUP_COLLECTION_COMPLETED, DIRECT_DEBIT_GROUP_FAILED and DIRECT_DEBIT_GROUP_REJECTED
  2. Call Get direct debit batch for the batch status, amounts and counts per status
  3. Call Get direct debit request for the status and status message of each direct debit request

Related documentation