Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Create a bank account

Creates a new bank account.

bank, slug, holder_name and iban are required. The iban must not already belong to another account — including a soft-deleted one — otherwise the request is rejected with bank_account_100. The slug is unique across all accounts.

post
/bank_accounts/
Authorizations
AuthorizationstringRequired

Token credential sent in the Authorization header, in the form: Token <your-token>. Requires a staff (admin) account.

Body

The body of a bank account create or full update request.

bankintegerRequired

The identifier of the bank the account belongs to.

slugstring · max: 255Required

The unique reference of the account.

holder_namestring · max: 255Required

The name of the account holder.

ibanstring · max: 34Required

The IBAN of the account. Must not already belong to another account, including a soft-deleted one.

is_activebooleanOptional

Whether the account is active. Defaults to true when omitted.

Default: true
sort_orderintegerOptional

The position used to order accounts. Defaults to 0 when omitted.

Default: 0
descriptionstring · max: 255 · nullableOptional

A free-text note.

Responses
201

The created bank account.

application/json

A bank transfer account.

pkintegerRead-onlyOptional

The unique identifier of the bank account.

bankintegerOptional

The identifier of the bank the account belongs to.

slugstring · max: 255Optional

The unique reference of the account.

holder_namestring · max: 255Optional

The name of the account holder.

ibanstring · max: 34Optional

The IBAN of the account. Unique across all accounts.

is_activebooleanOptional

Whether the account is active. A soft-deleted account has this set to false.

sort_orderintegerOptional

The position used to order accounts.

descriptionstring · max: 255 · nullableOptional

A free-text note, or null when none is stored.

post/bank_accounts/
POST /api/v1/remote/1/bank_accounts/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 111

{
  "bank": 12,
  "slug": "example-bank-main",
  "holder_name": "Example Company Inc.",
  "iban": "TR330006100519786457841326"
}
{
  "pk": 7,
  "bank": 12,
  "slug": "example-bank-main",
  "holder_name": "Example Company Inc.",
  "iban": "TR330006100519786457841326",
  "is_active": true,
  "sort_order": 0,
  "description": "Main collection account"
}

Last updated

Was this helpful?