WishList are apart from the customers.
Get wishList
Get the wishList of the customer.
Example
https://wsmedia.tlsecure.com/api/json/00000/customer/wishlist
Request
HTTP Verb : GET
URL : http://{WS_URL}/RestWSDF4/{returnType}/{domainCode}/customer/wishList
Parameters | Location | Type | Required | Default | Accepted |
---|---|---|---|---|---|
token | Header | String(26) | v |
Response
Success
{ "response": { "success": true "message": "get wishlist" "object": { "wishlist": { "line": [1] 0: { "ean": 9789402124460 "title": "Brammetje boterhammetje" "author": "Marguerite Steur" "price": 15 "productForm": "BC" } } } } }
Error
{ "response": { "code": 11, "message": "no wishList" } }
Codelist
Code | Success | Message |
---|---|---|
0 | v | getting wishList |
1 | domaincode malformed | |
2 | connexion error | |
3 | token is empty | |
4 | no token with that key | |
5 | invalid token | |
9 | {param} is not {type} {(or undefined)} | |
10 | v | no wishList chosen |
11 | no wishList | |
99 | uncatched exception |
Create wishList
Example
https://wsmedia.tlsecure.com/api/json/00000/customer/wishlist/9789402124460
Request
HTTP Verb : POST
URL : http://{WS_URL}/RestWSDF4/{returnType}/{domainCode}/customer/wishlist/{ean}
Parameters | Location | Type | Required | Default | Accepted |
---|---|---|---|---|---|
token | Header | String(26) | v | ||
ean | URL | Long | v |
Response
Success
{ "response": { "success": true "message": "wishlist added" "object": { "line": { "ean": 9789402124461 } } } }
Error
{ "response": { "code": 12, "message": "9789402124460 already exist" } }
Codelist
Code | Success | Message |
---|---|---|
0 | v | wishList created |
1 | domaincode malformed | |
2 | connexion error | |
3 | token is empty | |
4 | no token with that key | |
5 | invalid token | |
9 | {param} is not {type} {(or undefined)} | |
10 | {ean} already exist | |
99 | uncatched exception |
Delete wishList
Example
https://wsmedia.tlsecure.com/api/json/00000/customer/wishlist/9789402124460
Request
HTTP Verb : DELETE
URL : http://{WS_URL}/RestWSDF4/{returnType}/{domainCode}/customer/wishList/{ean}
Parameters | Location | Type | Required | Default | Accepted |
---|---|---|---|---|---|
token | Header | String(26) | v | ||
ean | URL | Long | v |
Response
Success
{ "response": { "success": true "message": "9789402124460 deleted" } }
Error
{ "response": { "success": false "code": 10 "message": "9789402124460 doesn't exist" } }
Codelist
Code | Success | Message |
---|---|---|
0 | v | address updated |
1 | domaincode malformed | |
2 | connexion error | |
3 | token is empty | |
4 | no token with that key | |
5 | invalid token | |
9 | {param} is not {type} {(or undefined)} | |
10 | {ean} doesn't exist | |
99 | uncatched exception |