Your store, open to AI and to your own tools
Ask Claude or ChatGPT how last week went, have it add a product or pause a discount code, or wire your store to Zapier, a CRM or your own code. Free on every plan, including Free Plus.
One address for Claude, ChatGPT and other AI apps. Sign in, approve, done — no keys to paste.
Products, orders, customers, booked calls, discount codes and analytics as JSON.
A store's active products with buy links. No token, for any site or shopping agent.
We call your URL on a sale, a refund, a new e-mail sign-up or a canceled call. Signed and retried.
Connect an AI assistant (MCP)
MCP (Model Context Protocol) is how AI assistants use other apps. Add Store.Fan as a connector and the assistant can read your store and, if you allow it, make changes. You approve it on a Store.Fan screen that lists exactly what it may do, and you can tick Read only.
https://store.fan/mcp- Claude: open Settings, find Connectors, add a custom connector and paste the address above.
- ChatGPT: in Settings, open the connectors section (custom connectors may need developer mode), add one and paste the address above.
- Claude Code:
claude mcp add --transport http storefan https://store.fan/mcp - Sign in to Store.Fan when asked and press Allow. Disconnect any time in Dashboard → API & MCP.
Apps that can't do the sign-in flow can send a personal token instead: header Authorization: Bearer sfp_…. The server speaks Streamable HTTP (stateless, JSON responses) with OAuth 2.1, PKCE and dynamic client registration.
What the assistant can do
get_storeThe creator's store: name, bio, headline, public link, social links, design settings, plan, whether card payments are set up, sections and product counts. Call this first.
list_productsEvery product and link card on the store, in display order, with id, type, price, visibility, public link and like count. Types: digital (file download), course, booking (1:1 call), webinar, membership (recurring), community, lead_magnet (free file for an e-mail), custom (anything else, incl. physical), link (a plain link card), affiliate.
get_productOne product with every field (description, booking hours, webinar time, order-form fields, delivery fee).
list_ordersOrders, newest first: buyer e-mail and name, product, amount (cents), status (pending, paid, refunded, canceled), discount code and order-form answers. Buyer details are personal data — only use them for what the creator asks. Page with before = next_before.
get_orderOne order, with its booked call if it has one.
list_customersPeople who bought (with order count and total spent) and people who joined the e-mail list, newest activity first. Personal data — only use it for what the creator asks.
list_bookingsBooked 1:1 calls with time, buyer and meeting link. upcoming = true lists future calls, soonest first.
list_discountsDiscount codes with percentage, use count and limit.
get_statsRevenue, orders, store visits, product views, likes, link clicks and e-mail sign-ups for the last 7, 30 or 90 days: totals, the previous period for comparison, a daily series and the top products.
list_design_optionsEvery value update_store accepts for theme, layout, font, button style, background, animation and header style, plus the social networks and store languages.
update_storeeditChanges the store's name, bio, headline, photo, cover, social links, language or design. Only the fields you pass change; the change is live right away. social is merged: pass {"instagram": "name"} to set one, "" to remove it. The username can't be changed here.
create_producteditAdds a product or link card; it is live right away unless is_active is false. Types you can create here: link (needs url), booking (1:1 call; paid plans), webinar (needs event_starts_at; paid plans), membership (needs billing_interval), community, custom (a service or physical item). digital, lead_magnet and course products need a file or lessons and are created in the dashboard; afterwards update_product can edit them.
update_producteditChanges a product. Only the fields you pass change. To take a product off the store, set is_active to false (its buyers keep access).
delete_producteditRemoves a product for good. Only works for products without orders; otherwise hide it with update_product is_active=false. Only delete when the creator asked for it.
set_order_statuseditMoves a pending order to paid (the creator was paid outside card checkout — the buyer's access link then works; no e-mail is sent) or to canceled. Refunds are not available here: they move money and are done by the creator in the dashboard.
set_booking_statuseditMarks a confirmed call completed or canceled. Canceling also removes it from the creator's Google Calendar; it does not refund the buyer.
create_discounteditA percentage-off code buyers type at checkout (Pro plan). Works on every product of the store.
set_discount_activeeditPauses or resumes a discount code.
delete_discounteditRemoves a discount code for good. To pause it instead, use set_discount_active.
REST API
Create a token in Dashboard → API & MCP and choose Read only or Read and edit. Send it as a Bearer token. A token only ever reaches the store it was made in.
curl https://store.fan/api/v1/orders?status=paid&limit=5 \
-H "Authorization: Bearer sfp_your_token"curl -X POST https://store.fan/api/v1/products \
-H "Authorization: Bearer sfp_your_token" \
-H "Content-Type: application/json" \
-d '{"type": "link", "title": "My newsletter", "url": "https://example.com/news"}'- Base address
https://store.fan/api/v1. Requests and answers are JSON. - Money is in cents (
price_cents: 1999= 19.99). When you create or edit a product you sendpriceas a decimal amount. - Errors look like
{"error": {"code": "not_found", "message": "Product not found."}}with a matching HTTP status. - Changes are live on the public store right away.
Endpoints
Public catalog
/stores/{username}no tokenA store's public card and its active products, with buy links.
/stores/{username}/productsno tokenOnly the active products of a store.
Store
/storeany tokenYour store: name, bio, link, socials, design, plan, sections, product counts.
/storeread + edit tokenChange name, bio, headline, photo, cover, socials, language or design. Only the fields you send change.
- display_name
- string
- bio
- string
- headline
- string
- avatar_url
- https URL | null
- cover_url
- https URL | null
- social
- object — merged, e.g. {"instagram": "name"}; "" removes one
- store_language
- language code | null
- theme
- id
- layout
- id
- font
- id
- button_style
- id
- background
- id
- animation
- id
- header_style
- id
- accent_color
- #rrggbb
/design-optionsany tokenEvery theme, layout, font, button, background, animation and header id, plus social networks and languages.
Products
/productsany tokenAll your products and link cards, in display order.
- ?type
- only this type
- ?active
- true | false
/productsread + edit tokenCreate a product. Types: link, booking, webinar, membership, community, custom. (digital, lead_magnet and course products need a file or lessons — create those in the dashboard, then edit them here.)
- type
- link | booking | webinar | membership | community | custom — required
- title
- string — name shown on the store
- description
- string — plain text or simple HTML
- price
- number — e.g. 19.99 (0 = free)
- compare_at_price
- number — original price shown struck through
- cover_url
- string — https image URL
- is_active
- boolean — false hides the product
- url
- string — link target (type link) or invite link (type community)
- billing_interval
- week | month | year — memberships and communities
- call_duration_min
- integer — type booking
- days
- integer[] — bookable weekdays, 0 = Sunday (type booking)
- call_start
- HH:MM — type booking (UTC)
- call_end
- HH:MM — type booking (UTC)
- event_starts_at
- ISO 8601 time — type webinar
- meeting_url
- string — type webinar
- section_id
- string — store section id, "" for none
- shipping
- number — flat delivery fee (products that collect an address)
- shipping_note
- string
/products/{id}any tokenOne product.
/products/{id}read + edit tokenChange a product. Only the fields you send change.
- title
- string — name shown on the store
- description
- string — plain text or simple HTML
- price
- number — e.g. 19.99 (0 = free)
- compare_at_price
- number — original price shown struck through
- cover_url
- string — https image URL
- is_active
- boolean — false hides the product
- url
- string — link target (type link) or invite link (type community)
- billing_interval
- week | month | year — memberships and communities
- call_duration_min
- integer — type booking
- days
- integer[] — bookable weekdays, 0 = Sunday (type booking)
- call_start
- HH:MM — type booking (UTC)
- call_end
- HH:MM — type booking (UTC)
- event_starts_at
- ISO 8601 time — type webinar
- meeting_url
- string — type webinar
- section_id
- string — store section id, "" for none
- shipping
- number — flat delivery fee (products that collect an address)
- shipping_note
- string
/products/{id}read + edit tokenDelete a product that has no orders (otherwise hide it with is_active: false).
Orders
/ordersany tokenOrders, newest first.
- ?status
- pending | paid | refunded | canceled
- ?product_id
- only this product
- only this buyer
- ?since
- ISO time
- ?before
- ISO time — pass next_before to page
- ?limit
- 1–100, default 50
/orders/{id}any tokenOne order, with its booked call if any.
/orders/{id}read + edit tokenMark a pending order paid (payment taken elsewhere) or canceled. Refunds are dashboard-only.
- status
- paid | canceled
Customers
/customersany tokenBuyers (order count, total spent) and e-mail subscribers, newest activity first.
- ?kind
- all | buyers | subscribers
- ?limit
- 1–500, default 100
/leadsany tokenE-mail list sign-ups, newest first.
- ?limit
- 1–500, default 100
Booked calls
/bookingsany tokenBooked 1:1 calls.
- ?upcoming
- true = future calls, soonest first
- ?status
- confirmed | canceled | completed
- ?limit
- 1–100
/bookings/{id}read + edit tokenMark a confirmed call completed or canceled (canceling does not refund).
- status
- completed | canceled
Discount codes
/discountsany tokenYour discount codes.
/discountsread + edit tokenCreate a percentage-off code (Pro plan).
- code
- 2–24 letters, digits, dashes — required
- percent_off
- 1–100 — required
- max_uses
- integer | null
/discounts/{id}read + edit tokenSwitch a code on or off.
- is_active
- boolean
/discounts/{id}read + edit tokenDelete a code.
Analytics
/statsany tokenRevenue, orders, visits, product views, likes, clicks and sign-ups: totals, previous period, daily series, top products.
- ?days
- 7 | 30 | 90, default 30
Public catalog
Anyone can read a store's public card and active products, the same things the storefront shows, as JSON. Use it to list your products on another site, or to let a shopping agent find them. Each product carries its buy link. No token; 60 requests a minute per address.
curl https://store.fan/api/v1/stores/yournameWebhooks
Add an https address in Dashboard → API & MCP and pick events. We POST JSON to it within about a minute. Answer with any 2xx inside 10 seconds; otherwise we retry six more times, waiting 1 minute, 5 minutes, 30 minutes, 2 hours, 6 hours and 24 hours between tries. An endpoint that fails 20 times in a row is switched off until you turn it back on.
order.paidA sale: an order was paid (or a free product was claimed).
order.refundedAn order was fully refunded.
lead.createdSomeone joined your e-mail list.
booking.canceledA booked call was canceled.
POST https://your-site.com/webhook
StoreFan-Event: order.paid
StoreFan-Delivery: 8b6f… (same id on every retry — use it to ignore duplicates)
StoreFan-Signature: t=1795000000,v1=5f2c…
{
"id": "8b6f…",
"event": "order.paid",
"created_at": "2026-11-24T10:15:00Z",
"api_version": "v1",
"data": { "order": { "id": "…", "status": "paid", "amount_cents": 1999, "currency": "usd",
"buyer_email": "[email protected]", "product": { "id": "…", "title": "…" } } }
}Check the signature before trusting a call: compute HMAC-SHA256 of <t>.<raw body> with the endpoint's secret and compare it to v1. Reject calls whose t is more than five minutes old.
import { createHmac, timingSafeEqual } from "node:crypto";
function verify(rawBody, header, secret) {
const { t, v1 } = Object.fromEntries(header.split(",").map((p) => p.split("=")));
if (Math.abs(Date.now() / 1000 - Number(t)) > 300) return false;
const mine = createHmac("sha256", secret).update(`${t}.${rawBody}`).digest("hex");
return mine.length === v1.length && timingSafeEqual(Buffer.from(mine), Buffer.from(v1));
}Limits and safety
- 120 requests a minute per token or connected app. Over that you get
429withRetry-After. - Up to 10 tokens, 25 connected apps and 5 webhook endpoints per store.
- Plan rules apply as in the dashboard: discount codes need Pro; calls and webinars need a plan with scheduling.
- Not available through the API or MCP, on purpose: refunds, payouts, billing, e-mail campaigns and product files. Those stay in your dashboard, where you are signed in yourself.
- Tokens are stored only as hashes. We show a token once; if you lose it, revoke it and make a new one.
- Orders and customers contain your buyers' personal data. Only connect apps you trust, and prefer read-only access when that is enough.
Questions or something missing? Contact support.
