List a product's quantities
Every quantity line on the product, at every workplace and without one, with totals per unit.
Every quantity line on the product, at every workplace and without one, with totals per unit. Filter to one workplace with workplace_id, or send workplace_id=none for the product-level lines only.
Authorization
bearerAuth AuthorizationBearer <token>
A machine API key from Settings > API keys, in the form nsds_live_.... Shown once at creation and never retrievable afterwards.
In: header
Path Parameters
id*string
Product id.
Format
uuidQuery Parameters
workplace_id?|
A workplace id, or none for lines without a workplace.
Response Body
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/products/497f6eca-6276-4993-bfeb-53cbbbba6f08/quantities"{ "data": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "workplace_id": "f8aa9045-e91c-4c0d-86a4-c79ebb5ea22b", "amount": 0, "unit": "string", "container_count": 0, "recipient_id": "b6731cb5-d462-49ea-afb8-7933b670b560", "total": 0, "created_at": "string", "updated_at": "string" } ], "totals": [ { "unit": "string", "amount": 0 } ]}