XPM

Get Multiple by itemId

Path:

POST /inventory

You may need to take stock of items at regular interval and this endpoint helps you retrieve details of a single item or multiple items from the inventory.

Headers

Content-Type:application/json

x-site-context:{"channel":"1","date":"2019-06-19"}

x-api-key:d41d8cd98f00b204e9800998ecf8427e

Consumes

  • application/json

Produces

  • application/json

Parameters

Type: Body

Name: Item details (itemId and quantity) and channelId

Required: true

Sample Request

{
"items": [{ "itemId":"231212", "quantity":4 } ],
"channelId":"1"
}

Response

Response Code: 200

Message: OK

Description: You will see this message when items are successfully retrieved from the inventory.

Sample

[
{
"itemId": 231212,
"quantityRequested": 4,
"stockDate": null,
"inStock": false,
"fromStockQuantity": 0,
"fromStock": [],
"fromTransitQuantity": 0,
"fromTransit": [],
"availableStockQuantity": 0,
"availableTransitQuantity": 0,
"availableTotal": 0
}
]

Changelog

  • Last updated - July 2020