v1

latestOpenAPI 3.1.02026-07-2665179189.7 KB
Orders

List orders

⚠️ This endpoint is in public preview.

List all orders.

get/preview/v2/orders

Query parameters

idOrderId[]

Filter by order ID (repeatable).

[
  "ordr_k3R-nX9vLm7Qp2Yw5Jd8F"
]
poolstring

A resource path like 'sfc:pool:acme:prod:my-pool' or an ID. Resource paths are human-readable but not stable - they change when resources are renamed or moved. IDs are stable and permanent.

Example:pool_k3R-nX9vLm7Qp2Yw5Jd8F

Filter by pool.

workspacestring

A resource path like 'sfc:workspace:acme:my-workspace' or an ID. Resource paths are human-readable but not stable - they change when resources are renamed or moved. IDs are stable and permanent.

Example:wksp_k3R-nX9vLm7Qp2Yw5Jd8F

Scope the listing to a single workspace (ID, resource path, or name). Ignored when pool is given (the pool already names its workspace). Without either, the list spans the whole organization and requires an org-level Order:List grant.

side'sell' | 'buy'
statusOrderStatus[]

Filter by status (repeatable).

created_afterinteger

Unix timestamp.

Example:1738972800
created_beforeinteger

Unix timestamp.

Example:1738972800
procurementstring

A resource path like 'sfc:procurement:acme:prod:my-procurement' or an ID. Resource paths are human-readable but not stable - they change when resources are renamed or moved. IDs are stable and permanent.

Example:proc_k3R-nX9vLm7Qp2Yw5Jd8F

Filter to one procurement's orders (ID or resource path). Without it, the list omits procurement orders.

sort_by'created_at' | '-created_at' | 'start_at' | '-start_at'

Prefix with - for descending.

limitinteger
starting_afterstring
Example:ordrc_gqXR7s0Kj5mHvE2wNpLc4Q

Set to the response's cursor to fetch the next page.

ending_beforestring
Example:ordrc_gqXR7s0Kj5mHvE2wNpLc4Q

Set to the response's cursor to fetch the previous page.

Response

Paginated list of orders.

object'list' required
cursorstring
has_moreboolean required

Example response

{
  "cursor": "ordrc_gqXR7s0Kj5mHvE2wNpLc4Q",
  "data": [
    {
      "id": "ordr_k3R-nX9vLm7Qp2Yw5Jd8F",
      "capacity": {
        "id": "cap_k3R-nX9vLm7Qp2Yw5Jd8F",
        "name": "my-resource-name"
      },
      "pool": {
        "id": "pool_k3R-nX9vLm7Qp2Yw5Jd8F",
        "name": "my-resource-name"
      },
      "instance_sku": {
        "id": "isku_k3R-nX9vLm7Qp2Yw5Jd8F",
        "alias": "my-resource-name"
      },
      "allocation_schedule_delta": [
        {
          "start_at": 1738972800,
          "end_at": 1738972800
        }
      ],
      "filled_allocation_schedule_delta": [
        {
          "start_at": 1738972800,
          "end_at": 1738972800
        }
      ],
      "limit_price_dollars_per_node_hour": "1.500000",
      "created_at": 1738972800,
      "filled_at": 1738972800,
      "filled_average_price_dollars_per_node_hour": "1.500000",
      "fills": [
        {
          "contract": "cont_k3R-nX9vLm7Qp2Yw5Jd8F",
          "filled_at": 1738972800,
          "allocation_schedule_delta": [
            {
              "start_at": 1738972800,
              "end_at": 1738972800
            }
          ],
          "price_dollars_per_node_hour": "1.500000"
        }
      ],
      "cancelled_at": 1738972800
    }
  ]
}