Skip to content

Get location inventories

Request

The location inventory object has the following fields:

FieldTypeDescription
idnumberInventory ID
titlestringTitle
for_servicesnumber1 - if used for automatic write-off of consumables
for_salenumber1 - if the default inventory for selling products
commentstringDescription of the inventory
Security
BearerPartnerUser
Path
location_idnumberrequired

location ID

Headers
Acceptstringrequired

e.g. application/vnd.api.v2+json

Example:application/vnd.api.v2+json
Content-Typestringrequired

application/json

Authorizationstringrequired

Bearer partner_token, User user_token

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'

Responses

OK

Bodyapplication/json
successboolean

Execution success status (true)

Example:true
dataArray of objects

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" } ]
metaArray of objects

Metadata (empty array)

Example:
[]
Response
{ "success": true, "data": [ { … }, { … }, { … } ], "meta": [] }