Contents

/shoppingcart

Allowed HTTP Methods

Resource Information

Request Object

<?xml version="1.0" encoding="UTF-8" ?>
<request>
    <action />
    <article>
        <idArticle />
        <count /> or <amount />
    </article>
</request>

action can be either add or remove which indicates whether an article (or more) are added to or removed from the shopping cart. Please note, that with a single request articles can only be added or removed.

The article itself is specified by its ID (idArticle) and the quantity by either count</count> or amount (for compatibility reasons).

Example Request

1. Gets the authenticated user's shopping cart:

GET https://api.cardmarket.com/ws/v1.1/shoppingcart


2. Adds an article to the shopping cart:

PUT https://api.cardmarket.com/ws/v1.1/shoppingcart

<?xml version="1.0" encoding="UTF-8" ?>
<request>
    <action>add</action>
    <article>
        <idArticle>142158699</idArticle>
        <amount>1</amount>
    </article>
</request>

3. Removes articles from the shopping cart:

PUT https://api.cardmarket.com/ws/v1.1/shoppingcart

<?xml version="1.0" encoding="UTF-8" ?>
<request>
    <action>remove</action>
    <article>
        <idArticle>144491155</idArticle>
        <amount>2</amount>
    </article>
    <article>
        <idArticle>144491158</idArticle>
        <amount>1</amount>
    </article>
</request>

4. Empties the authenticated user's shopping cart

DELETE https://api.cardmarket.com/ws/v1.1/shoppingcart