Create credit transfers

Creates the submitted credit transfers.

If a submitted reference matches an existing credit transfer that has not reached the bank yet — one shown in the credit transfer list as Draft, Cancelled, Rejected by signatory or Rejected by depositary — that credit transfer is updated with the submitted data instead of being rejected as a duplicate, and its ID is returned. Updating is only possible for credit transfers you are permitted to access. A reference matching a credit transfer in any other status is rejected as a duplicate, as is a reference submitted together with batching parameters. A credit transfer submitted without a reference always creates a new one.

Purpose

Use it to submit the payments of an external system to FinologeeBKO, as drafts, sent for authorisation, or signed at submission with the X-Signature header.

Rights

  • PAYMENT_CREATE
  • Without options.draft, the API user also needs PAYMENT_SKIP_4EYES with a scope that covers the ordering party account, payment category, currency and counterparty account of each credit transfer. The API user creates the credit transfers and sends them for authorisation in one call, so the maker-checker principle requires this right
  • With options.draft set to true, the scope of PAYMENT_CREATE must cover the ordering party account, payment category, currency and counterparty account of each credit transfer
  • Updating, without options.draft, an editable credit transfer that another user last modified requires the scope of PAYMENT_APPROVE. On an update, the API user's scope must also cover the credit transfer as it exists before the update
  • PAYMENT_AUTHORISE and the signatory rules apply when the request has an X-Signature header, see Signed creation

Rules

  • The request is all or nothing: when one credit transfer is invalid, FinologeeBKO creates and updates none of them
  • orderingParty.accountNumber must match exactly one active ordering party account. A deactivated ordering party account is refused
  • When several counterparty accounts have the same counterparty.accountNumber, the credit transfer is refused; use counterparty.id. Counterparty accounts in status REJECTED or DEACTIVATED are refused. A counterparty account in status PENDING is accepted, see Effects
  • The ordering party account and the counterparty account cannot be the same account, and neither can be on the tenant's blacklist
  • category is the name of an active payment category within the API user's PAYMENT_CREATE scope. The match ignores case and surrounding spaces
  • currency is an active currency of the tenant
  • amount is greater than zero, has no more decimals than the currency allows, and has at most 14 digits in total
  • remittanceInfo cannot be blank
  • reference accepts letters, digits, spaces and / - ? : ( ) . ' +. It cannot start or end with / nor contain //
  • executionDate cannot be in the past. Without executionDate, FinologeeBKO executes the credit transfer as soon as possible
  • authorisationDate cannot be after executionDate. FinologeeBKO sets the authorisation deadline to authorisationDate, or to executionDate when it is absent, or to the current day when both are absent, at the cut-off time configured for the ordering party account and currency
  • chargeBearer and urgency follow the rules in Credit Transfers
  • groupId, when set, is the id of an existing transaction group
  • correspondentBank.bic, when set, is a valid BIC with a country code known to FinologeeBKO
  • FinologeeBKO refuses duplicates:
    • Two credit transfers of the same request with the same reference
    • Two credit transfers of the same request without reference that have the same ordering party account, counterparty account, amount, currency and execution date

Updating a credit transfer by reference

  • The update applies only when the reference matches exactly one credit transfer in an editable status
  • Only individual credit transfers can be updated. A batch booking cannot be updated by reference
  • The update follows the same audit trail and status rules as an edit in the interface
  • An update removes the signatures already given on the credit transfer

Batch booking

With options.batchingParams.batchBookingParams, FinologeeBKO creates one batch booking that contains all credit transfers of the request.

  • batchBookingParams.reference follows the rules of reference and cannot already be in use. batchBookingParams.name cannot be the name of an existing transaction group
  • options.draft cannot be true
  • All credit transfers have the same ordering party account, payment category and urgency
  • The bank of the ordering party account supports batch booking, and the ordering party account is not under depositary oversight
  • All credit transfers are SEPA payments in EUR between accounts in the SEPA area
  • The response contains one id: the identifier of the batch booking

Signed creation

The X-Signature header attaches the API user's signature to the credit transfers at creation. Without the header, FinologeeBKO creates the credit transfers without signature.

Creation of the X-Signature value

The content of the X-Signature header is the detached JWS of the request body. A detached JWS signs the body of an HTTP request without modifying it.

To generate the detached JWS:

  • Generate a standard JWS in compact serialization, with the HTTP body as payload
  • Replace the middle part of the JWS (the payload) with an empty string
  • Put the resulting string, a JWS without payload, in the X-Signature header

The JWS header.payload.signature becomes the detached JWS header..signature (with two dots).

The JWS must contain the certificate used to sign in its x5c header.

Obtain a certificate

To obtain a certificate, send a CSR (certificate signing request) to Finologee. The CSR contains the following information:

CN = Firstname Lastname of the user
O = tenant  (the tenant name of the user, provided by Finologee)
OU = REGULAR
C = LU  (country)
ST = Luxembourg (state)
L = Leudelange (locality)
emailAddress = [email protected]

Finologee returns a certificate to use as entry of the x5c array of the JWS.

Example of CSR creation with an existing private key:

openssl req -new -key device-key.pem  -out device-csr.pem  -subj "/C=LU/ST=Luxembourg/L=Leudelange/O=tenant1/OU=REGULAR/CN=Jean Dupont/[email protected]"

Signature rules

  • The certificate must be valid and trusted by FinologeeBKO
  • The emailAddress of the certificate must be the email address of the API user, and its O the tenant of the API user. The comparison ignores case
  • The JWS signature must match the request body
  • orderingParty.accountNumber and counterparty.accountNumber are required in each credit transfer, so that the signed body contains the account numbers sent to the bank
  • The API user must be able to sign every credit transfer of the request under the signatory rules of the tenant

Signing process

  • Credit transfers that require a single signature are sent to the bank according to the cut-off time
  • Credit transfers that require several signatures wait until all signatures are received before being sent to the bank

Effects

  • Without options.draft, FinologeeBKO computes the required signatures from the signatory rules and notifies the signatories. Auto-authorisation applies when it is configured
  • Credit transfers matched by an automatic rejection rule move to REJECTED_BY_SIGNATORY right after creation
  • Credit transfers to a counterparty account in status PENDING stay on hold until the counterparty account is approved, and the users who can approve it receive a notification
  • With X-Signature, FinologeeBKO records the API user's signature on each created credit transfer. A fully signed credit transfer moves to PENDING_DELIVERY_TO_BANK, or to WAITING_FOR_DEPOSITARY_AUTHORISATION for an ordering party account under depositary oversight
  • An updated credit transfer returns to DRAFT or to WAITING_FOR_SIGNATURES, and the audit log records the changed fields and group changes
  • The audit log of each credit transfer records its creation and its submission for authorisation
  • Subscribers to credit transfer webhooks receive TRANSACTION_FULLY_SIGNED when a credit transfer is fully signed, then the bank and cancellation events. See Credit Transfer Webhook API
⚠️

Order of the returned identifiers

The response lists the id of every created or updated credit transfer in ascending order, not in the order of the request. To map each id to its source record, set reference on every credit transfer and read them back with Find credit transfer filtered by references.

Errors

StatusWhen
400A batch booking constraint is not met
400The X-Signature value is invalid, its certificate does not match the API user, or the API user cannot sign the credit transfers. FinologeeBKO creates none of them
409An updated credit transfer was modified concurrently

Related

Body Params

JSON containing a list of credit transfers information and optionally batching details

creditTransfers
array of objects
required
length ≥ 1

List of credit transfers create request

creditTransfers*

Credit transfer create request for V2

number
required
> 0

amount

date

Authorisation deadline date in ISO extended format yyyy-MM-dd

string
required

category

string
enum
required

charge bearer code

Allowed:
correspondentBank
object

Correspondent Bank

counterparty
object
required

Counterparty account info. Only one of ID or accountNumber is required.

string
required
^[a-zA-Z]{3}$

currency

date

Requested execution date in ISO extended format yyyy-MM-dd

int64

Transaction group id. When an existing credit transfer is updated, the group submitted here replaces its current group; omitting the group id detaches the credit transfer from the group it currently belongs to

orderingParty
object
required

Ordering party account info. Only one of ID or accountNumber is required.

string
length between 0 and 35

Alphanumeric reference that uniquely identifies a credit transfer. If a reference is not provided the system will automatically generate one, so a credit transfer submitted without a reference is always created rather than updated. If the reference matches an existing credit transfer that has not reached the bank yet — one shown in the credit transfer list as Draft, Cancelled, Rejected by signatory or Rejected by depositary — that credit transfer is updated with the submitted data instead of being rejected as a duplicate

string
required
length between 0 and 140
^[a-zA-Z0-9\s!@#$%^&*()-_=+;:'",.<>?/]*$

Remittance information

string
enum

urgency

Allowed:
options
object

Options to apply to all submitted credit transfers

Headers
string
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Responses

Language
Credentials
Header
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json
application/problem+json