# List sales

The workspace's sales and lost items, newest first, with price, cost and profit.

`GET https://api.goldmine.to/v1/sales`

## Query parameters

- `limit` (integer, default 25, 1 to 100): How many to return, 1 to 100.
- `cursor` (string): The next_cursor of the previous page. Send the same other parameters with it.
- `status` (string): Only sales in these states, comma separated.
- `market` (string): Only these markets, by key, comma separated.
- `buying_contract_id` (string): Only sales of items this contract bought.
- `query` (string): Only items whose name contains this text, ignoring case.
- `ended_from` (string): Only sales that ended at or after this time. A pending sale always matches.
- `ended_before` (string): Only sales that ended before this time. A pending sale always matches.

## Response (200)

- `data` (array<Sale>, required): This page, in the list's order.
  - `buying_contract_id` (string): The contract that bought the item.
  - `cost` (Money): What the item cost, when it was bought here.
    - `amount` (string, required): The amount as a decimal string, exact, with at least two decimal places.
    - `currency` (string, required): The ISO 4217 currency code.
  - `ended_at` (string): When it was delivered, failed or lost.
  - `failure_reason` (string, one of buyer_did_not_accept, item_not_in_account, market_cancelled, not_sent_in_time, sale_not_as_listed, sold_on_another_market, steam_refused, trade_reversed, unknown): Why it failed, when it did.
  - `id` (string, required): The sale's id.
  - `item` (string, required): The item's market hash name.
  - `list_price` (Money): The price it was listed at when it sold.
    - `amount` (string, required): The amount as a decimal string, exact, with at least two decimal places.
    - `currency` (string, required): The ISO 4217 currency code.
  - `loss_reason` (string, one of reversed_not_returned, settlement_missing, taken_unpaid, unknown, voided_after_delivery, written_off): Why the item was lost, when it was.
  - `market` (string): The market it sold on.
  - `not_bought_here` (boolean, required): True when the item was not bought through this workspace's contracts, so it has no cost and no profit.
  - `price` (Money, required): What the sale pays, after the market's fee, in US dollars.
    - `amount` (string, required): The amount as a decimal string, exact, with at least two decimal places.
    - `currency` (string, required): The ISO 4217 currency code.
  - `profit` (Money, required): The price less the cost once delivered, minus the cost when lost, and zero while pending or failed.
    - `amount` (string, required): The amount as a decimal string, exact, with at least two decimal places.
    - `currency` (string, required): The ISO 4217 currency code.
  - `selling_contract_id` (string): The selling contract it sold under.
  - `started_at` (string, required): When the buyer took the item.
  - `status` (string, required, one of delivered, failed, lost, pending, unknown): pending: a buyer took it and the trade is under way. delivered: the buyer accepted and the sale is booked. failed: no money came and the item is still yours. lost: the item left and no money came.
  - `steam_account_name` (string): The Steam account the item is sent from.
- `has_more` (boolean, required): True when another page follows.
- `next_cursor` (string): The cursor of the next page. Absent on the last page.

Errors answer the error body described in the overview: https://goldmine.to/llms.mdx/docs/index.md

## Example request

```shell
curl "https://api.goldmine.to/v1/sales?limit=25" \
  -H "Authorization: Bearer $CSTRADER_API_KEY"
```

## Example response

```json
{
  "data": [
    {
      "buying_contract_id": "ctr_0190f3c2a1b47c3d8e9f0a1b2c3d4e5f",
      "cost": {
        "amount": "12.34",
        "currency": "USD"
      },
      "ended_at": "2026-11-21T09:30:00Z",
      "failure_reason": "buyer_did_not_accept",
      "id": "sal_0190f3c2a1b47c3d8e9f0a1b2c3d4e5f",
      "item": "AK-47 | Redline (Field-Tested)",
      "list_price": {
        "amount": "12.34",
        "currency": "USD"
      },
      "loss_reason": "reversed_not_returned",
      "market": "csfloat",
      "not_bought_here": false,
      "price": {
        "amount": "12.34",
        "currency": "USD"
      },
      "profit": {
        "amount": "12.34",
        "currency": "USD"
      },
      "selling_contract_id": "ctr_0191f3c2a1b47c3d8e9f0a1b2c3d4e5f",
      "started_at": "2026-11-21T09:30:00Z",
      "status": "delivered",
      "steam_account_name": "trader_bot_01"
    }
  ],
  "has_more": true,
  "next_cursor": "eyJwIjoiY3RyXzAxOTBmM2MyIn0"
}
```
