Skip to content

3Commerce for developers

Run your shop from code, or from an agent

1 API, 2 ways in: REST at /api/v1 and an MCP server for AI agents. 116 operations across 21 groups, every one scoped to the shop that owns the key.

What you can build

Quickstart

  1. 1. Create a key. In your dashboard, open Developers, name the key, pick its scopes, and copy it. It starts with 3c_live_ and is shown only once.

  2. 2. Make your first call. List the orders waiting to ship:

    curl "https://3commerce.com/api/v1/orders?status=paid&limit=10" \
      -H "Authorization: Bearer 3c_live_…"
  3. 3. Hear about changes. Add a webhook instead of polling, for orders, refunds, returns, and your site going live:

    curl
    curl -X POST "https://3commerce.com/api/v1/webhooks" \
      -H "Authorization: Bearer 3c_live_…" \
      -H "Idempotency-Key: $(uuidgen)" \
      -H "Content-Type: application/json" \
      -d '{"url": "https://example.com/hooks/3commerce", "events": ["order.created", "order.refunded", "return.requested"]}'
  4. 4. Or hand it to Claude. Add the MCP server and ask in plain words:

    Terminal
    claude mcp add --transport http 3commerce https://3commerce.com/api/mcp \
      --header "Authorization: Bearer 3c_live_…"

Base URL

Every REST path in these docs is relative to this URL. Responses are JSON, and errors share 1 envelope.

Base URL
https://3commerce.com/api/v1

API reference

Guides