Journal entries
Write a journal entry
https://your-business.qaydtech.com/api/v1/journal-entries
A manual entry: saved as a draft — out of balance if need be — or posted at once with post: true, which asks that debits equal credits and that the date falls in an open fiscal period. Each line is a debit or a credit on a posting account. Amounts in riyals, up to two decimals. A test key writes drafts only.
Request
Headers
-
Authorizationstring requiredBearer followed by the API key.
Example:
Bearer qayd_… -
Accept-Languagestring optionalen for English error messages. Arabic by default.
Example:
en -
Content-Typestring requiredapplication/json with every request that has a body.
Example:
application/json -
Idempotency-Keystring optionalA unique value so a request sent again creates nothing twice.
Example:
order-10045
Request body application/json
-
datedate optionalThe date; today when not sent.
Example:
2026-11-15 -
descriptionstring requiredDescription, up to 500 characters.
Example:
إثبات إيجار نوفمبر -
referencestring optionalYour reference, such as your store’s order number, up to 60 characters. Searchable later.
Example:
ACC-77 -
postboolean optionaltrue to post at once, moving the stock and writing the entry; otherwise saved as a draft.
Example:
true -
linesarray[] requiredThe lines, 1 to 500.
-
account_idinteger requiredRevenue account. Defaults to the item’s or the sales account.
Example:
51 -
debitnumber optionalDebit amount in riyals. A line is a debit or a credit, not both.
Example:
5000.00 -
creditnumber optionalCredit amount in riyals.
-
contact_idinteger optionalThe customer or supplier the line belongs to, for their statement.
-
cost_center_idinteger optionalThe cost centre from GET /cost-centers.
-
descriptionstring optionalDescription, required when no item is given. Up to 255 characters.
Responses
- 201 Created
- 422 Refused
- 403 Not allowed
- Errors · 401 · 403 · 429