GET api/Common/GetNearestWarehouses?ProviderID={ProviderID}&SCProductID={SCProductID}&SkuID={SkuID}&groupID={groupID}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
ProviderID | integer |
Required |
|
SCProductID | integer |
Required |
|
SkuID | integer |
Required |
|
groupID | integer |
Default value is 0 |
Body Parameters
None.
Response Information
Resource Description
Collection of WarehouseViewModelName | Description | Type | Additional information |
---|---|---|---|
ProviderId | integer |
None. |
|
Availibility | string |
None. |
|
StockClass | string |
None. |
|
Stock | integer |
None. |
|
StoreID | integer |
None. |
|
StoreNumber | integer |
None. |
|
StockLevel | byte |
None. |
|
ShowVStock | integer |
None. |
|
AvailableOnline | string |
None. |
|
AllowStockBackOrder | boolean |
None. |
|
VStockAlwaysAvailable | boolean |
None. |
|
AddressId | integer |
None. |
|
WarehouseName | string |
None. |
|
ContactPerson | string |
None. |
|
AddressLine1 | string |
None. |
|
AddressLine2 | string |
None. |
|
City | string |
None. |
|
State | string |
None. |
|
StateCode | string |
None. |
|
ZipCode | string |
None. |
|
PhoneNumber | string |
None. |
|
string |
None. |
||
CountryCode | string |
None. |
|
IsPhysicalStore | boolean |
None. |
|
IsDefaultStore | boolean |
None. |
|
ReferenceName | string |
None. |
Response Formats
application/json, text/json, text/html
Sample:
[ { "ProviderId": 1, "Availibility": "sample string 2", "StockClass": "sample string 3", "Stock": 4, "StoreID": 5, "StoreNumber": 6, "StockLevel": 64, "ShowVStock": 8, "AvailableOnline": "sample string 9", "AllowStockBackOrder": true, "VStockAlwaysAvailable": true, "AddressId": 12, "WarehouseName": "sample string 13", "ContactPerson": "sample string 14", "AddressLine1": "sample string 15", "AddressLine2": "sample string 16", "City": "sample string 17", "State": "sample string 18", "StateCode": "sample string 19", "ZipCode": "sample string 20", "PhoneNumber": "sample string 21", "Email": "sample string 22", "CountryCode": "sample string 23", "IsPhysicalStore": true, "IsDefaultStore": true, "ReferenceName": "sample string 25" }, { "ProviderId": 1, "Availibility": "sample string 2", "StockClass": "sample string 3", "Stock": 4, "StoreID": 5, "StoreNumber": 6, "StockLevel": 64, "ShowVStock": 8, "AvailableOnline": "sample string 9", "AllowStockBackOrder": true, "VStockAlwaysAvailable": true, "AddressId": 12, "WarehouseName": "sample string 13", "ContactPerson": "sample string 14", "AddressLine1": "sample string 15", "AddressLine2": "sample string 16", "City": "sample string 17", "State": "sample string 18", "StateCode": "sample string 19", "ZipCode": "sample string 20", "PhoneNumber": "sample string 21", "Email": "sample string 22", "CountryCode": "sample string 23", "IsPhysicalStore": true, "IsDefaultStore": true, "ReferenceName": "sample string 25" } ]
application/xml, text/xml
Sample:
<ArrayOfWarehouseViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SellersCommerce.ViewModels.Products"> <WarehouseViewModel> <AddressId>12</AddressId> <AddressLine1>sample string 15</AddressLine1> <AddressLine2>sample string 16</AddressLine2> <City>sample string 17</City> <ContactPerson>sample string 14</ContactPerson> <CountryCode>sample string 23</CountryCode> <Email>sample string 22</Email> <IsDefaultStore>true</IsDefaultStore> <IsPhysicalStore>true</IsPhysicalStore> <PhoneNumber>sample string 21</PhoneNumber> <ReferenceName>sample string 25</ReferenceName> <State>sample string 18</State> <StateCode>sample string 19</StateCode> <WarehouseName>sample string 13</WarehouseName> <ZipCode>sample string 20</ZipCode> <AllowStockBackOrder>true</AllowStockBackOrder> <AvailableOnline>sample string 9</AvailableOnline> <Availibility>sample string 2</Availibility> <ProviderId>1</ProviderId> <ShowVStock>8</ShowVStock> <Stock>4</Stock> <StockClass>sample string 3</StockClass> <StockLevel>64</StockLevel> <StoreID>5</StoreID> <StoreNumber>6</StoreNumber> <VStockAlwaysAvailable>true</VStockAlwaysAvailable> </WarehouseViewModel> <WarehouseViewModel> <AddressId>12</AddressId> <AddressLine1>sample string 15</AddressLine1> <AddressLine2>sample string 16</AddressLine2> <City>sample string 17</City> <ContactPerson>sample string 14</ContactPerson> <CountryCode>sample string 23</CountryCode> <Email>sample string 22</Email> <IsDefaultStore>true</IsDefaultStore> <IsPhysicalStore>true</IsPhysicalStore> <PhoneNumber>sample string 21</PhoneNumber> <ReferenceName>sample string 25</ReferenceName> <State>sample string 18</State> <StateCode>sample string 19</StateCode> <WarehouseName>sample string 13</WarehouseName> <ZipCode>sample string 20</ZipCode> <AllowStockBackOrder>true</AllowStockBackOrder> <AvailableOnline>sample string 9</AvailableOnline> <Availibility>sample string 2</Availibility> <ProviderId>1</ProviderId> <ShowVStock>8</ShowVStock> <Stock>4</Stock> <StockClass>sample string 3</StockClass> <StockLevel>64</StockLevel> <StoreID>5</StoreID> <StoreNumber>6</StoreNumber> <VStockAlwaysAvailable>true</VStockAlwaysAvailable> </WarehouseViewModel> </ArrayOfWarehouseViewModel>