Skip to content

API reference

Customers

Read the people who buy from and follow the shop, and keep their tags and notes.

List customers

GET/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
customers:read
MCP tool
customers_list
Changes data
No

Parameters

NameTypeDescription
qquery · optionalstringPart of a name, email, or locationmax 80 charsdefault ""
sortquery · optionalenum`spent` (top spenders first), `orders` (most orders), `recent` (latest order), or `name` (A-Z)one of spent, orders, recent, namedefault "spent"
limitquery · optionalintegerResults per page, 1-1001-100default 25
cursorquery · optionalstringThe `next_cursor` from the previous page

Request

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

Response

200 OK
{
  "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

GET/api/v1/customers/followers

The people who follow your shop, newest first. A follower need not have bought anything.

Scope
customers:read
MCP tool
customers_followers
Changes data
No

Parameters

NameTypeDescription
limitquery · optionalintegerResults per page, 1-1001-100default 25
cursorquery · optionalstringThe `next_cursor` from the previous page

Request

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

Response

200 OK
{
  "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

GET/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
customers:read
MCP tool
customers_get
Changes data
No

Parameters

NameTypeDescription
idpath · requiredstring (uuid)The resource id

Request

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

Response

200 OK
{
  "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

GET/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
customers:read
MCP tool
customers_profile
Changes data
No

Parameters

NameTypeDescription
keypath · requiredstringThe customer id, or their email URL-encoded. Someone who only wrote in has an email and no id1-254 chars

Request

curl "https://3commerce.com/api/v1/customers/Example key/profile" \
  -H "Authorization: Bearer 3c_live_…"

Response

200 OK
{
  "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"
    }
  ]
}

Tag a customer

POST/api/v1/customers/{key}/tags

Adds a tag, stored lowercase. Adding 1 the customer already carries changes nothing. Past the limit per customer is 409 `limit_reached`.

Scope
customers:write
MCP tool
customers_tags_add
Changes data
Yes

Parameters

NameTypeDescription
keypath · requiredstringThe customer id, or their email URL-encoded. Someone who only wrote in has an email and no id1-254 chars
tagbody · requiredstringThe tag, up to 32 characters1-32 chars

Request

curl -X POST "https://3commerce.com/api/v1/customers/Example key/tags" \
  -H "Authorization: Bearer 3c_live_…" \
  -H "Content-Type: application/json" \
  -d '{
  "tag": "Example tag"
}'

Response

201 Created
{
  "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"
    }
  ]
}

Remove a customer tag

DELETE/api/v1/customers/{key}/tags/{tag}

Takes a tag off a customer. A tag they do not carry changes nothing.

Scope
customers:write
MCP tool
customers_tags_remove
Changes data
Yes

Parameters

NameTypeDescription
keypath · requiredstringThe customer id, or their email URL-encoded. Someone who only wrote in has an email and no id1-254 chars
tagpath · requiredstringThe tag, URL-encoded1-32 chars

Request

curl -X DELETE "https://3commerce.com/api/v1/customers/Example key/tags/Example tag" \
  -H "Authorization: Bearer 3c_live_…"

Response

200 OK
{
  "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

POST/api/v1/customers/{key}/notes

Adds a private note to a customer, signed with the API key. Shoppers never see notes.

Scope
customers:write
MCP tool
customers_notes_add
Changes data
Yes
Idempotency-Key
Accepted

Parameters

NameTypeDescription
keypath · requiredstringThe customer id, or their email URL-encoded. Someone who only wrote in has an email and no id1-254 chars
bodybody · requiredstringThe note, up to 2000 characters1-2000 chars

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

201 Created
{
  "id": "1a2b…",
  "body": "Prefers gift wrap.",
  "author_name": "Sam Rivera",
  "created_at": "2026-11-01T10:00:00.000Z"
}

Delete a customer note

DELETE/api/v1/customers/notes/{id}

Deletes 1 of the shop’s customer notes.

Scope
customers:write
MCP tool
customers_notes_delete
Changes data
Yes

Parameters

NameTypeDescription
idpath · requiredstring (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

200 OK
{
  "id": "1a2b…",
  "deleted": true
}