POST api/Products/QuantityAvailable
Method for checking real-time product availibility in ERP. It is intended to be used on cart page (do not overuse it, it is IP protected).
Request Information
URI Parameters
None.
Body Parameters
ProductQuantityRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| ProductCode |
Product code i.e. 000669R8170023004 |
string |
Required |
Request Formats
application/json, text/json
Sample:
{
"ProductCode": "000669R8170023004"
}
application/xml, text/xml
Sample:
<ProductQuantityRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/api.namjestaj_intermod.hr.Models"> <ProductCode>000669R8170023004</ProductCode> </ProductQuantityRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ProductQuantityResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| ProductCode |
Product code in ERP |
string |
Required |
| ProductID |
Product ID in ERP |
integer |
Required |
| QuantityAvailable |
Real-time quantity available |
integer |
Required |
| PriceWholesale |
Product wholesale price |
decimal number |
Required |
| PriceRetail |
Product retail price |
decimal number |
Required |
Response Formats
application/json, text/json
Sample:
{
"ProductCode": "000669R8170023004",
"ProductID": 64226,
"QuantityAvailable": 15,
"PriceWholesale": 130.0,
"PriceRetail": 270.0
}
application/xml, text/xml
Sample:
<ProductQuantityResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/api.namjestaj_intermod.hr.Models"> <PriceRetail>270</PriceRetail> <PriceWholesale>130</PriceWholesale> <ProductCode>000669R8170023004</ProductCode> <ProductID>64226</ProductID> <QuantityAvailable>15</QuantityAvailable> </ProductQuantityResponse>
