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
- AI agentsConnect Claude or any MCP client and let it triage the inbox, process returns, and report on sales, with your say before every write.
- IntegrationsSync orders to your fulfillment tool, push products from a spreadsheet, or pipe revenue into your books.
- Custom storefrontsUse the hosted shop site on your own domain, or read the public catalog with no key and build a headless store in your own design.
Quickstart
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. 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. 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. 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.
https://3commerce.com/api/v1API reference
- Shop2 operationsGet your shop, Update your shop
- Products10 operationsList products, List product categories, Get a product, Create a product, Update a product, Delete a product, Publish a product, Unpublish a product, Schedule a product, Get product performance
- Collections5 operationsList collections, Get a collection, Create a collection, Update a collection, Delete a collection
- Orders3 operationsList orders, Get an order, Mark an order fulfilled
- Returns6 operationsList returns, Get a return, Approve a return, Reject a return, Mark a return received, Refund a return
- Customers8 operationsList customers, List followers, Get a customer, Get a customer profile, Tag a customer, Remove a customer tag, Add a customer note, Delete a customer note
- Income8 operationsGet an earnings summary, List refunds, Approve a refund, Decline a refund, List payouts, List monthly statements, Get a monthly statement, List commissions
- Engagement16 operationsList comments, Reply to a comment, Hide a comment, Show a hidden comment, List conversations, Get a conversation, Reply in a conversation, Mark a conversation read, List inbox conversations, Update a conversation, List saved replies, Create a saved reply, Delete a saved reply, List notifications, Mark a notification read, Mark every notification read
- Marketing6 operationsList promotions, Create a promotion, Update a promotion, List affiliates, Invite an affiliate, Update an affiliate
- Discounts9 operationsList discounts, Get a discount, Create a discount, Update a discount, Pause or resume a discount, Get gift card spend, List gift cards, Issue a gift card, Disable or enable a gift card
- Email7 operationsList email campaigns, Get an email campaign, Create a draft campaign, Update a draft campaign, Delete a draft campaign, List customer segments, List suppressed contacts
- Library3 operationsSearch the product library, Get a library product, Import a library product
- Analytics6 operationsGet an analytics summary, Get revenue over time, Get traffic by source and device, Get top products, Get the conversion funnel, Get session sources
- Team2 operationsGet the team, List roles
- Sites4 operationsGet your site, Publish or list your site, Get your custom domain, Check your custom domain
- SEO5 operationsGet the SEO audit, Run the SEO audit, List redirects, Add a redirect, Delete a redirect
- Social1 operationList social highlights
- Blog5 operationsList blog posts, Get a blog post, Write a blog post, Edit a blog post, Delete a blog post
- Catalog5 operationsSearch the public catalog, Get a public product, List shops, Get a shop, Get shipping options
- Checkout1 operationStart a hosted checkout
- Webhooks4 operationsList webhook endpoints, Add a webhook endpoint, Send a test event, Delete a webhook endpoint