# List purchases

The items the workspace's contracts bought, newest first.

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

## 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.
- `contract_id` (string): Only purchases for this contract.
- `status` (string): Only purchases in these states, comma separated.
- `market` (string): Only these markets, by key, comma separated.
- `query` (string): Only items whose name contains this text, ignoring case.
- `created_from` (string): Only purchases recorded at or after this time.
- `created_before` (string): Only purchases recorded before this time.

## Response (200)

- `data` (array<Purchase>, required): This page, in the list's order.
  - `contract_id` (string): The contract it was bought for.
  - `created_at` (string, required): When the purchase was recorded.
  - `delivered_at` (string): When the item arrived in the Steam account.
  - `failed_at` (string): When it failed.
  - `failure_reason` (string, one of account_unavailable, insufficient_balance, listing_unavailable, marketplace_rejected, trade_not_completed, trade_reversed, unknown): Why it failed, when it did.
  - `float` (number): The item's float, when known.
  - `id` (string, required): The purchase's id.
  - `item` (string, required): The item's market hash name.
  - `market` (string, required): The market it was bought on.
  - `most_it_would_pay` (Money, required): The most the contract would have paid for it when it was bought.
    - `amount` (string, required): The amount as a decimal string, exact, with at least two decimal places.
    - `currency` (string, required): The ISO 4217 currency code.
  - `paint_seed` (integer): The item's pattern, 0 to 1000, when known.
  - `price` (Money, required): What was paid, in US dollars, exact.
    - `amount` (string, required): The amount as a decimal string, exact, with at least two decimal places.
    - `currency` (string, required): The ISO 4217 currency code.
  - `purchased_at` (string): When the market confirmed the buy.
  - `status` (string, required, one of delivered, failed, pending, unknown): pending: bought and on its way. delivered: in the Steam account. failed: not bought, or bought and reversed.
  - `steam_account_name` (string): The Steam account that bought it.
  - `way` (string, required, one of auction, buy_order, listing, offer, unknown): How it was bought.
- `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/purchases?limit=25" \
  -H "Authorization: Bearer $CSTRADER_API_KEY"
```

## Example response

```json
{
  "data": [
    {
      "contract_id": "ctr_0190f3c2a1b47c3d8e9f0a1b2c3d4e5f",
      "created_at": "2026-11-21T09:30:00Z",
      "delivered_at": "2026-11-21T09:30:00Z",
      "failed_at": "2026-11-21T09:30:00Z",
      "failure_reason": "account_unavailable",
      "float": 0.2147,
      "id": "pur_0190f3c2a1b47c3d8e9f0a1b2c3d4e5f",
      "item": "AK-47 | Redline (Field-Tested)",
      "market": "csfloat",
      "most_it_would_pay": {
        "amount": "12.34",
        "currency": "USD"
      },
      "paint_seed": 661,
      "price": {
        "amount": "12.34",
        "currency": "USD"
      },
      "purchased_at": "2026-11-21T09:30:00Z",
      "status": "delivered",
      "steam_account_name": "trader_bot_01",
      "way": "auction"
    }
  ],
  "has_more": true,
  "next_cursor": "eyJwIjoiY3RyXzAxOTBmM2MyIn0"
}
```
