The location inventory object has the following fields:
| Field | Type | Description |
|---|---|---|
| id | number | Inventory ID |
| title | string | Title |
| for_services | number | 1 - if used for automatic write-off of consumables |
| for_sale | number | 1 - if the default inventory for selling products |
| comment | string | Description of the inventory |
Security
BearerPartnerUser
- Mock serverhttps://developer.alteg.io/_mock/en/b2b-v1/openapi/storages/{location_id}
- Productionhttps://api.alteg.io/api/v1/storages/{location_id}
curl -i -X GET \
'https://developer.alteg.io/_mock/en/b2b-v1/openapi/storages/{location_id}' \
-H 'Accept: application/vnd.api.v2+json' \
-H 'Authorization: Bearer <YOUR_Bearer {PartnerToken}, User {UserToken}_HERE>' \
-H 'Content-Type: string'OK
Array of objects with data
Example:
[ { "id": 1, "title": "Consumables", "for_service": 1, "for_sale": 0, "comment": "To account for consumables" }, { "id": 2, "title": "Products", "for_service": 0, "for_sale": 1, "comment": "To record store sales" }, { "id": 23061, "title": "Ors", "for_service": 0, "for_sale": 1, "comment": "Nz" } ]
Response
{ "success": true, "data": [ { … }, { … }, { … } ], "meta": [] }