Bank Accounts

Update bank account

Changed on

Endpoint for updating an existing bank account.

put/bank-accounts/{id}/

Request

  • Base URL
    https://api.wafeq.com/v1
  • URL
    https://api.wafeq.com/v1/bank-accounts/{id}/
  • Auth
    API key in header Authorization

Path parameters

idstring required

Query parameters

expandstring

Comma-separated related objects to return in full instead of as IDs. Accepted values: account, account.parent. Nested relations are joined with a dot.

Headers

X-Wafeq-Idempotency-Keystring

Client-provided UUID to uniquely identify a request

Request body

accountstring required

The associated account for this bank account.

classificationstring required

The classification of the bank account (e.g., Asset).

created_tsstring date-time required

The timestamp in UTC when the bank account was created

currencystring required

The currency used for this bank account.

idstring required

The unique identifier of the bank account.

legacy_idstring required

[Deprecated] The legacy identifier of the bank account.

modified_tsstring date-time required

The timestamp in UTC when the bank account was last modified

namestring required

The name of the bank account.

sub_classification'BANK' | 'PETTY_CASH' | 'CREDIT_CARD' required

The type of cash account represented by the bank account.

View the enum reference

Response

accountstring required

The associated account for this bank account.

classificationstring required

The classification of the bank account (e.g., Asset).

created_tsstring date-time required

The timestamp in UTC when the bank account was created

currencystring required

The currency used for this bank account.

idstring required

The unique identifier of the bank account.

legacy_idstring required

[Deprecated] The legacy identifier of the bank account.

modified_tsstring date-time required

The timestamp in UTC when the bank account was last modified

namestring required

The name of the bank account.

sub_classification'BANK' | 'PETTY_CASH' | 'CREDIT_CARD' required

The type of cash account represented by the bank account.

View the enum reference

Changes