Embed a Swell integration in your product
Add Swell to your product for your customers, and give your AI agents governed access to it.
Swell is headless by design, so there is no theme and no hosted storefront to hook into: the front end belongs to the merchant and everything you touch goes through the API. Products, variants, carts, orders, subscriptions and customers are the records, and the content models behind them are extendable, which means one merchant's order carries fields another merchant's does not. Two keys matter and they are not interchangeable. A public storefront key is safe in a browser and sees very little, while the secret admin key can do everything, and confusing the two is how data leaks. fastn stores the admin credential per merchant, never in your client, and monitors the integration, proposing a fix for your review when Swell changes its API.
In your product
Embedded for your customers. Per-tenant auth, customized per customer, monitored by fastn.
- Let a merchant connect their own Swell store so your product reads and writes through the API their own front end already uses.
- Map the extra fields a merchant added to their content models as configuration, since no two stores model an order alike.
- Read and update subscriptions so the recurring plans your product manages match what Swell will actually bill.
- Keep the secret admin credential on your server while a storefront key stays with the merchant's front end.
For your AI agents
Governed, audited access for the agents you build, through the MCP server.
- An agent reads a cart or an order and explains what a shopper was charged, scoped to one merchant.
- An agent pauses or amends a subscription within the permissions it was granted, and the change is logged.
- An agent checks variant availability before it promises a shopper anything.
Example prompt
Find subscriptions renewing this month in Swell and tell me which have a failed payment against them.
Set up Swell in 4 steps
- 01Enable the Swell connector from your fastn dashboard.
- 02Have each customer authorize their own Swell account, so calls run under their credentials rather than a shared key.
- 03Decide which orders, payments and customers your product needs, map those fields, then enable the actions and triggers you want.
- 04Call it from your product and expose it to your agents through the same governed integration.
Why teams use the Swell integration
- Ship a Swell integration without building it. Your customers connect their own Swell account inside your product and work their orders, payments and customers there, and nothing lands on your team.
- Handle the part that actually costs time: money and order state must never be double-applied, and reconciliation has to be possible. fastn handles the auth, token refresh, rate limits and pagination, and when Swell changes, its maintainer agent proposes a tested fix, so a Swell update does not start in your backlog.
Used by these teams
Often used alongside
Tools the same teams tend to run next to Swell, across other categories.
More in Commerce & Payments
Other Commerce & Payments apps your customers can connect the same way. All Commerce & Payments integrations
Swell integration FAQ
Can AI agents use this Swell integration?
Yes, through the fastn MCP gateway, scoped per customer and audited. An agent reads a cart or an order and explains what a shopper was charged, scoped to one merchant. For example: "Find subscriptions renewing this month in Swell and tell me which have a failed payment against them."
Is the Swell integration safe for payment and order writes?
Writes are idempotent, so a retry cannot double-charge or duplicate an order, and every call is logged per tenant so a transaction can be reconciled against the event that triggered it.
Can my product react to a new order, payment or refund immediately?
Yes, through event triggers, so fulfilment, entitlement or accounting steps run as soon as the event lands rather than on a nightly sync.
What can I build with the Swell integration?
A common starting point: let a merchant connect their own Swell store so your product reads and writes through the API their own front end already uses. The use cases above list the rest.
Add Swell to your product
Start free with 3 customer connections. No sales call required, and no per-customer integration code.