Add or remove an article to resp. from the shopping cart. Add resp. remove is specified by the data. More articles can be added or removed with one request (but not added AND removed). Returns the current representation of the shopping cart. Articles were added to resp. removed from the shopping cart of the authenticated user.
Authentication | Required |
---|---|
Response Format | XML |
HTTP Methods | PUT |
Response Object | ShoppingCart |
Data Object | Article |
API Version | 1.0 |
https://www.mkmapi.eu/ws/:user/:apikey/shoppingcart
None.
Specifies if articles should be added or removed:
<action>add</action> // Adds the article(s) <action>remove</action> // Removes the article(s)
Specifies the article and its quantity:
<article> <idArticle>111604267</idArticle> <amount>1</amount> </article>
PUT https://www.mkmapi.eu/ws/someuser/someapikey/shoppingcart
<?xml version="1.0" encoding="UTF-8" ?> <request> <action>add</action> <article> <idArticle>111604267</idArticle> <amount>1</amount> </article> <article> <idArticle>111483374</idArticle> <amount>2</amount> </article> </request>
PUT https://www.mkmapi.eu/ws/someuser/someapikey/shoppingcart
<?xml version="1.0" encoding="UTF-8" ?> <request> <action>remove</action> <article> <idArticle>111483374</idArticle> <amount>1</amount> </article> </request>