Every payment settles against an order
Base URL
https://api.withflintpay.comTest and live requests share one host. The key decides the mode.
Authentication
Authorization: Bearer flint_test_…A flint_test_ key runs against a sandbox with its own data. A flint_live_ key charges real money. Keys belong on your server. See Authentication.
Test card
4242 4242 4242 4242Any future expiry, any CVC. Works on every test-mode checkout. See Testing for declines and 3D Secure.
Start building
How a payment flows
Your backend creates an order, then a checkout session for it, and sends the buyer to the session's hosted page. Flint collects the payment and posts a signed order.paid event to your webhook endpoint. Fetch the order and fulfill from that event, not from the browser redirect: a buyer can close the tab before the redirect fires.
Payment links, embedded payments, invoices, and subscriptions change how the money is collected. They all end in the same paid order. Its payment_status and settlement_amounts report what was paid, refunded, and is still outstanding, and refunds, webhooks, and reports all key on the order id.
- Your backend sends POST /v1/orders to Flint
- Flint returns order, payment_status unpaid to Your backend
- Your backend sends POST /v1/checkout-sessions to Flint
- Flint returns checkout_session.url to Your backend
- Your backend sends redirect to checkout_session.url to Buyer
- Buyer sends pays on the hosted checkout page to Flint
- Flint sends order.paid webhook to Your backend
- Your backend sends GET /v1/orders/{order_id} to Flint
- Flint returns payment_status paid to Your backend
Tools
Every guide shows the HTTP request. These drive the same API from code, a terminal, or an AI agent.
Typed clients for Node.js and PHP, generated from the OpenAPI contract. Both carry your secret key, so they belong on a server.
npm install @flintpay/nodecomposer require flintpay/flintEach API command maps to a /v1 route. flint listen forwards your sandbox's webhook events to localhost without a public tunnel.
npm install -g @flintpay/cliAn AI agent connected to it searches the Flint docs and pulls the request and response schema for any endpoint. Read-only, and no API key is involved.
https://developers.withflintpay.com/mcpOne file with every endpoint, field, and lifecycle for an assistant's context window, and the OpenAPI 3.1 spec for code generation.
https://developers.withflintpay.com/SKILL.mdhttps://api.withflintpay.com/v1/openapi.jsonGuides
Grouped by the job you are doing.
Get started
Payments
Checkout and payment links
Order pricing
Headless
Returns
Catalog and fulfillment
Invoicing and subscriptions
Customer accounts
Agents and partner apps
API reference
Every resource, endpoint by endpoint, with request and response shapes.
