The inventory for all webshop items can be accessed via the url GET http://<server name>:<odata port>/<service tier name>/api/BEterna/Export/v2.0/companies(<company system id>)/inventoriesItemsList?$filter=webshopChannelCode eq '<webshop-channel-code>'
. The filter on the webshop channel code is mandatory. The response is a JSON with all inventories with applied filters.
{
"@odata.context": "http://<server name>:<odata port>/<service tier name>/api/BEterna/Export/v2.0/$metadata#companies(<company system id>)/inventoriesItemsList",
"value": [
{
"@odata.etag": "W/\"JzE5OzQ2MTgyMDQ5NzkxMDk1OTY2NzMxOzAwOyc=\"",
"systemId": "f56de051-86f7-ec11-be4b-ede4b77edebd",
"webshopChannelCode": "B2B",
"itemNo": "1896-S",
"inventorySentToWebshop": false,
"lastStockChangeAt": "0001-01-01T00:00:00Z"
},
{
"@odata.etag": "W/\"JzE5OzQ2NDY4MTA4NTcyMTQxMDg4MDgxOzAwOyc=\"",
"systemId": "695ed05a-86f7-ec11-be4b-ede4b77edebd",
"webshopChannelCode": "B2B",
"itemNo": "1900-S",
"inventorySentToWebshop": false,
"lastStockChangeAt": "0001-01-01T00:00:00Z"
},
{
"@odata.etag": "W/\"JzE5OzQ2MzIzMzgyMTk0NDY2NjEwNzYxOzAwOyc=\"",
"systemId": "b5faadd0-88f7-ec11-be4b-ede4b77edebd",
"webshopChannelCode": "B2B",
"itemNo": "1906-S",
"inventorySentToWebshop": false,
"lastStockChangeAt": "2022-07-12T08:20:00Z"
}
]
}
The fields are documented in the following table.
field | data type | content |
---|---|---|
systemId |
GUID | distinct identifier for an inventory record |
webshopChannelCode |
Code[20] | the webshop channel code |
itemNo |
Code[20] | the no. of the item |
inventorySentToWebshop |
Boolean | information whether inventory is sent to webshop |
lastStockChangeAt |
DateTime | the datetime of last stock change |