When using the API to create an invoice, journal entry, or voucher, you may see the “account_id” field within the required data in the request.
What does the account_id field mean?
The account_id field refers to the account number (code) in the chart of accounts within the Qoyod system, such as a bank account, cash account, or any other sub-account.
How do you find the account number (account_id) in the system?
-
From the sidebar menu, click on Accounting
-
Select Chart of Accounts
-
You will see the main and sub-accounts, and next to each account appears the account number
-
Use this number as the value for the
account_idfield in the API request
Practical Example
If the bank account number in the chart of accounts is 211, then when creating an invoice via API, the field would be as follows:
"account_id": "211"
Notes
-
The account number differs from one organization to another depending on the chart of accounts setup
-
Make sure to use the correct account number that matches the transaction type (for example: bank account for collection receipts, cash account for cash payments)
-
For complete API documentation: https://apidoc.qoyod.com/