Export your order history
Your whole order history in one download, no pagination: every item you bought and sold, oldest first. format=csv (the default) returns a spreadsheet with a header row; format=json returns { "orders": [...] } with the same columns. Narrow it with side (bought or sold), app_id, and from/to as ISO dates. Money is in integer cents: unit_price is the price of one copy, total_value the whole row, fee the selling commission (only ever set on your sold rows) and net what the row was worth to you. settled_at is when a sale settled and is empty until it does. The response is streamed, so a long history starts arriving immediately.
Authorization
apiKey API key generated from your account settings on the website. Send as Authorization: Bearer csd_....
In: header
Query Parameters
"csv"Value in
- "csv"
- "json"
Value in
- "bought"
- "sold"
^[1-9]\d*$Response Body
application/json
curl -X GET "https://example.com/public/v1/orders/export"{ "orders": [ { "order_item_id": 1, "order_id": 1, "side": "bought", "app_id": 1, "market_hash_name": "string", "amount": -9007199254740991, "unit_price": -9007199254740991, "total_value": -9007199254740991, "fee": -9007199254740991, "net": -9007199254740991, "created_at": "2019-08-24T14:15:22Z", "settled_at": "2019-08-24T14:15:22Z" } ]}