API reference
Shop
Read and edit the profile of the shop the key belongs to.
Get your shop
/api/v1/shop
The shop this API key belongs to: id, slug, name, tagline, bio, avatar url, cover url, location, website, plan, resale commission rate, created at, plus live product and follower counts.
- Scope
- MCP tool
- shop_get
- Changes data
- No
Parameters
No parameters.
Request
curl "https://3commerce.com/api/v1/shop" \
-H "Authorization: Bearer 3c_live_…"Response
{
"id": "0b6e…",
"slug": "northline-studio",
"name": "Northline Studio",
"plan": "pro",
"resale_commission_rate": 0.1,
"live_products": 24,
"followers": 96
}Update your shop
/api/v1/shop
Changes any of the profile fields. Omitted fields keep their value. Image fields take https URLs. `resale_commission_rate` is what you pay another shop that sells your products on its storefront, 0-0.5 (0.1 is 10%); 0 offers none.
- Scope
- MCP tool
- shop_update
- Changes data
- Yes
Parameters
| Name | Type | Description |
|---|---|---|
namebody · optional | string | |
taglinebody · optional | string | |
biobody · optional | string | |
locationbody · optional | string | |
websitebody · optional | string (uri) or "" | - |
avatar_urlbody · optional | string (uri) or null | - |
cover_urlbody · optional | string (uri) or null | - |
resale_commission_ratebody · optional | number |
Request
curl -X PATCH "https://3commerce.com/api/v1/shop" \
-H "Authorization: Bearer 3c_live_…" \
-H "Content-Type: application/json" \
-d '{
"name": "Northline Studio",
"tagline": "Small-batch goods for slow mornings"
}'Response
Returns the resource as JSON.