Developers

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.

MCP server

One address for Claude, ChatGPT and other AI apps. Sign in, approve, done — no keys to paste.

https://store.fan/mcp
What you can do with it →
REST API

Products, orders, customers, booked calls, discount codes and analytics as JSON.

https://store.fan/api/v1
What you can do with it →
Public catalog

A store's active products with buy links. No token, for any site or shopping agent.

https://store.fan/api/v1/stores/{username}
What you can do with it →
Webhooks

We call your URL on a sale, a refund, a new e-mail sign-up or a canceled call. Signed and retried.

Dashboard → API & MCP
What you can do with it →

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
  1. Claude: open Settings, find Connectors, add a custom connector and paste the address above.
  2. ChatGPT: in Settings, open the connectors section (custom connectors may need developer mode), add one and paste the address above.
  3. Claude Code: claude mcp add --transport http storefan https://store.fan/mcp
  4. 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_store

The 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_products

Every 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_product

One product with every field (description, booking hours, webinar time, order-form fields, delivery fee).

list_orders

Orders, 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_order

One order, with its booked call if it has one.

list_customers

People 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_bookings

Booked 1:1 calls with time, buyer and meeting link. upcoming = true lists future calls, soonest first.

list_discounts

Discount codes with percentage, use count and limit.

get_stats

Revenue, 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_options

Every value update_store accepts for theme, layout, font, button style, background, animation and header style, plus the social networks and store languages.

update_storeedit

Changes 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_productedit

Adds 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_productedit

Changes 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_productedit

Removes 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_statusedit

Moves 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_statusedit

Marks a confirmed call completed or canceled. Canceling also removes it from the creator's Google Calendar; it does not refund the buyer.

create_discountedit

A percentage-off code buyers type at checkout (Pro plan). Works on every product of the store.

set_discount_activeedit

Pauses or resumes a discount code.

delete_discountedit

Removes 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 send price as 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

GET/stores/{username}no token

A store's public card and its active products, with buy links.

→ { store, products[] }
GET/stores/{username}/productsno token

Only the active products of a store.

→ { products[] }

Store

GET/storeany token

Your store: name, bio, link, socials, design, plan, sections, product counts.

→ { store }
PATCH/storeread + edit token

Change 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
→ { saved[], store }
GET/design-optionsany token

Every theme, layout, font, button, background, animation and header id, plus social networks and languages.

→ { themes[], layouts[], … }

Products

GET/productsany token

All your products and link cards, in display order.

?type
only this type
?active
true | false
→ { products[] }
POST/productsread + edit token

Create 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
→ 201 { product }
GET/products/{id}any token

One product.

→ { product }
PATCH/products/{id}read + edit token

Change 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
→ { product }
DELETE/products/{id}read + edit token

Delete a product that has no orders (otherwise hide it with is_active: false).

→ { deleted }

Orders

GET/ordersany token

Orders, newest first.

?status
pending | paid | refunded | canceled
?product_id
only this product
?email
only this buyer
?since
ISO time
?before
ISO time — pass next_before to page
?limit
1–100, default 50
→ { orders[], next_before }
GET/orders/{id}any token

One order, with its booked call if any.

→ { order }
PATCH/orders/{id}read + edit token

Mark a pending order paid (payment taken elsewhere) or canceled. Refunds are dashboard-only.

status
paid | canceled
→ { order }

Customers

GET/customersany token

Buyers (order count, total spent) and e-mail subscribers, newest activity first.

?kind
all | buyers | subscribers
?limit
1–500, default 100
→ { total, customers[] }
GET/leadsany token

E-mail list sign-ups, newest first.

?limit
1–500, default 100
→ { leads[] }

Booked calls

GET/bookingsany token

Booked 1:1 calls.

?upcoming
true = future calls, soonest first
?status
confirmed | canceled | completed
?limit
1–100
→ { bookings[] }
PATCH/bookings/{id}read + edit token

Mark a confirmed call completed or canceled (canceling does not refund).

status
completed | canceled
→ { booking }

Discount codes

GET/discountsany token

Your discount codes.

→ { discounts[] }
POST/discountsread + edit token

Create a percentage-off code (Pro plan).

code
2–24 letters, digits, dashes — required
percent_off
1–100 — required
max_uses
integer | null
→ 201 { discount }
PATCH/discounts/{id}read + edit token

Switch a code on or off.

is_active
boolean
→ { discount }
DELETE/discounts/{id}read + edit token

Delete a code.

→ { deleted }

Analytics

GET/statsany token

Revenue, orders, visits, product views, likes, clicks and sign-ups: totals, previous period, daily series, top products.

?days
7 | 30 | 90, default 30
→ { totals, previous_period, daily[], top_products[] }

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/yourname

Webhooks

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.paid

A sale: an order was paid (or a free product was claimed).

order.refunded

An order was fully refunded.

lead.created

Someone joined your e-mail list.

booking.canceled

A 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 429 with Retry-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.