POST api/Inventory/Get

This method returns the product inventory for check availability

Request Information

URI Parameters

None.

Body Parameters

InventoryReq
NameDescriptionTypeAdditional information
productid

string

None.

Request Formats

application/json, text/json

Sample:
{
  "productid": "sample string 1"
}

application/xml, text/xml

Sample:
<InventoryReq xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Adi.BusinessEntities.Inventory">
  <productid>sample string 1</productid>
</InventoryReq>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'InventoryReq'.

Response Information

Resource Description

InventoryResp
NameDescriptionTypeAdditional information
NatInv

string

None.

ReturnCode

string

None.

ReturnMessage

string

None.

WarehouseInventoryRespList

Collection of WarehouseInventory

None.

Message

string

None.

WebApiIsSuccess

boolean

None.

WebApiResponseMessage

string

None.

WebApiErrorCode

string

None.

error_description

string

None.

CookieData

Collection of AppCookie

None.

Response Formats

application/json, text/json

Sample:
{
  "NatInv": "sample string 1",
  "ReturnCode": "sample string 2",
  "ReturnMessage": "sample string 3",
  "WarehouseInventoryRespList": [
    {
      "Dc": "sample string 1",
      "Inventory": 2,
      "Warehouse": {
        "State": "sample string 1",
        "Description": "sample string 2"
      }
    },
    {
      "Dc": "sample string 1",
      "Inventory": 2,
      "Warehouse": {
        "State": "sample string 1",
        "Description": "sample string 2"
      }
    }
  ],
  "Message": "sample string 4",
  "WebApiIsSuccess": true,
  "WebApiResponseMessage": "sample string 6",
  "WebApiErrorCode": "sample string 7",
  "error_description": "sample string 8",
  "CookieData": [
    {
      "Name": "sample string 1",
      "Value": "sample string 2",
      "NameValue": "sample string 3",
      "ExpiryDateTime": "sample string 4"
    },
    {
      "Name": "sample string 1",
      "Value": "sample string 2",
      "NameValue": "sample string 3",
      "ExpiryDateTime": "sample string 4"
    }
  ]
}

application/xml, text/xml

Sample:
<InventoryResp xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Adi.BusinessEntities.Inventory">
  <CookieData xmlns="http://schemas.datacontract.org/2004/07/Adi.BusinessEntities">
    <AppCookie>
      <ExpiryDateTime>sample string 4</ExpiryDateTime>
      <Name>sample string 1</Name>
      <NameValue>sample string 3</NameValue>
      <Value>sample string 2</Value>
    </AppCookie>
    <AppCookie>
      <ExpiryDateTime>sample string 4</ExpiryDateTime>
      <Name>sample string 1</Name>
      <NameValue>sample string 3</NameValue>
      <Value>sample string 2</Value>
    </AppCookie>
  </CookieData>
  <Message xmlns="http://schemas.datacontract.org/2004/07/Adi.BusinessEntities">sample string 4</Message>
  <WebApiErrorCode xmlns="http://schemas.datacontract.org/2004/07/Adi.BusinessEntities">sample string 7</WebApiErrorCode>
  <WebApiIsSuccess xmlns="http://schemas.datacontract.org/2004/07/Adi.BusinessEntities">true</WebApiIsSuccess>
  <WebApiResponseMessage xmlns="http://schemas.datacontract.org/2004/07/Adi.BusinessEntities">sample string 6</WebApiResponseMessage>
  <error_description xmlns="http://schemas.datacontract.org/2004/07/Adi.BusinessEntities">sample string 8</error_description>
  <NatInv>sample string 1</NatInv>
  <ReturnCode>sample string 2</ReturnCode>
  <ReturnMessage>sample string 3</ReturnMessage>
  <WarehouseInventoryRespList>
    <WarehouseInventory>
      <Dc>sample string 1</Dc>
      <Inventory>2</Inventory>
      <Warehouse>
        <Description>sample string 2</Description>
        <State>sample string 1</State>
      </Warehouse>
    </WarehouseInventory>
    <WarehouseInventory>
      <Dc>sample string 1</Dc>
      <Inventory>2</Inventory>
      <Warehouse>
        <Description>sample string 2</Description>
        <State>sample string 1</State>
      </Warehouse>
    </WarehouseInventory>
  </WarehouseInventoryRespList>
</InventoryResp>