https://api.cardmarket.com/ws/v1.1/order/:idOrderidOrder
<?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:
send - can be performed by the seller, if the current state is paidconfirmReception - can be performed by the buyer, if the current state is sentcancel - can be performed by the seller, if the current state is bought for more than 7 days; can be performed by the buyer, if the current state is paid for more than 7 daysrequestCancellation - can be performed by both, if the state is not yet sent, the additional key reason is required; if the seller requests cancellation, an optional key relistItems can be provided to indicate, if the articles of the order should be relisted after the cancellation request was accepted by the buyeracceptCancellation - can be performed by both (but must be opposing actor), if the state is cancellationRequested; if the seller accepts the cancellation request, an optional key relistItems can be provided to indicate, if the articles of the order should be relisted thereafter1. 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>