Product
Allow to receive the information on a product in MediaLog
Information
It gives the live availability’s of books in the bookshop and others informations.
Example
https://wsmedia.tlsecure.com/api/json/00000/product/info
Request
HTTP Verb : GET
URL : http://{WS_URL}/api/{returnType}/{domainCode}/product/info?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/info?ean=9789065391124,9789025752095,9789089982087
Parameters | Location | Type | Required | Default | Accepted |
---|---|---|---|---|---|
ean | Query | String | v |
|
|
shop | Query | Integer |
|
|
|
If you don't specify the shop, the WebService return the stock information of all shops link by the webShop
Response
Variables | Description |
---|---|
ean | ISBN-13 |
stock | Stock physique in the shop |
available | (Stock physique in the shop) substract (Stock in order or reserved) |
order | quantity order to provider |
known | If the product is known in MediaLog |
price | Price in MediaLog |
headGroup | The first level for the ranking |
group | The second level for the ranking |
category | The third level for the ranking |
Success
{
"response": {
"success": true,
"code": 0,
"message": "product retrieved",
"object": {
"shops": {
"shop": [{
"id": 200,
"name": "Stark Industries",
"addressLine1": "Street of IronMan 56",
"addressLine2": "NULL",
"postcode": "90087",
"city": "Los Angeles",
"country": 231,
"phone": "0503134041",
"product": [{
"ean": 9789065391124,
"known": 1,
"price": 31.0,
"headGroup": "BOEKEN",
"group": "THEOLOGIE",
"category": "7019"
}, {
"ean": 9789089982087,
"stock": 3,
"available": 3,
"known": 1,
"price": 19.950000762939453,
"headGroup": "BOEKEN",
"group": "KUNST, GESCHIEDENIS",
"category": "6409"
}, {
"ean": 9789025752095,
"known": 1,
"price": 1.9500000476837158,
"headGroup": "BOEKEN",
"group": "KINDERBOEKEN",
"category": "2013"
}]
}]
}
}
}
}
Error
{
"response": {
"success": false,
"code": 9,
"message": "ean undefined"
}
}
Codelist
Code | Success | Message |
---|---|---|
0 | v | order has ben set to status X |
1 |
| domaincode malformed |
2 |
| connexion error |
3 |
| token empty |
4 |
| no token with that key |
5 |
| invalid token |
9 |
| {param} not {type} {(or undefined)} |
10 |
| ean not exist |
11 |
| configuration to mediaLog not exist |
99 |
| uncatched exception |