Create counterparty account

Purpose

Creates one or more counterparty accounts from a JSON list. Use it to register the beneficiaries of an external system in FinologeeBKO before paying them.

Rights

  • COUNTERPARTY_ACCOUNT_WRITE
  • COUNTERPARTY_ACCOUNT_SKIP_4EYES changes the resulting status, see Effects
  • KYC_RISK_LOG_WRITE when a counterparty account sets riskLevelName

Rules

  • The request is all or nothing: when one counterparty account is invalid, FinologeeBKO creates none of them
  • The endpoint always creates new counterparty accounts. It never updates an existing one
  • accountNumber contains only letters and digits. FinologeeBKO removes spaces and converts letters to upper case before validation. FinologeeBKO validates an account number shaped like an IBAN as an IBAN
  • bic contains a BIC or a national clearing code:
    • A BIC must have a country code known to FinologeeBKO. When accountCountry is set, it must match the country of the BIC
    • FinologeeBKO checks a national clearing code against the national clearing code directory of the country in accountCountry. When the directory is unavailable, FinologeeBKO refuses the counterparty account with a bank code verification error; retry later
  • ORGANISATION needs orgName. For INDIVIDUAL, firstName and lastName joined with a space cannot exceed 35 characters. dateOfBirth must be in the past
  • address.country must be a country known to FinologeeBKO
  • FinologeeBKO refuses duplicates:
    • Two entries of the same request with the same account number and bank code
    • An existing counterparty account with the same account number and bank code, see Uniqueness in Counterparty Accounts. A BIC with or without the XXX branch code counts as the same bank code
  • The account number and bank code cannot be on the tenant's blacklist. The check also matches the 8-character form of the BIC
  • counterpartyGroupIds lists only groups the API user can access
  • riskLevelName must match the English name of a risk level of the tenant. The match ignores case and spaces

Effects

  • Without COUNTERPARTY_ACCOUNT_SKIP_4EYES, FinologeeBKO creates the counterparty accounts in status PENDING, and the users who can approve them receive a notification
  • With COUNTERPARTY_ACCOUNT_SKIP_4EYES, FinologeeBKO creates the counterparty accounts in status APPROVED and records the API user as approver
  • Subscribers to counterparty webhooks receive COUNTERPARTY_CREATED, followed by COUNTERPARTY_AUTHORISED for counterparty accounts created in status APPROVED. See Counterparty Webhook API
⚠️

Order of the returned identifiers

The response lists the id of every created counterparty account, without guarantee that the order matches the order of the request. To map each id to its source record, read the counterparty accounts back with Find counterparty, filtered by externalIds or accountNumbers.

Related

Body Params

JSON containing a list of counterparties to be created

counterparties
array of objects
required
length ≥ 1

List of counterparties to create

counterparties*

Create counterparty request

string

ISO 3166-1 alpha-2 country code of the bank account. Derived automatically from BIC when the bank code is BIC-formatted. Required when the bank code is a national clearing code.

string
required
length between 5 and 34

The counterparty account number, can be an IBAN or a BBAN (unstructured account number).

address
object
required

The address details. The total length of address + zip + city cannot exceed 103 characters.

string
length between 0 and 70

The alias name for the new account.

string
required
length ≥ 1

BIC or national clearing code of the counterparty's bank.

counterpartyGroupIds
array of int64s, unique

Counterparty groups ids to be linked with

counterpartyGroupIds
date

The date of birth of the individual.

string

The external ID for this counterparty. Can be used to match against an external system.

string
length between 1 and 35

The first name of the individual. This field is mandatory if type is INDIVIDUAL.

string
enum

The gender of the individual.

Allowed:
string
length between 1 and 35

The last name of the individual. This field is mandatory if type is INDIVIDUAL.

string
length between 0 and 35

The organisation name.

string

The name of the associated risk level.

string
enum
required

The type of the new counterparty account.

Allowed:
Headers
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