Stock
- 1 Information
- 1.1 Request
- 1.2 Stock provider
- 1.3 Response
Allow to receive the stock by the providers
Information
It gives the live availability’s of books.
Example
https://wsmedia.tlsecure.com/api/json/00000/product/stock/1?ean=5065000582135,886971607925
Request
HTTP Verb : GET
URL : http://{WS_URL}/api/{returnType}/{domainCode}/product/stock/{idProvider}?ean={ean}
The parameter {ean} can be separate by a coma to get many ean in the same WebService Example:https://wsmedia.tlsecure.com/api/json/0/product/stock/1?ean=9789065391124,9789025752095,9789089982087
Parameters | Location | Type | Required | Default | Accepted |
---|---|---|---|---|---|
ean | Query | String | v |
|
|
idProvider | Path | Integer | v |
|
Stock provider
CB: 1
Gardners: 2
Craenen: 3
Ingram: 4
Response
Variables | Description | Mapping |
---|---|---|
productId | ISBN-13 |
|
productIdType | Type of product |
|
quantityAvailable24hrs | Availability of stock in 24h |
|
quantityAvailable48hrs | Availability of stock in 48h |
|
Success
{
"response": {
"success": true,
"code": 0,
"message": "product retrieved",
"object": {
"stockAvailabilities": {
"stockAvailability": [{
"productId": 9789025307035,
"productIdType": "EAN",
"quantity": [{
"type": 2,
"quantity": 546
}, {
"type": 3,
"quantity": 699
}]
}]
}
}
}
}