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

Partially update a bank account

Updates a bank account field by field. Only the fields present in the request are changed; the others keep their current values.

When iban is included it must stay unique across all accounts, as described under Update a bank account.

patch
/bank_accounts/{id}/
Authorizations
AuthorizationstringRequired

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

Path parameters
idintegerRequired

The unique identifier of the bank account.

Body

The body of a bank account partial update request. Only the fields included in the body are changed; every field is optional.

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. When included, must stay unique across all accounts.

is_activebooleanOptional

Whether the account is active.

sort_orderintegerOptional

The position used to order accounts.

descriptionstring · max: 255 · nullableOptional

A free-text note.

Responses
200

The updated 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.

patch/bank_accounts/{id}/
PATCH /api/v1/remote/1/bank_accounts/{id}/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 38

{
  "holder_name": "Example Company Ltd."
}
{
  "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?