BizKitHub
DocsAPI ReferenceContact/bff/contact/bank-account-upsert
postContactAdmin BFF

/bff/contact/bank-account-upsert

Idempotent on (contact, IBAN). The user may submit an IBAN or a Czech account in any common form; getOrCreateBankAccountRef normalises it and rejects invalid values (throws 500 with the reason). The first account added to a contact is always primary regardless of the primary flag.

ContactpostBffContactBank-account-upsert

Parameters

JSON body

Request body

application/json
customerIdstringRequired

Contact external ID.

Exampleabc123def456ghij
idnumberOptional

Existing row id — provide to update; omit to insert (or upsert by IBAN).

bankAccountstringRequired

IBAN or Czech account (any of "1234567890", "1234567890/0100", "123456-1234567890/0100"). Normalised to IBAN on save.

ExamplesCZ6508000000192000145399192000145399/0800
primarybooleanOptional

Promote to primary account (demotes all others). First account is always primary.

Response schema

1 status code documented

200Success
idnumberRequired

Row id of the inserted or updated record.

ibanstringRequired

Normalised IBAN.

insertedbooleanRequired

True for new rows, false when an existing row was updated.

Response example

application/json
{
  "id": 0,
  "iban": "example_iban",
  "inserted": false
}

Request example

POST /bff/contact/bank-account-upsert

post
curl -X POST "https://api.bizkithub.com/bff/contact/bank-account-upsert" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
  "customerId": "abc123def456ghij",
  "id": 0,
  "bankAccount": "CZ6508000000192000145399",
  "primary": false
}'

Need an API key?

All BizKitHub public API endpoints require authentication via API key.

Get API Key