API Documentation >> API 2.0 Main >> Stock Management >> Export Own Stock
Export Own Stock
Allowed HTTP Methods
- POST - Request the export of Article entities from your stock.
Attention:: The contents of a stock export are calculated at the time of processing the request. All changes made to Articles after this point, including their "inShoppingCart" status, will not be taken into consideration.
- GET - Returns details for all requested exports of Article entities from your stock.
Resource Information
- Authentication - Required
- Request Limit - One request per hour
- Response Format - XML or JSON
- Response Object - Array of StockExport
- API Version - 2.0
- Resource URI -
https://api.cardmarket.com/ws/v2.0/exports/stock
Parameters
idGame
(query parameter)
- Game ID
- Type: int
- Optional (if not provided, exports whole stock)
Example Request
- Request the export of your stock
POST https://api.cardmarket.com/ws/v2.0/exports/stock
- Request the export of your stock for Magic: The Gathering
POST https://api.cardmarket.com/ws/v2.0/exports/stock?idGame=1
- Get details of all requested exports of your stock in the last 24h
GET https://api.cardmarket.com/ws/v2.0/exports/stock