Skip to content

API reference

Orders

Read orders with their line items, tax, shipping service, discounts, and gift cards, and mark them fulfilled.

List orders

GET/api/v1/orders

The orders placed with your shop, newest first, with tax, shipping service, discount, and gift card amounts. Filter by status, a date range, the customer email, or part of the order number.

Scope
orders:read
MCP tool
orders_list
Changes data
No

Parameters

NameTypeDescription
statusquery · optionalenumOnly orders in this statusone of paid, fulfilled, refunded, canceled
sincequery · optionalstring (date) or string (date-time)Only orders placed at or after this ISO 8601 date or time
untilquery · optionalstring (date) or string (date-time)Only orders placed before this ISO 8601 date or time
customer_emailquery · optionalstringThe customer's email, matched exactlymax 254 chars
qquery · optionalstringPart of the order number, e.g. `104829`max 40 chars
limitquery · optionalintegerResults per page, 1-1001-100default 25
cursorquery · optionalstringThe `next_cursor` from the previous page

Request

curl "https://3commerce.com/api/v1/orders" \
  -H "Authorization: Bearer 3c_live_…"

Response

200 OK
{
  "data": [
    {
      "id": "4f1c2a9e-8d3b-4c55-9a51-0f6f0e2b7c11",
      "number": "3C-104829",
      "status": "paid",
      "customer_id": "9b0d6e3a-2f44-4f0e-8a6c-5d1e7b3c9a20",
      "customer_name": "Maya Chen",
      "email": "maya.chen@example.com",
      "items_count": 2,
      "subtotal": 148,
      "discount": 14.8,
      "discount_code": "WELCOME10",
      "shipping": 0,
      "shipping_service": "standard",
      "tax": 11.99,
      "gift_card": 25,
      "total": 145.19,
      "fee": 6.66,
      "payment_fee": 4.51,
      "supplier_cost": 61.2,
      "commission": 0,
      "refunded": 0,
      "net": 60.83,
      "currency": "USD",
      "created_at": "2026-11-21T15:42:10.000Z",
      "fulfilled_at": null
    }
  ],
  "next_cursor": "MjU"
}

Get an order

GET/api/v1/orders/{id}

One order by id or by number, with its line items, tax, discount, gift card, the supplier orders shipping it with tracking, and any returns and refunds. `stage` is where it stands, as the dashboard shows it.

Scope
orders:read
MCP tool
orders_get
Changes data
No

Parameters

NameTypeDescription
idpath · requiredstringThe order id, or its number such as `3C-104829`1-64 chars

Request

curl "https://3commerce.com/api/v1/orders/6f1c2a4e-8b3d-4c5e-9a7f-1d2e3f4a5b6c" \
  -H "Authorization: Bearer 3c_live_…"

Response

200 OK
{
  "id": "4f1c2a9e-8d3b-4c55-9a51-0f6f0e2b7c11",
  "number": "3C-104829",
  "status": "paid",
  "customer_id": "9b0d6e3a-2f44-4f0e-8a6c-5d1e7b3c9a20",
  "customer_name": "Maya Chen",
  "email": "maya.chen@example.com",
  "items_count": 2,
  "subtotal": 148,
  "discount": 14.8,
  "discount_code": "WELCOME10",
  "shipping": 0,
  "shipping_service": "standard",
  "tax": 11.99,
  "gift_card": 25,
  "total": 145.19,
  "fee": 6.66,
  "payment_fee": 4.51,
  "supplier_cost": 61.2,
  "commission": 0,
  "refunded": 0,
  "net": 60.83,
  "currency": "USD",
  "created_at": "2026-11-21T15:42:10.000Z",
  "fulfilled_at": null,
  "stage": "processing",
  "charged": 145.19,
  "refunded_net": 0,
  "paid_out": false,
  "payment_method": "card",
  "shipping_address": {
    "firstName": "Maya",
    "lastName": "Chen",
    "city": "Seattle",
    "country": "US"
  },
  "paid_at": "2026-11-21T15:42:08.000Z",
  "line_items": [
    {
      "id": "c2e8f0b4-1a7d-4f3e-9b26-7d5a0c1e8f93",
      "product_id": "5a3b9c1d-6e2f-4a8b-b0c4-2d7e9f1a3b65",
      "title": "Merino crew sweater",
      "image_url": "https://images.example.com/merino-crew.jpg",
      "options": "Oat / M",
      "quantity": 1,
      "unit_price": 98,
      "line_total": 98
    }
  ],
  "supplier_orders": [
    {
      "id": "0d4e…",
      "supplier": "cj",
      "status": "shipped",
      "carrier": "YunExpress",
      "tracking_number": "YT2611210000001",
      "tracking_url": null,
      "shipped_at": "2026-11-23T09:00:00.000Z",
      "delivered_at": null
    }
  ],
  "returns": [],
  "refunds": []
}

Mark an order fulfilled

POST/api/v1/orders/{id}/fulfill

Marks a paid order as fulfilled once it has shipped, emails the shopper, and sends `order.fulfilled`. Only paid orders can be fulfilled: any other status answers 409 `invalid_status`.

Scope
orders:write
MCP tool
orders_fulfill
Changes data
Yes

Parameters

NameTypeDescription
idpath · requiredstring (uuid)The order id

Request

curl -X POST "https://3commerce.com/api/v1/orders/6f1c2a4e-8b3d-4c5e-9a7f-1d2e3f4a5b6c/fulfill" \
  -H "Authorization: Bearer 3c_live_…" \
  -H "Content-Type: application/json" \
  -d '{}'

Response

201 Created
{
  "id": "4f1c2a9e-8d3b-4c55-9a51-0f6f0e2b7c11",
  "number": "3C-104829",
  "status": "fulfilled",
  "customer_id": "9b0d6e3a-2f44-4f0e-8a6c-5d1e7b3c9a20",
  "customer_name": "Maya Chen",
  "email": "maya.chen@example.com",
  "items_count": 2,
  "subtotal": 148,
  "discount": 14.8,
  "discount_code": "WELCOME10",
  "shipping": 0,
  "shipping_service": "standard",
  "tax": 11.99,
  "gift_card": 25,
  "total": 145.19,
  "fee": 6.66,
  "payment_fee": 4.51,
  "supplier_cost": 61.2,
  "commission": 0,
  "refunded": 0,
  "net": 60.83,
  "currency": "USD",
  "created_at": "2026-11-21T15:42:10.000Z",
  "fulfilled_at": "2026-11-22T10:00:00.000Z",
  "stage": "shipped",
  "charged": 145.19,
  "refunded_net": 0,
  "paid_out": false,
  "payment_method": "card",
  "shipping_address": {
    "firstName": "Maya",
    "lastName": "Chen",
    "city": "Seattle",
    "country": "US"
  },
  "paid_at": "2026-11-21T15:42:08.000Z",
  "line_items": [
    {
      "id": "c2e8f0b4-1a7d-4f3e-9b26-7d5a0c1e8f93",
      "product_id": "5a3b9c1d-6e2f-4a8b-b0c4-2d7e9f1a3b65",
      "title": "Merino crew sweater",
      "image_url": "https://images.example.com/merino-crew.jpg",
      "options": "Oat / M",
      "quantity": 1,
      "unit_price": 98,
      "line_total": 98
    }
  ],
  "supplier_orders": [
    {
      "id": "0d4e…",
      "supplier": "cj",
      "status": "shipped",
      "carrier": "YunExpress",
      "tracking_number": "YT2611210000001",
      "tracking_url": null,
      "shipped_at": "2026-11-23T09:00:00.000Z",
      "delivered_at": null
    }
  ],
  "returns": [],
  "refunds": []
}