Skip to main content

Purpose

Fetch the stock write-offs caused by a single receipt — the inventory deducted from your storages when the receipt’s products were sold. Use it to reconcile a sale against the warehouse movements it produced (“Çıxarılan ehtiyat” / stock deduction by receipt id). Only the deductions of the receipt itself are returned: each item has operation_id = null and a non-null receipt_product_id. Manual stock corrections or operations from other documents are excluded. This endpoint requires the receipts:read scope.

HTTP Request

This endpoint requires authentication. Include your JWT in the x-token header. See Authentication for how to obtain a token and Errors for error responses.

Path Parameters

Request Example

Response

200 OK — Stock operations

404 Not Found — Invalid ID

Field Reference

Stock operation object

stock

Notes

  • The endpoint returns only the receipt’s own deductions (operation_id = null, receipt_product_id != null); inventory adjustments from other documents are not included.
  • A product may be soft-deleted but is still returned so historical receipts remain fully reconcilable.
  • Combine with Get Receipt by ID to map each receipt_product_id back to its sold line item.