Contents

/order/:idOrder

Allowed HTTP Methods

Resource Information

Parameters

Request Object

<?xml version="1.0" encoding="UTF-8" ?>
<request>
    <action />                      // Action to be performed to change the state of the order
    <reason />                      // The reason for the cancellation request; only applicable, if action = requestCancellation
    <relistItems />                 // true|false, only applicable (and optional):
                                    // - if action = requestCancellation and the actor is the seller of the order, or
                                    // - if action = acceptCancellation and the actor is the seller of the order, or
                                    // - if action = cancel, the actor is the seller of the order, and the order is not paid yet
</request>

Possible values for action:

Example Request

1. Get details of an order:

GET https://api.cardmarket.com/ws/v1.1/order/2844597


2. Mark the order as sent:

PUT https://api.cardmarket.com/ws/v1.1/order/2844597

<?xml version="1.0" encoding="UTF-8" ?>
<request>
    <action>send</action>
</request>

3. Seller requests cancellation of the order:

PUT https://api.cardmarket.com/ws/v1.1/order/2844597

<?xml version="1.0" encoding="UTF-8" ?>
<request>
    <action>requestCancellation</action>
    <reason>Don't have the articles anymore</reason>
    <relistItems>false</relistItems>
</request>