Partial update account

patch
https://api.wafeq.com/v1/accounts/{id}/

Endpoint for partially updating an existing account.

Path Params
stringrequired
Query Params
string

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

Body Params

An account in the organization's chart of accounts.

stringlength ≤ 30

The unique code identifying this account.

account_type

The type of the account.

View the enum reference

One of
stringenum

The accounting purpose assigned to an account.

View the enum reference

stringenum

The primary classification of the account (e.g. Asset, Liability, Equity, Income, Expense).

View the enum reference

Allowed:
stringlength ≤ 255

External identifier for the account.

boolean

Indicates whether the account can be used for payments.

boolean

Indicates whether the account can be used for posting.

stringlength ≤ 200

The name of the account in Arabic.

string

The name of the account in English.

string | null

The parent account, if this is a sub-account.

stringenum

The secondary classification of the account, providing more specific categorization.

View the enum reference

Headers
string

Client-provided UUID to uniquely identify a request

string

The id of the organization to act on, from GET /v1/organizations/. Required when the OAuth token or accounting partner API key grants access to several organizations; optional otherwise. With an organization API key, it must name the key's own organization.

stringenumDefaults to application/json

Generated from available request content types

Allowed:
Response