GET v1/items/{itemId}/inventory-locations?asOfDate={asOfDate}

Returns Inventory locations with Qty On Hand and Qty Available for an item. If UoM tracking is ON, then the returned numbers are in base unit for that item.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
itemId

integer

Required

asOfDate

Optional. Defaults to Today.

date

None.

Body Parameters

None.

Response Information

Resource Description

Collection of ItemInventoryLocation
NameDescriptionTypeAdditional information
InventoryLocationID

Inventory location Id

integer

None.

InventoryLocationName

Inventory location name

string

None.

QtyOnHand

Quantity on hand

decimal number

None.

QtyAvailable

Quantity available

decimal number

None.

QtyOnPurchaseOrders

Quantity on purchase orders

decimal number

None.

QtyOnSalesOrders

Quantity on sales orders

decimal number

None.

QtyOnPendingBuilds

Quantity on pending builds

decimal number

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "inventoryLocationID": 1,
    "inventoryLocationName": "sample string 2",
    "qtyOnHand": 3.0,
    "qtyAvailable": 4.0,
    "qtyOnPurchaseOrders": 5.0,
    "qtyOnSalesOrders": 6.0,
    "qtyOnPendingBuilds": 7.0
  },
  {
    "inventoryLocationID": 1,
    "inventoryLocationName": "sample string 2",
    "qtyOnHand": 3.0,
    "qtyAvailable": 4.0,
    "qtyOnPurchaseOrders": 5.0,
    "qtyOnSalesOrders": 6.0,
    "qtyOnPendingBuilds": 7.0
  }
]

application/xml, text/xml

Sample:
<ArrayOfItemInventoryLocation xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BAPI.Models.Accounting">
  <ItemInventoryLocation>
    <InventoryLocationID>1</InventoryLocationID>
    <InventoryLocationName>sample string 2</InventoryLocationName>
    <QtyAvailable>4</QtyAvailable>
    <QtyOnHand>3</QtyOnHand>
    <QtyOnPendingBuilds>7</QtyOnPendingBuilds>
    <QtyOnPurchaseOrders>5</QtyOnPurchaseOrders>
    <QtyOnSalesOrders>6</QtyOnSalesOrders>
  </ItemInventoryLocation>
  <ItemInventoryLocation>
    <InventoryLocationID>1</InventoryLocationID>
    <InventoryLocationName>sample string 2</InventoryLocationName>
    <QtyAvailable>4</QtyAvailable>
    <QtyOnHand>3</QtyOnHand>
    <QtyOnPendingBuilds>7</QtyOnPendingBuilds>
    <QtyOnPurchaseOrders>5</QtyOnPurchaseOrders>
    <QtyOnSalesOrders>6</QtyOnSalesOrders>
  </ItemInventoryLocation>
</ArrayOfItemInventoryLocation>