---
title: "Partial update account"
method: PATCH
path: "/accounts/{id}/"
tags: ["Accounts"]
---

# Partial update account

`PATCH /accounts/{id}/`

Endpoint for partially updating an existing account.

## Path parameters

- `id` string, required

## Headers

- `X-Wafeq-Idempotency-Key` string

## Request body

- PatchedAccount — A ModelSerializer that takes additional arguments for "fields", "omit" and "expand" in order to control which fields are displayed, and whether to replace simple values with complex, nested serializations
  - `account_code` string — The unique code identifying this account.
  - `account_type` 'ACCOUNTS_RECEIVABLE' | 'CASH_ADVANCES' | 'CASH_EQUIVALENTS' | 'EMPLOYEE_ADVANCE' | 'INVENTORY' | 'OTHER_CURRENT_ASSETS' | 'PREPAID_EXPENSES' | 'ACCUMULATED_DEPRECIATION' | 'INTANGIBLE_ASSETS' | 'OTHER_NON_CURRENT_ASSETS' | 'PROPERTY_PLANT_AND_EQUIPMENT' | 'ACCOUNTS_PAYABLE' | 'ACCRUED_EXPENSES' | 'OTHER_CURRENT_LIABILITIES' | 'PAYROLL_PAYABLE' | 'SHORT_TERM_LOANS_PAYABLE' | 'TAX_PAYABLE' | 'UNEARNED_REVENUE' | 'VAT' | 'END_OF_SERVICE_BENEFITS' | 'LONG_TERM_LOANS_PAYABLE' | 'OTHER_NON_CURRENT_LIABILITIES' | 'ISSUED_CAPITAL' | 'OTHER_OWNERS_EQUITY' | 'PAID_IN_CAPITAL' | 'SHARE_CAPITAL' | 'TREASURY_STOCK' | 'RETAINED_EARNINGS' | 'OPENING_BALANCE_EQUITY' | 'OTHER_COMPREHENSIVE_INCOME' | 'INTEREST_INCOME' | 'OTHER_INCOME' | 'GENERAL_AND_ADMINISTRATIVE_EXPENSES' | 'MARKETING_EXPENSES' | 'OTHER_OPERATING_EXPENSES' | 'RESEARCH_AND_DEVELOPMENT' | 'DEPRECIATION_AND_AMORTIZATION' | 'INTEREST_EXPENSE' | 'OTHER_NON_OPERATING_EXPENSES' | 'REALIZED_EXCHANGE_GAIN_OR_LOSS' | 'TAX' | 'UNREALIZED_EXCHANGE_GAIN_OR_LOSS' | 'ZAKAT' — * `ACCOUNTS_RECEIVABLE` - Accounts Receivable * `CASH_ADVANCES` - Cash Advances * `CASH_EQUIVALENTS` - Cash and Cash Equivalents * `EMPLOYEE_ADVANCE` - Employee Advance * `INVENTORY` - Inventory * `OTHER_CURRENT_ASSETS` - Other Current Assets * `PREPAID_EXPENSES` - Prepaid Expenses * `ACCUMULATED_DEPRECIATION` - Accumulated Depreciation * `INTANGIBLE_ASSETS` - Intangible Assets * `OTHER_NON_CURRENT_ASSETS` - Other Non-Current Assets * `...` Full information for [AccountTypeEnum](accounttypeenum)
  - `classification` 'REVENUE' | 'EXPENSE' | 'ASSET' | 'LIABILITY' | 'EQUITY' — * `REVENUE` - Revenue * `EXPENSE` - Expense * `ASSET` - Asset * `LIABILITY` - Liability * `EQUITY` - Equity Full information for [ClassificationEnum](classificationenum)
  - `created_ts` string, date-time — The timestamp in UTC when the account was created
  - `external_id` string — External identifier for the account.
  - `id` string — The unique identifier of the account.
  - `is_locked` boolean — Indicates whether the account is locked and cannot be modified.
  - `is_payment_enabled` boolean — Indicates whether the account can be used for payments.
  - `is_posting` boolean — Indicates whether the account can be used for posting.
  - `is_system` boolean — Indicates whether this is a system-generated account that cannot be deleted.
  - `legacy_id` string — [Deprecated] The legacy identifier of the account.
  - `modified_ts` string, date-time — The timestamp in UTC when the account was last modified
  - `name_ar` string — The name of the account in Arabic.
  - `name_en` string — The name of the account in English.
  - `parent` string, nullable — The parent account, if this is a sub-account.
  - `sub_classification` 'INCOME' | 'COGS' | 'OPERATING_EXPENSE' | 'OTHER_INCOME' | 'NON_OPERATING_EXPENSE' | 'CASH_EQUIVALENTS' | 'CURRENT_ASSET' | 'NON_CURRENT_ASSET' | 'FIXED_ASSET' | 'CURRENT_LIABILITY' | 'NON_CURRENT_LIABILITY' | 'PAID_IN_CAPITAL' | 'RETAINED_EARNINGS' | 'ACCUMULATED_OTHER_COMPREHENSIVE_INCOME' | 'TREASURY_STOCK' | 'OWNERS_EQUITY' | 'OPENING_BALANCE_EQUITY' — * `INCOME` - Income * `COGS` - Cost of Sales * `OPERATING_EXPENSE` - Operating Expenses * `OTHER_INCOME` - Other Income * `NON_OPERATING_EXPENSE` - Non-Operating Expenses * `CASH_EQUIVALENTS` - Cash and Cash Equivalents * `CURRENT_ASSET` - Current Assets * `NON_CURRENT_ASSET` - Non-Current Assets * `FIXED_ASSET` - Fixed Asset * `CURRENT_LIABILITY` - Current Liabilities * `...` Full information for [AccountSubClassificationEnum](accountsubclassificationenum)

## Response `200`

- Account — A ModelSerializer that takes additional arguments for "fields", "omit" and "expand" in order to control which fields are displayed, and whether to replace simple values with complex, nested serializations
  - `account_code` string, required — The unique code identifying this account.
  - `account_type` 'ACCOUNTS_RECEIVABLE' | 'CASH_ADVANCES' | 'CASH_EQUIVALENTS' | 'EMPLOYEE_ADVANCE' | 'INVENTORY' | 'OTHER_CURRENT_ASSETS' | 'PREPAID_EXPENSES' | 'ACCUMULATED_DEPRECIATION' | 'INTANGIBLE_ASSETS' | 'OTHER_NON_CURRENT_ASSETS' | 'PROPERTY_PLANT_AND_EQUIPMENT' | 'ACCOUNTS_PAYABLE' | 'ACCRUED_EXPENSES' | 'OTHER_CURRENT_LIABILITIES' | 'PAYROLL_PAYABLE' | 'SHORT_TERM_LOANS_PAYABLE' | 'TAX_PAYABLE' | 'UNEARNED_REVENUE' | 'VAT' | 'END_OF_SERVICE_BENEFITS' | 'LONG_TERM_LOANS_PAYABLE' | 'OTHER_NON_CURRENT_LIABILITIES' | 'ISSUED_CAPITAL' | 'OTHER_OWNERS_EQUITY' | 'PAID_IN_CAPITAL' | 'SHARE_CAPITAL' | 'TREASURY_STOCK' | 'RETAINED_EARNINGS' | 'OPENING_BALANCE_EQUITY' | 'OTHER_COMPREHENSIVE_INCOME' | 'INTEREST_INCOME' | 'OTHER_INCOME' | 'GENERAL_AND_ADMINISTRATIVE_EXPENSES' | 'MARKETING_EXPENSES' | 'OTHER_OPERATING_EXPENSES' | 'RESEARCH_AND_DEVELOPMENT' | 'DEPRECIATION_AND_AMORTIZATION' | 'INTEREST_EXPENSE' | 'OTHER_NON_OPERATING_EXPENSES' | 'REALIZED_EXCHANGE_GAIN_OR_LOSS' | 'TAX' | 'UNREALIZED_EXCHANGE_GAIN_OR_LOSS' | 'ZAKAT' — * `ACCOUNTS_RECEIVABLE` - Accounts Receivable * `CASH_ADVANCES` - Cash Advances * `CASH_EQUIVALENTS` - Cash and Cash Equivalents * `EMPLOYEE_ADVANCE` - Employee Advance * `INVENTORY` - Inventory * `OTHER_CURRENT_ASSETS` - Other Current Assets * `PREPAID_EXPENSES` - Prepaid Expenses * `ACCUMULATED_DEPRECIATION` - Accumulated Depreciation * `INTANGIBLE_ASSETS` - Intangible Assets * `OTHER_NON_CURRENT_ASSETS` - Other Non-Current Assets * `...` Full information for [AccountTypeEnum](accounttypeenum)
  - `classification` 'REVENUE' | 'EXPENSE' | 'ASSET' | 'LIABILITY' | 'EQUITY', required — * `REVENUE` - Revenue * `EXPENSE` - Expense * `ASSET` - Asset * `LIABILITY` - Liability * `EQUITY` - Equity Full information for [ClassificationEnum](classificationenum)
  - `created_ts` string, date-time, required — The timestamp in UTC when the account was created
  - `external_id` string — External identifier for the account.
  - `id` string, required — The unique identifier of the account.
  - `is_locked` boolean, required — Indicates whether the account is locked and cannot be modified.
  - `is_payment_enabled` boolean, required — Indicates whether the account can be used for payments.
  - `is_posting` boolean — Indicates whether the account can be used for posting.
  - `is_system` boolean, required — Indicates whether this is a system-generated account that cannot be deleted.
  - `legacy_id` string, required — [Deprecated] The legacy identifier of the account.
  - `modified_ts` string, date-time, required — The timestamp in UTC when the account was last modified
  - `name_ar` string — The name of the account in Arabic.
  - `name_en` string, required — The name of the account in English.
  - `parent` string, nullable — The parent account, if this is a sub-account.
  - `sub_classification` 'INCOME' | 'COGS' | 'OPERATING_EXPENSE' | 'OTHER_INCOME' | 'NON_OPERATING_EXPENSE' | 'CASH_EQUIVALENTS' | 'CURRENT_ASSET' | 'NON_CURRENT_ASSET' | 'FIXED_ASSET' | 'CURRENT_LIABILITY' | 'NON_CURRENT_LIABILITY' | 'PAID_IN_CAPITAL' | 'RETAINED_EARNINGS' | 'ACCUMULATED_OTHER_COMPREHENSIVE_INCOME' | 'TREASURY_STOCK' | 'OWNERS_EQUITY' | 'OPENING_BALANCE_EQUITY', required — * `INCOME` - Income * `COGS` - Cost of Sales * `OPERATING_EXPENSE` - Operating Expenses * `OTHER_INCOME` - Other Income * `NON_OPERATING_EXPENSE` - Non-Operating Expenses * `CASH_EQUIVALENTS` - Cash and Cash Equivalents * `CURRENT_ASSET` - Current Assets * `NON_CURRENT_ASSET` - Non-Current Assets * `FIXED_ASSET` - Fixed Asset * `CURRENT_LIABILITY` - Current Liabilities * `...` Full information for [AccountSubClassificationEnum](accountsubclassificationenum)

---

[API](https://skmtc.net/wafeq/apis/wafeq-public-api.md) · [All operations](https://skmtc.net/wafeq/apis/wafeq-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/wafeq/wafeq-public-api/revisions/36816b4fce7f/schema)
