API reference
Customers
List customers
/api/v1/customers
The people who bought from your shop, with their order count, total spent, and last order date. Spend counts paid and fulfilled orders only. Search by name, email, or location.
- Scope
- MCP tool
- customers_list
- Changes data
- No
Parameters
| Name | Type | Description |
|---|---|---|
qquery · optional | string | Part of a name, email, or location |
sortquery · optional | enum | `spent` (top spenders first), `orders` (most orders), `recent` (latest order), or `name` (A-Z) |
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/customers" \
-H "Authorization: Bearer 3c_live_…"Response
{
"data": [
{
"id": "9b0d6e3a-2f44-4f0e-8a6c-5d1e7b3c9a20",
"name": "Maya Chen",
"email": "maya.chen@example.com",
"avatar_url": null,
"location": "Seattle, WA",
"orders_count": 3,
"total_spent": 312,
"last_order_at": "2026-11-21T15:42:10.000Z",
"created_at": "2026-06-02T09:14:31.000Z"
}
],
"next_cursor": null
}List followers
/api/v1/customers/followers
The people who follow your shop, newest first. A follower need not have bought anything.
- Scope
- MCP tool
- customers_followers
- Changes data
- No
Parameters
| Name | Type | Description |
|---|---|---|
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/customers/followers" \
-H "Authorization: Bearer 3c_live_…"Response
{
"data": [
{
"name": "Jordan Ellis",
"email": "jordan.ellis@example.com",
"avatar_url": "https://i.pravatar.cc/160?img=12",
"followed_at": "2026-11-19T18:03:44.000Z"
}
],
"next_cursor": "MjU"
}Get a customer
/api/v1/customers/{id}
One customer with their spend totals and every order they placed with your shop, newest first, including refunded and canceled ones.
- Scope
- MCP tool
- customers_get
- Changes data
- No
Parameters
| Name | Type | Description |
|---|---|---|
idpath · required | string (uuid) | The resource id |
Request
curl "https://3commerce.com/api/v1/customers/6f1c2a4e-8b3d-4c5e-9a7f-1d2e3f4a5b6c" \
-H "Authorization: Bearer 3c_live_…"Response
{
"id": "9b0d6e3a-2f44-4f0e-8a6c-5d1e7b3c9a20",
"name": "Maya Chen",
"email": "maya.chen@example.com",
"avatar_url": null,
"location": "Seattle, WA",
"orders_count": 3,
"total_spent": 312,
"last_order_at": "2026-11-21T15:42:10.000Z",
"created_at": "2026-06-02T09:14:31.000Z",
"orders": [
{
"id": "4f1c2a9e-8d3b-4c55-9a51-0f6f0e2b7c11",
"number": "3C-104829",
"status": "paid",
"total": 148,
"items_count": 2,
"items": [
"Merino crew sweater",
"Ribbed beanie"
],
"created_at": "2026-11-21T15:42:10.000Z"
}
]
}Get a customer profile
/api/v1/customers/{key}/profile
Everything the dashboard’s customer page shows: lifetime value, returns, email consent, recent orders, tags, and the team’s notes. Works for someone who only wrote in, by email.
- Scope
- MCP tool
- customers_profile
- Changes data
- No
Parameters
| Name | Type | Description |
|---|---|---|
keypath · required | string | The customer id, or their email URL-encoded. Someone who only wrote in has an email and no id |
Request
curl "https://3commerce.com/api/v1/customers/Example key/profile" \
-H "Authorization: Bearer 3c_live_…"Response
{
"id": "9b0d6e3a-2f44-4f0e-8a6c-5d1e7b3c9a20",
"email": "maya.chen@example.com",
"name": "Maya Chen",
"avatar_url": null,
"location": "Seattle, WA",
"created_at": "2026-06-02T09:14:31.000Z",
"stats": {
"orders": 3,
"lifetime_value": 312,
"average_order": 104,
"first_order_at": "2026-06-02T09:14:31.000Z",
"last_order_at": "2026-11-21T15:42:10.000Z",
"returns": 0,
"refunded": 0
},
"email_consent": {
"opted_in_at": "2026-06-02T09:14:31.000Z",
"suppressed": null
},
"orders": [],
"message_count": 2,
"tags": [
"vip"
],
"notes": [
{
"id": "1a2b…",
"body": "Prefers gift wrap.",
"author_name": "Sam Rivera",
"created_at": "2026-11-01T10:00:00.000Z"
}
]
}Add a customer note
/api/v1/customers/{key}/notes
Adds a private note to a customer, signed with the API key. Shoppers never see notes.
- Scope
- MCP tool
- customers_notes_add
- Changes data
- Yes
- Idempotency-Key
- Accepted
Parameters
| Name | Type | Description |
|---|---|---|
keypath · required | string | The customer id, or their email URL-encoded. Someone who only wrote in has an email and no id |
bodybody · required | string | The note, up to 2000 characters |
Request
curl -X POST "https://3commerce.com/api/v1/customers/Example key/notes" \
-H "Authorization: Bearer 3c_live_…" \
-H "Content-Type: application/json" \
-d '{
"body": "Thanks for your order, it ships tomorrow."
}'Response
{
"id": "1a2b…",
"body": "Prefers gift wrap.",
"author_name": "Sam Rivera",
"created_at": "2026-11-01T10:00:00.000Z"
}Delete a customer note
/api/v1/customers/notes/{id}
Deletes 1 of the shop’s customer notes.
- Scope
- MCP tool
- customers_notes_delete
- Changes data
- Yes
Parameters
| Name | Type | Description |
|---|---|---|
idpath · required | string (uuid) | The resource id |
Request
curl -X DELETE "https://3commerce.com/api/v1/customers/notes/6f1c2a4e-8b3d-4c5e-9a7f-1d2e3f4a5b6c" \
-H "Authorization: Bearer 3c_live_…"Response
{
"id": "1a2b…",
"deleted": true
}