POST api/v1/CB_Replen
Get store stock levels to calc replen
Request Information
URI Parameters
None.
Body Parameters
ReplenishmentData_CB_Params| Name | Description | Type | Additional information |
|---|---|---|---|
| apiKey |
Please contact Caliq support to get your key |
string |
Required |
| Warehouse | string |
Required |
|
| SupplierAccNo | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"apiKey": "sample string 1",
"Warehouse": "sample string 2",
"SupplierAccNo": "sample string 3"
}
application/xml, text/xml
Sample:
<ReplenishmentData_CB_Params xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <apiKey>sample string 1</apiKey> <Warehouse>sample string 2</Warehouse> <SupplierAccNo>sample string 3</SupplierAccNo> </ReplenishmentData_CB_Params>
Response Information
Resource Description
Returns:
200 OK Returns a collection of product stock data
400 Bad Request - parameters supplied cannot be properly interpreted
401 Not Authorised if supplied api key is not valid
204 No Content
503 Service Unavailable
| Name | Description | Type | Additional information |
|---|---|---|---|
| CB_Replen_Item | Collection of CB_Replen_Item |
None. |
Response Formats
application/json, text/json
Sample:
{
"CB_Replen_Item": [
{
"Item": "sample string 1",
"Description": "sample string 2",
"ProdGroup1": "sample string 3",
"ProdGroup2": "sample string 4",
"APACFreeStock": 5,
"APACFreeStockLeeds": 6,
"StoreStock": 7,
"OnOrder": 8,
"Mult": 9,
"APACSOQ": 10,
"TargetLevel": 11,
"InvLast14Days": 12
},
{
"Item": "sample string 1",
"Description": "sample string 2",
"ProdGroup1": "sample string 3",
"ProdGroup2": "sample string 4",
"APACFreeStock": 5,
"APACFreeStockLeeds": 6,
"StoreStock": 7,
"OnOrder": 8,
"Mult": 9,
"APACSOQ": 10,
"TargetLevel": 11,
"InvLast14Days": 12
}
]
}
application/xml, text/xml
Sample:
<CB_Replen_Items xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<CB_Replen_Item>
<Item>sample string 1</Item>
<Description>sample string 2</Description>
<ProdGroup1>sample string 3</ProdGroup1>
<ProdGroup2>sample string 4</ProdGroup2>
<APACFreeStock>5</APACFreeStock>
<APACFreeStockLeeds>6</APACFreeStockLeeds>
<StoreStock>7</StoreStock>
<OnOrder>8</OnOrder>
<Mult>9</Mult>
<APACSOQ>10</APACSOQ>
<TargetLevel>11</TargetLevel>
<InvLast14Days>12</InvLast14Days>
</CB_Replen_Item>
<CB_Replen_Item>
<Item>sample string 1</Item>
<Description>sample string 2</Description>
<ProdGroup1>sample string 3</ProdGroup1>
<ProdGroup2>sample string 4</ProdGroup2>
<APACFreeStock>5</APACFreeStock>
<APACFreeStockLeeds>6</APACFreeStockLeeds>
<StoreStock>7</StoreStock>
<OnOrder>8</OnOrder>
<Mult>9</Mult>
<APACSOQ>10</APACSOQ>
<TargetLevel>11</TargetLevel>
<InvLast14Days>12</InvLast14Days>
</CB_Replen_Item>
</CB_Replen_Items>