Skip to content
QaydTech Beta launch

Stock

Record a stock movement

post https://your-business.qaydtech.com/api/v1/stock/documents

A count that says what a warehouse really holds so the difference is adjusted, a transfer between two warehouses, goods received, or goods issued, without an invoice. Saved as a draft or posted at once with post: true. Items in their own unit, each once. A test key saves drafts only.

Permission: stock.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

  • kind string required

    The kind: adjustment (a count: the quantity really there), transfer, receipt or issue. For aging: customers or suppliers.

    Example: adjustment

  • warehouse_id integer required

    The warehouse number from GET /warehouses. Defaults to the main warehouse.

    Example: 1

  • to_warehouse_id integer optional

    The warehouse transferred to; required for a transfer.

  • date date optional

    The date; today when not sent.

    Example: 2026-11-10

  • account_id integer optional

    For payments and refunds: the cash box or bank account from GET /payment-accounts, defaulting to the method’s account. For stock documents: the offset account, defaulting to stock adjustments.

  • reason string optional

    The reason for the note.

    Example: جرد نهاية الشهر

  • notes string optional

    Notes, up to 500 characters.

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

  • item_id integer required

    The item number: the line takes its name, price, tax and sales account.

    Example: 8

  • quantity number required

    Quantity, above zero, up to 3 decimals.

    Example: 40

  • unit_cost number optional

    Unit cost for a receipt or for what a count finds above the books. Defaults to the average cost.

Responses

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