Going live
Your integration works in a sandbox, and you want it to take real payments. You don't change code to go live. Flint uses one base URL and one API for both modes, with the same request shapes and the same webhook signatures. Three things change: the key you send, the account checks that guard real money, and the configuration that exists separately in each mode.
Do these in order:
- Finish account verification.
- Create a live key.
- Confirm the account is ready to charge.
- Re-create your configuration in live mode.
- Cut over and verify with one real payment.
What changes in live mode#
| Test mode | Live mode | |
|---|---|---|
| Key | flint_test_..., bound to one sandbox | flint_live_..., never bound to a sandbox |
| Data | That sandbox's test data | Your real merchant data |
| Cards | Test cards | Real cards. Test card numbers are declined. |
| Money | Simulated. Nothing moves. | Real charges, refunds, and payouts |
| Webhooks | Sandbox events, to endpoints created with a test key | Live events, to endpoints created with a live key |
| Response headers | Flint-Mode: test and Flint-Sandbox-Id | Flint-Mode: live |
Test and live data never mix. Nothing you created with a test key exists in live mode: no orders or customers, and no webhook endpoints, products, plans, promotions, or settings. Going live isn't a data migration. You re-create the few resources your integration refers to by ID, using a live key, and point your production configuration at them.
Warning: Sandbox IDs don't exist in live mode
A prod_..., plan_..., or whep_... ID created in a sandbox returns 404 RESOURCE_NOT_FOUND with a live key. Before you deploy, search your configuration and environment variables for IDs you created while testing, and re-create each one in Step 4.
Step 1: finish account verification#
Charging real cards needs a verified account. Start on the dashboard's Verify your business page. It asks for what Stripe needs to turn on payments: your business details, the owner's identity details, and a bank account for payouts. The same page shows anything Stripe asks for later.
Payments and payouts turn on separately. Live card payments start as soon as Stripe turns on card payments for the account. Payouts start once Stripe confirms your bank account, which can take longer. Until then, live payments collect in your Flint balance. You don't have to wait for either before continuing: Step 3 tells you when each one is ready.
To run verification from your own product or an agent instead of the dashboard, you need a live credential first, because the onboarding session token from signup and every sandbox key act only in a sandbox. Create a live key (Step 2) or sign in with flint login --live; neither needs a verified business. Then read GET /v1/onboarding/state and follow its next_step. Onboard the live account walks through the loop, and which credential reaches which environment explains why a sandbox credential can't reach the live account.
If a platform created your account with a merchant signup, you don't create a key for this. The platform's partner app token runs verification inside its product, or sends you to a Flint-hosted page, and the platform reads readiness as the steps below describe. You can still sign in to Flint with the email you signed up with to see the account, create your own keys, or manage payouts.
Step 2: create your live key#
Create a live key on the dashboard's API keys page. Live keys start with flint_live_, and that prefix alone puts a request in live mode.
Give a production service a key with access set to restricted and only the scopes it uses. A full key also gains every scope Flint adds later. A checkout backend that creates checkout sessions, reads orders, and issues refunds needs checkouts.checkout_sessions.write, commerce.orders.read, and commerce.refunds.write, not settings.write. A .write scope includes its .read. The scope catalog lists every scope, and Key access explains full, read_only, and restricted.
To create the key from a terminal, sign in to live mode with key management and create a restricted key:
flint login --live --scope accounts.api_keys.write
flint api-keys create --name checkout-backend --access restricted \
--scopes checkouts.checkout_sessions.write \
--scopes commerce.orders.read \
--scopes commerce.refunds.write
Approve live access in the browser when flint login opens it. If your sign-in isn't recent, the browser asks you to verify your identity again before it approves key management. --scopes names the key's permissions; it can hold only scopes your login holds. A missing one returns 403 INSUFFICIENT_SCOPE with the scopes in details[0].missing_scopes; add them with flint reauth --scope. Only the dashboard or a full-access key can create a full or read_only key, or grant accounts.api_keys.write, accounts.workload_identities.write, commerce.gift_cards.secrets.write, or commerce.license_keys.secrets.write; a CLI login asking for them gets 403 FORBIDDEN with reason full_access_required.
The response includes the full secret_key once. Store it in your secrets manager right away, because Flint can't show it again. To rotate later, create a replacement and revoke the old key; see Manage keys over the API.
Use a setup credential for Steps 3 and 4#
The checkout backend key above can't run Steps 3 and 4. Reading the merchant needs merchants.profile.read, registering a webhook endpoint needs webhooks.write, and a subscription needs read access to each event's resource. That key holds none of them. Run those steps with your flint login --live session, or with a separate setup key that holds these scopes for the events Step 4 subscribes to:
| Scope | Why |
|---|---|
merchants.profile.read | Read the merchant and its readiness (Step 3), and subscribe to merchant.readiness_updated. |
webhooks.write | Create the endpoint and send a test event (Step 4). |
commerce.orders.read | Subscribe to order.paid. |
payments.payment_intents.read | Subscribe to payment_intent.payment_failed. |
commerce.refunds.read | Subscribe to the refund.* events. |
payments.disputes.read | Subscribe to dispute.created. |
The examples below send that credential as Authorization: Bearer YOUR_LIVE_SETUP_KEY. To create the setup key, sign in with the scopes it needs, then revoke the key when setup is done:
flint login --live --scope accounts.api_keys.write \
--scope merchants.profile.read --scope webhooks.write \
--scope commerce.orders.read --scope payments.payment_intents.read \
--scope commerce.refunds.read --scope payments.disputes.read
flint api-keys create --name go-live-setup --access restricted \
--scopes merchants.profile.read \
--scopes webhooks.write \
--scopes commerce.orders.read \
--scopes payments.payment_intents.read \
--scopes commerce.refunds.read \
--scopes payments.disputes.read
A subscription missing one of these returns 403 INSUFFICIENT_SCOPE with the scopes in details[0].missing_scopes.
Note: Assert the mode in your smoke test
Every authenticated response carries a Flint-Mode header, test or live. A test key left in production config causes no errors. Payments look like they succeed, but they're simulated and every response says Flint-Mode: test. Check the header after each deploy.
Step 3: confirm your account is ready to charge#
Before you send real buyers to checkout, ask Flint whether the account can take payments and receive payouts. Reading the merchant needs merchants.profile.read, so use your setup credential, not the checkout backend key.
curl https://api.withflintpay.com/v1/merchant \
-H "Authorization: Bearer YOUR_LIVE_SETUP_KEY"
{
"data": {
"merchant_id": "mer_1kmn0aExample",
"business_name": "Canvas & Co.",
"readiness": {
"payments": { "status": "ready", "next_actions": [] },
"payouts": {
"status": "pending",
"status_reason": "pending_verification",
"next_actions": [{ "action_type": "wait_for_review", "owner": "flint" }]
},
"capabilities": [
{
"capability": "accept_card_payments",
"domain": "payments",
"status": "ready",
"requirements": { "currently_due": [], "past_due": [], "eventually_due": [], "pending_verification": [] },
"next_actions": []
},
{
"capability": "receive_payouts",
"domain": "money_movement",
"status": "pending",
"status_reason": "pending_verification",
"requirements": { "currently_due": [], "past_due": [], "eventually_due": [], "pending_verification": ["payout_destination"] },
"next_actions": [{ "action_type": "wait_for_review", "owner": "flint" }]
}
],
"requirements": {
"currently_due": [],
"past_due": [],
"eventually_due": [],
"pending_verification": ["payout_destination"]
},
"observed_at": "2026-07-02T18:04:11Z"
}
}
}
The response is shortened: the merchant has more fields, and capabilities lists every capability Flint offers. This account can launch. readiness.payments is ready, so live buyers can pay by card. readiness.payouts is still pending while Stripe confirms the bank account, so the money collects in your balance until it turns ready.
The two axes answer different questions:
paymentsdecides whether live buyers can pay by card. It must bereadybefore you launch. Otherwise, creating or confirming a payment fails with409 MERCHANT_NOT_READY.payoutsdecides whether your balance can reach your bank. It can turnreadyafter launch.
Each axis, and each entry in capabilities, has one of these statuses:
status on readiness axisA missed deadline doesn't block payments by itself. Payments are blocked only once Stripe turns off the account's charges or a payment capability. Here is an account whose card payments capability Stripe turned off while a requirement is past due:
{
"data": {
"readiness": {
"payments": {
"status": "blocked",
"status_reason": "requirements_past_due",
"next_actions": [
{
"action_type": "create_merchant_account_session",
"owner": "integrator",
"merchant_account_session": {
"components": ["account_onboarding"],
"collection_strategy": "incremental",
"future_requirements": "omit"
}
}
]
},
"capabilities": [
{
"capability": "accept_card_payments",
"domain": "payments",
"status": "blocked",
"status_reason": "requirements_past_due",
"requirements": {
"currently_due": [],
"past_due": ["business_website"],
"eventually_due": [],
"pending_verification": [],
"disabled_reason": "requirements_past_due"
}
}
],
"requirements": {
"currently_due": [],
"past_due": ["business_website"],
"eventually_due": [],
"pending_verification": [],
"disabled_reason": "requirements_past_due"
}
}
}
}
A capability Stripe hasn't turned off stays ready, even while requirements are currently due or past due: it lists them in requirements, with due_at when Stripe set a deadline, and offers a create_merchant_account_session action to provide them.
The requirements arrays name what's outstanding with Flint requirement codes, such as business_website. Treat a code you don't recognize as additional_account_information.
currently_dueandpast_dueneed action from you. Provide the information on the dashboard's Verify your business page, or in a headless session: send the action'smerchant_account_sessionbody, includingtargeted_requirementswhen present, toPOST /v1/merchant-account-sessionsand mount the session in your product. ReadGET /v1/merchantafterward for the current requirements.pending_verificationis submitted and under review. Read again later.eventually_duedoesn't block anything yet. Provide it before it moves tocurrently_due.
Stripe can pause payments or payouts at or after its deadline, and readiness shows it when it does, so read readiness rather than comparing requirements.due_at with the clock.
To hear about readiness changes after launch, subscribe to merchant.readiness_updated and read GET /v1/merchant when it arrives, instead of polling. If you accept ACH debit, check the accept_ach_debit_payments entry in capabilities too; see Turn on ACH debit.
Status reasons#
status_reason says why an axis or capability isn't ready. New reasons can appear, so treat one you don't recognize as other.
Each entry in next_actions has an action_type and an owner: integrator for a call you make, merchant for something the account holder does, or flint. Information that's due comes with create_merchant_account_session, and pending_verification with wait_for_review. billing_suspended comes with settle_flint_balance and tax_category_required with set_tax_category. If a default payout destination fails, payout readiness can report requirements_due with a merchant-owned replace_default_payout_destination action. Its url points to the endpoint where you choose another default. Reasons only Flint support can clear come with contact_support. platform_funding_unavailable and service_unavailable come with no action.
status_reason on readiness axisStep 4: re-create your configuration in live mode#
Everything your integration refers to by ID must exist in live mode. Almost every integration needs a webhook endpoint.
Register your production webhook endpoint#
Webhook endpoints belong to one mode. The endpoint you registered while testing receives sandbox events only, so register your production URL in live mode, with your setup credential. Use your test key to read the sandbox endpoint with GET /v1/webhook-endpoints/{webhook_endpoint_id}. Copy its enabled_events and api_version into the live create request to keep the same event subscriptions and version setting. Copy the version date for a pinned endpoint, or send default to follow the merchant's default version. If you omit api_version, Flint pins the endpoint to the API version that serves the create request.
curl -X POST https://api.withflintpay.com/v1/webhook-endpoints \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_LIVE_SETUP_KEY" \
-H "Idempotency-Key: webhook-endpoint-production-001" \
-d '{
"url": "https://example.com/webhooks/flint",
"enabled_events": [
"order.paid",
"payment_intent.payment_failed",
"refund.succeeded",
"refund.failed",
"refund.updated",
"dispute.created",
"merchant.readiness_updated"
],
"description": "Production endpoint",
"api_version": "default"
}'
{
"data": {
"webhook_endpoint_id": "whep_1kmn0aExample",
"url": "https://example.com/webhooks/flint",
"signing_methods": ["jwt"],
"enabled_events": [
"order.paid",
"payment_intent.payment_failed",
"refund.succeeded",
"refund.failed",
"refund.updated",
"dispute.created",
"merchant.readiness_updated"
],
"description": "Production endpoint",
"api_version": "default",
"event_sources": ["merchant"],
"status": "active",
"version": 1,
"created_at": "2026-07-03T14:53:12Z",
"updated_at": "2026-07-03T14:53:12Z"
}
}
That list covers fulfillment, failed payments, refunds, disputes, and account readiness. The webhook events catalog has the rest.
New endpoints sign with JWTs and have no shared secret. Configure your production receiver to expect the live webhook_endpoint_id as the JWT audience, not the sandbox endpoint's ID, and verify each delivery with Flint's public JWKS. If your sandbox endpoint verifies HMAC signatures instead, either deploy JWT verification or send the same signing_methods your sandbox endpoint has when you create the live one.
Then prove your production handler receives and verifies a signed delivery by sending a synthetic event:
curl -X POST https://api.withflintpay.com/v1/webhook-endpoints/whep_1kmn0aExample/test-events \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_LIVE_SETUP_KEY" \
-d '{"event_type": "order.paid"}'
{
"data": {
"webhook_event_id": "whev_1kmn0aExample",
"webhook_delivery_id": "wdel_1kmn0aExample",
"webhook_delivery_attempt_id": "watt_1kmn0aExample",
"attempt_number": 1,
"attempt_status": "delivered",
"delivery_status": "delivered",
"delivery_trigger": "test_event",
"status_code": 200,
"duration_milliseconds": 312
}
}
"attempt_status": "delivered" with a status_code of 200 means your production handler accepted a signed Flint event. A test event's body has "test": true and placeholder IDs, so make sure your handler doesn't fulfill anything from it. If attempt_status is failed, the response includes the status code your endpoint returned, an error_summary, and a recommended_action. Fix the handler and send another test event. Test events are delivered once and never retried.
Re-create the resources you refer to by ID#
Re-create, with your live key, anything your code or configuration refers to by ID. That usually means the products, variants, and bundles you sell by ID, subscription plans and promotions, and any checkout or receipt settings you changed from the defaults.
Resources your backend creates per request, such as orders, checkout sessions, payment links, and invoices, need nothing. They're created in live mode as soon as you use the live key.
You don't set up processing pricing. Check your live rates under Processing rates on Flint billing before you charge anyone. It also lists the smallest payment your rates price.
Step 5: cut over and verify with real money#
The deploy is a configuration change:
# Production configuration. The base URL doesn't change.
FLINT_API_KEY=flint_live_... # Step 2
FLINT_WEBHOOK_ENDPOINT_ID=whep_1kmn0aExample # Step 4, the expected JWT audience
Add any live resource IDs from Step 4. Then, before you announce anything, run one real transaction through production:
- Pay $1.00 with a real card through your real checkout flow. Every published card rate accepts a $1.00 payment. Test card numbers are declined in live mode.
- Confirm the order is paid.
GET /v1/orders/{order_id}returns"payment_status": "paid","status": "closed"with"closed_reason": "paid", andsettlement_amounts.outstanding_moneyof zero. The response carriesFlint-Mode: live. - Confirm the webhook arrived. Your handler received
order.paidfor that order, and your fulfillment ran once after checking the order'sdispute_status. - Check what you netted.
GET /v1/payment-intents/{payment_intent_id}returnsprocessing_fee_money, Flint's all-in processing fee, andmerchant_net_money, the captured amount minus that fee and anyadd_on_fees. See Processing fees. - Refund the payment and confirm the refund webhooks arrive.
curl -X POST https://api.withflintpay.com/v1/refunds \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_LIVE_KEY" \
-H "Idempotency-Key: go-live-refund-001" \
-d '{
"refund_type": "full",
"order_id": "ord_1kmn0aExample",
"reason": "requested_by_customer"
}'
Check the refund's status. If it is pending, read the refund again or follow its events for the outcome. If it fails, read failure_reason and resolve the cause before creating a new refund with a new Idempotency-Key. A refund can draw from pending funds or take your available balance below zero. See Refunds are paid from your balance.
The verification costs you the processing fee, because a refund doesn't return it. At the published card rate of 3.79% + 35¢, a $1.00 payment and its full refund cost you 39¢.
A real payment and refund exercise your charge path, webhook path, and refund path against production, once, while you watch. Your test should produce these events:
For a new live account, payouts run weekly for the first 60 days; see New accounts.
The go-live checklist#
Run this list before your first real buyer does.
Credentials#
- Live keys stay on your server: never in browser or mobile code, and never in source control. Load them from a secrets manager or environment variables.
- Each service has its own
restrictedkey with only the scopes it uses. - No sandbox IDs remain in production configuration (Step 4).
- Keys you no longer use are revoked.
Correctness#
- Before sharing checkout, review
business_nameand set the name buyers should see throughPATCH /v1/merchantwith a live credential, or in the Dashboard. - Review the statement descriptor, the text on your buyers' card and bank statements. It starts as the payment provider's default, so check that buyers will recognize your business name. Set
payments.statement_descriptorthroughPATCH /v1/settingswith a live credential, or in the Dashboard under Settings, Payments. See Payment settings. Payment readiness doesn't depend on it. - Fulfillment runs from webhooks or a server-side read of the order, never from the browser redirect alone. A buyer can close the tab before the redirect, and anyone can open your success URL directly.
- Every write your retry logic can repeat sends an
Idempotency-Key, and a retry of the same action reuses the same key. See Idempotency. - Amounts come from the order's
settlement_amountson your server, never from anything the browser sends. - Declines and 3D Secure challenges are handled. Real cards fail more often, and in more ways, than test cards. You tested those paths with the decline test cards.
Webhooks#
- Your verifier checks each JWT against the raw request body, with the live endpoint ID as the audience.
- Deliveries are deduplicated by
webhook_event_id, which thewebhook-idheader also carries. - Your handler returns
2xxwithin 10 seconds, after it durably queues the work and before it does the work. - Something alerts on failed deliveries:
GET /v1/webhook-events?delivery_status=failed. See Monitor, debug, and resend. - You subscribe to
dispute.createdandmerchant.readiness_updated, so disputes and account changes reach you.
Operations#
- You log the
request_idfrom every API response, also sent as theX-Request-Idheader, so you and Flint support can trace a request. - Your workers back off on
429and respectRetry-After. Size them against the rate limits, which count per key and per merchant, and count live traffic separately from sandbox traffic.
If something fails on launch day#
| Symptom | Likely cause | Fix |
|---|---|---|
| Payments succeed but no money moves | A test key is still in production; responses say Flint-Mode: test. | Deploy the flint_live_ key from Step 2. |
| A card that worked in testing is declined | Test card numbers are declined in live mode. | Use a real card. |
404 RESOURCE_NOT_FOUND on a product, plan, or promotion | A sandbox ID is in live configuration. | Re-create the resource with your live key (Step 4). |
| Webhook JWT verification fails | The expected audience is the sandbox endpoint's ID, or the body changed before verification. | Use the live endpoint ID, and verify the exact request bytes. |
| Live payments succeed but no payout arrives | readiness.payouts is still pending or is blocked. | Check readiness (Step 3). Funds wait in your balance until payouts are ready. |
API errors you can see on launch day:
Error handling covers every readiness reason. Every failing response includes a request_id. Quote it if you ask Flint Help, and see Debugging to trace a request end to end.