API reference
Orders
Read orders with their line items, tax, shipping service, discounts, and gift cards, and mark them fulfilled.
List orders
/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
- MCP tool
- orders_list
- Changes data
- No
Parameters
| Name | Type | Description |
|---|---|---|
statusquery · optional | enum | Only orders in this status |
sincequery · optional | string (date) or string (date-time) | Only orders placed at or after this ISO 8601 date or time |
untilquery · optional | string (date) or string (date-time) | Only orders placed before this ISO 8601 date or time |
customer_emailquery · optional | string | The customer's email, matched exactly |
qquery · optional | string | Part of the order number, e.g. `104829` |
limitquery · optional | integer | Results per page, 1-100 |
cursorquery · optional | string | The `next_cursor` from the previous page |
Request
curl "https://3commerce.com/api/v1/orders" \
-H "Authorization: Bearer 3c_live_…"Response
{
"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
/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
- MCP tool
- orders_get
- Changes data
- No
Parameters
| Name | Type | Description |
|---|---|---|
idpath · required | string | The order id, or its number such as `3C-104829` |
Request
curl "https://3commerce.com/api/v1/orders/6f1c2a4e-8b3d-4c5e-9a7f-1d2e3f4a5b6c" \
-H "Authorization: Bearer 3c_live_…"Response
{
"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
/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
- MCP tool
- orders_fulfill
- Changes data
- Yes
Parameters
| Name | Type | Description |
|---|---|---|
idpath · required | string (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
{
"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": []
}