API referencePurchasingPurchase ordersOrderidLinesLineidReceipts
Receive all or part of an ordered line into physical stock
The API runs on your own Open Inventory instance. Session-authenticated requests require a session on that instance.
POST
bearerAuthheader
AuthorizationBearer <inv_ token>orderId*stringFormat
uuidlineId*stringFormat
uuidIdempotency-Key*stringUUID identifying this atomic operation; reuse it only to retry the exact same request.
Format
uuidX-Organization-ID?stringOrganization membership selected for this request. User-bound credentials may select any active membership; standalone tokens may only repeat their pinned organization ID.
Format
uuidapplication/json- body
quantity*integerReceipt quantity in base stock units.
Range
1 <= value <= 1000purchaseQuantity?integerReceipt quantity in the purchase unit snapshotted on the order line.
Range
1 <= value <= 1000000receivedAt?stringFormat
date-timelocation?|Length
length <= 240note?stringLength
length <= 20000unitCodes?array<>Replayed the original goods receipt
curl -X POST 'https://inventory.example.com/api/v1/purchase-orders/497f6eca-6276-4993-bfeb-53cbbbba6f08/lines/497f6eca-6276-4993-bfeb-53cbbbba6f08/receipts' \ -H 'Idempotency-Key: 497f6eca-6276-4993-bfeb-53cbbbba6f08' \ -H 'Content-Type: application/json' \ -d '{}'Example Response
Empty