Embed a Square integration in your product
Add Square to your product for your customers, and give your AI agents governed access to it.
Square is the point of sale and the payment processor at once, which makes location the object an embedded Square integration has to respect: catalog, inventory counts, staff and takings are all scoped by location, and a report that ignores that gives a multi-site merchant the wrong number. Payments, orders, the catalog behind them, customers and invoices are read and written per merchant, and a refund is its own record rather than an edit to a payment. Writes carry an idempotency key, because taking a card payment twice is not a mistake a merchant forgives. Each merchant authorizes their own account and grants only the permissions your features use, and fastn keeps the tokens and the webhook subscriptions on its side, and watches the connector, proposing a tested fix whenever Square changes its API.
In your product
Embedded for your customers. Per-tenant auth, customized per customer, monitored by fastn.
- Let each merchant connect their own Square account so your product takes payments and reads takings without ever holding card data.
- Read and write catalog items and their variations per location, so your product shows what that site actually sells.
- Create an invoice or an order from your product and let Square collect on it, with an idempotency key so a retry cannot charge twice.
- Subscribe to payment, refund and order webhooks so fulfillment or accounting runs the moment money moves.
For your AI agents
Governed, audited access for the agents you build, through the MCP server.
- An agent reports a location's takings and refunds for a period and explains which items drove the change.
- An agent issues an approved refund within scoped permissions, idempotently, with the transaction recorded.
- An agent looks up a buyer's payment history before answering a dispute question.
Example prompt
Compare last week's takings by location in Square and tell me which items sold worse than the week before.
Set up Square in 4 steps
- 01Enable the Square connector in your fastn dashboard.
- 02Have each merchant authorize their own Square account, granting only the payment, catalog and customer permissions your features use.
- 03Map the locations, catalog items and customer fields your product uses, then subscribe to the payment and order webhooks you need.
- 04Call it from your product and expose the same connection to your agents through the MCP gateway.
Why teams use the Square integration
- Ship a Square integration without building it. Your customers connect their own Square 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 Square changes, its maintainer agent proposes a tested fix, so a Square update does not start in your backlog.
Used by these teams
Often used alongside
Tools the same teams tend to run next to Square, across other categories.
More in Commerce & Payments
Other Commerce & Payments apps your customers can connect the same way. All Commerce & Payments integrations
Square integration FAQ
Can AI agents use this Square integration?
Yes, through the fastn MCP gateway, scoped per customer and audited. An agent reports a location's takings and refunds for a period and explains which items drove the change. For example: "Compare last week's takings by location in Square and tell me which items sold worse than the week before."
Is the Square 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 Square integration?
A common starting point: let each merchant connect their own Square account so your product takes payments and reads takings without ever holding card data. The use cases above list the rest.
Add Square to your product
Start free with 3 customer connections. No sales call required, and no per-customer integration code.