Stock
Record a stock movement
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.
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
-
kindstring requiredThe kind: adjustment (a count: the quantity really there), transfer, receipt or issue. For aging: customers or suppliers.
Example:
adjustment -
warehouse_idinteger requiredThe warehouse number from GET /warehouses. Defaults to the main warehouse.
Example:
1 -
to_warehouse_idinteger optionalThe warehouse transferred to; required for a transfer.
-
datedate optionalThe date; today when not sent.
Example:
2026-11-10 -
account_idinteger optionalFor 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.
-
reasonstring optionalThe reason for the note.
Example:
جرد نهاية الشهر -
notesstring optionalNotes, up to 500 characters.
-
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.
-
item_idinteger requiredThe item number: the line takes its name, price, tax and sales account.
Example:
8 -
quantitynumber requiredQuantity, above zero, up to 3 decimals.
Example:
40 -
unit_costnumber optionalUnit 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