Skip to content
QaydTech Beta launch

Journal entries

Write a journal entry

post 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.

Permission: journal.write Supports Idempotency-Key to prevent duplicates.

Request

Headers

  • Authorization string required

    Bearer followed by the API key.

    Example: Bearer qayd_…

  • Accept-Language string optional

    en for English error messages. Arabic by default.

    Example: en

  • Content-Type string required

    application/json with every request that has a body.

    Example: application/json

  • Idempotency-Key string optional

    A unique value so a request sent again creates nothing twice.

    Example: order-10045

Request body application/json

  • date date optional

    The date; today when not sent.

    Example: 2026-11-15

  • description string required

    Description, up to 500 characters.

    Example: إثبات إيجار نوفمبر

  • reference string optional

    Your reference, such as your store’s order number, up to 60 characters. Searchable later.

    Example: ACC-77

  • post boolean optional

    true to post at once, moving the stock and writing the entry; otherwise saved as a draft.

    Example: true

  • lines array[] required

    The lines, 1 to 500.

  • account_id integer required

    Revenue account. Defaults to the item’s or the sales account.

    Example: 51

  • debit number optional

    Debit amount in riyals. A line is a debit or a credit, not both.

    Example: 5000.00

  • credit number optional

    Credit amount in riyals.

  • contact_id integer optional

    The customer or supplier the line belongs to, for their statement.

  • cost_center_id integer optional

    The cost centre from GET /cost-centers.

  • description string optional

    Description, required when no item is given. Up to 255 characters.

Responses

  • 201 Created
  • 422 Refused
  • 403 Not allowed
  • Errors · 401 · 403 · 429