Openapi
Return stock reserved or consumed by quotes, tasks, and invoices.
sb-auth-token<token>Supabase browser session cookie. Supabase may split larger session values into chunked cookies like sb-auth-token.0.
organizationId*stringuuidoffset*stringlimit*stringq?stringinvoiceLineId?stringuuidproductId?stringuuidquoteVersionLineId?stringuuidstockRecordId?stringuuidtaskMaterialId?stringuuidReturns inventory allocations.
application/jsondata*array<>pagination*curl -X GET 'https://app.localhost/api/v1/organizations/123/inventory/allocations?offset=example&limit=example&q=example&invoiceLineId=123e4567-e89b-12d3-a456-426614174000&productId=123"eVersionLineId=123e4567-e89b-12d3-a456-426614174000&stockRecordId=123&taskMaterialId=123e4567-e89b-12d3-a456-426614174000'{ "data": [ { "consumedAt": "2019-08-24T14:15:22Z", "createdAt": "2019-08-24T14:15:22Z", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "invoiceLineId": "01b48345-8495-4ed8-81ba-4399df639395", "orderLineId": "3bba51e3-a0c1-4b14-a700-b2d3b8ed156d", "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9", "productId": "dcd53ddb-8104-4e48-8cc0-5df1088c6113", "quantity": 1, "quoteVersionLineId": "8282e614-b4de-499e-9ba8-f5fea288db65", "source": { "displayNumber": "string", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "kind": "quote", "number": 1 }, "state": "reserved", "stockRecordId": "cc91415f-f5cb-4ad0-a9b3-164cf789611a", "taskMaterialId": "b70c6a0f-a0e3-44c6-b027-9ce0f832fd43", "updatedAt": "2019-08-24T14:15:22Z" } ], "pagination": { "hasMore": true, "limit": 1, "offset": 0, "total": 0, "totalIsEstimate": true }}