Create account

Endpoint for creating a new account.

Body Params

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

string
required
length ≤ 30

The unique code identifying this account.

string
enum

The type of the account.

  • 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
  • PROPERTY_PLANT_AND_EQUIPMENT - Property, Plant and Equipment
  • ACCOUNTS_PAYABLE - Accounts Payable
  • ACCRUED_EXPENSES - Accrued Expenses
  • OTHER_CURRENT_LIABILITIES - Other Current Liabilities
  • PAYROLL_PAYABLE - Payroll Payable
  • SHORT_TERM_LOANS_PAYABLE - Short-Term Loans Payable
  • TAX_PAYABLE - Tax Payable
  • UNEARNED_REVENUE - Unearned Revenue
  • VAT - VAT
  • END_OF_SERVICE_BENEFITS - End of Service Benefits
  • LONG_TERM_LOANS_PAYABLE - Long-Term Loans Payable
  • OTHER_NON_CURRENT_LIABILITIES - Other Non-Current Liabilities
  • ISSUED_CAPITAL - Issued Capital
  • OTHER_OWNERS_EQUITY - Other Owners' Equity
  • PAID_IN_CAPITAL - Paid-in Capital
  • SHARE_CAPITAL - Share Capital
  • TREASURY_STOCK - Treasury Stock
  • RETAINED_EARNINGS - Retained Earnings
  • OPENING_BALANCE_EQUITY - Opening Balance Equity
  • OTHER_COMPREHENSIVE_INCOME - Other Comprehensive Income
  • INTEREST_INCOME - Interest Income
  • OTHER_INCOME - Other Income
  • GENERAL_AND_ADMINISTRATIVE_EXPENSES - General and Administrative Expenses
  • MARKETING_EXPENSES - Marketing Expenses
  • OTHER_OPERATING_EXPENSES - Other Operating Expenses
  • RESEARCH_AND_DEVELOPMENT - Research and Development
  • DEPRECIATION_AND_AMORTIZATION - Depreciation and Amortization
  • INTEREST_EXPENSE - Interest Expense
  • OTHER_NON_OPERATING_EXPENSES - Other Non-Operating Expenses
  • REALIZED_EXCHANGE_GAIN_OR_LOSS - Realized Exchange Gain or Loss
  • TAX - Tax
  • UNREALIZED_EXCHANGE_GAIN_OR_LOSS - Unrealized Exchange Gain or Loss
  • ZAKAT - Zakat
string
enum
required

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

  • REVENUE - Revenue
  • EXPENSE - Expense
  • ASSET - Asset
  • LIABILITY - Liability
  • EQUITY - Equity
Allowed:
string
length ≤ 255

External identifier for the account.

boolean
required

Indicates whether the account can be used for payments.

boolean

Indicates whether the account can be used for posting.

string
length ≤ 200

The name of the account in Arabic.

string
required

The name of the account in English.

string | null

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

string
enum
required

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

  • 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
  • NON_CURRENT_LIABILITY - Non-Current Liabilities
  • PAID_IN_CAPITAL - Paid-in Capital
  • RETAINED_EARNINGS - Retained Earnings
  • ACCUMULATED_OTHER_COMPREHENSIVE_INCOME - Acc. Other Comprehensive Income
  • TREASURY_STOCK - Treasury Stock
  • OWNERS_EQUITY - Owner's Equity
  • OPENING_BALANCE_EQUITY - Opening Balance Equity
Headers
string

Client-provided UUID to uniquely identify a request

string
enum
Defaults to application/json

Generated from available request content types

Allowed:
Response

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json