Skip to content

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:

  1. Finish account verification.
  2. Create a live key.
  3. Confirm the account is ready to charge.
  4. Re-create your configuration in live mode.
  5. Cut over and verify with one real payment.

What changes in live mode#

Test modeLive mode
Keyflint_test_..., bound to one sandboxflint_live_..., never bound to a sandbox
DataThat sandbox's test dataYour real merchant data
CardsTest cardsReal cards. Test card numbers are declined.
MoneySimulated. Nothing moves.Real charges, refunds, and payouts
WebhooksSandbox events, to endpoints created with a test keyLive events, to endpoints created with a live key
Response headersFlint-Mode: test and Flint-Sandbox-IdFlint-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.

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:

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

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.

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.

cURL
curl https://api.withflintpay.com/v1/merchant \
  -H "Authorization: Bearer YOUR_LIVE_KEY"
JSON
{
  "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:

  • payments decides whether live buyers can pay by card. It must be ready before you launch. Otherwise, creating or confirming a payment fails with 409 MERCHANT_NOT_READY.
  • payouts decides whether your balance can reach your bank. It can turn ready after launch.

Each axis, and each entry in capabilities, has one of these statuses:

status on readiness axis
  • ready
    Works now. next_actions is usually empty. It can still offer a create_merchant_account_session action when information will be due later.
  • pending
    Waiting. With pending_verification, Stripe is reviewing what you submitted, and you don't need to do anything. With onboarding_not_started, you haven't submitted verification yet; finish Step 1.
  • blocked
    Something must be resolved first. status_reason says what, and next_actions says who acts. See Status reasons.
  • not_requested
    The account never requested this capability. Contact Flint support.
  • not_available
    Flint couldn't read readiness for this account, and status_reason is service_unavailable. Read the merchant again later.

Here is an account whose payments are blocked because a requirement missed its deadline:

JSON
{
  "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"
            }
          }
        ]
      },
      "requirements": {
        "currently_due": [],
        "past_due": ["business_website"],
        "eventually_due": [],
        "pending_verification": [],
        "disabled_reason": "requirements_past_due"
      }
    }
  }
}

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_due and past_due need action from you. Provide the information on the dashboard's Verify your business page, or in an embedded session: send the action's merchant_account_session body, including targeted_requirements when present, to POST /v1/merchant-account-sessions and mount the session in your product. Read GET /v1/merchant afterward for the current requirements.
  • pending_verification is submitted and under review. Read again later.
  • eventually_due doesn't block anything yet. Provide it before it moves to currently_due.

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. Reasons only Flint support can clear come with contact_support. platform_funding_unavailable and service_unavailable come with no action.

status_reason on readiness axis
  • provisioning
    Status pending. Flint is automatically preparing the selected sandbox, including its test payment and payout setup. No action is required; read readiness again shortly. This reason does not apply to the live account.
  • onboarding_not_started
    Status pending. Account verification hasn't been submitted. Finish Step 1.
  • requirements_due
    Information in requirements.currently_due is due. Provide it on the dashboard or in an account session.
  • requirements_past_due
    Information in requirements.past_due missed its deadline. Provide it on the dashboard or in an account session.
  • pending_verification
    Status pending. Submitted information is under review. Nothing to do; read again later.
  • account_rejected
    The account was rejected. requirements.rejected_by says whether flint or the payment_processor rejected it. Contact Flint support.
  • disabled_by_platform_policy
    Flint or the payment processor suspended, closed, or restricted the account. Contact Flint support.
  • billing_suspended
    Flint paused processing because an amount you owe Flint is unpaid 21 days after its due date, or later if your billing terms allow more time. Pay the amount, and processing resumes automatically. See Merchant billing.
  • platform_review
    Flint paused processing while it reviews the account. This is Flint's own review, not the information review behind pending_verification. Contact Flint support; processing resumes when the review ends. Payment refusals use the same platform_review value as their MERCHANT_NOT_READY reason.
  • processing_not_enabled
    Flint hasn't turned on processing for this account. Contact Flint support with a request_id.
  • platform_funding_unavailable
    Payments or payouts are temporarily unavailable on Flint's platform, and nothing on your account caused it. Requests fail with their usual error code, details[0].reason platform_funding_unavailable, error_source flint, and remediation.retry none, because Flint can't say when funding returns. Try again later as a new request.
  • tax_category_required
    Live payments and payouts are paused until you choose an automatic tax category that Flint supports. Choose one in your tax settings.
  • service_unavailable
    Status not_available. Flint couldn't read readiness, or processing is temporarily unavailable. Read again later.
  • payment_option_access_not_provisioned
    On a payment option's capability, such as Affirm: the option isn't set up for this account. Contact Flint support.
  • payment_option_activation_pending
    On a payment option's capability: Flint is still activating the option. Contact Flint support to check on it.
  • payment_option_not_in_plan
    On a payment option's capability: your Flint plan doesn't include the option. Contact Flint support to add it.
  • payment_option_not_available
    On a payment option's capability: the option isn't available for this account. Contact Flint support.
  • capability_not_active
    The capability isn't active on the account. Contact Flint support.
  • other
    A reason without a published name, including one newer than your code. Follow next_actions, or contact Flint support.

Step 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 with your live key. Subscribe it to the events your sandbox endpoint receives: read that endpoint's enabled_events with your test key from GET /v1/webhook-endpoints/{webhook_endpoint_id}, and send the same list.

cURL
curl -X POST https://api.withflintpay.com/v1/webhook-endpoints \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_LIVE_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"
  }'
JSON
{
  "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
curl -X POST https://api.withflintpay.com/v1/webhook-endpoints/whep_1kmn0aExample/test-events \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_LIVE_KEY" \
  -d '{"event_type": "order.paid"}'
JSON
{
  "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:

Shell
# 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:

  1. Pay $1.00 with a real card through your real checkout flow. $1.00 is the smallest card payment the published rates price. Test card numbers are declined in live mode.
  2. Confirm the order is paid. GET /v1/orders/{order_id} returns "payment_status": "paid", "status": "closed" with "closed_reason": "paid", and settlement_amounts.outstanding_money of zero. The response carries Flint-Mode: live.
  3. Confirm the webhook arrived. Your handler received order.paid for that order, and your fulfillment ran once.
  4. Check what you netted. GET /v1/payment-intents/{payment_intent_id} returns processing_fee_money, Flint's all-in processing fee, and merchant_net_money, the captured amount minus that fee and any add_on_fees. See Processing fees.
  5. Refund the payment and confirm the refund webhooks arrive.
cURL
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 status on the response. A refund is paid from your available balance, and a new account's first payment can still be pending. If the available balance can't cover the refund, the response is 201 with "status": "failed" and "failure_reason": "insufficient_available_balance", not an error. Wait until GET /v1/balances shows enough in available_money, then refund again with a new Idempotency-Key. 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 restricted key 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_name and set the name buyers should see through PATCH /v1/merchant with a live credential, or in the Dashboard.
  • 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_amounts on 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 the webhook-id header also carries.
  • Your handler returns 2xx within 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.created and merchant.readiness_updated, so disputes and account changes reach you.

Operations#

  • You log the request_id from every API response, also sent as the X-Request-Id header, so you and Flint support can trace a request.
  • Your workers back off on 429 and respect Retry-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#

SymptomLikely causeFix
Payments succeed but no money movesA 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 declinedTest card numbers are declined in live mode.Use a real card.
404 RESOURCE_NOT_FOUND on a product, plan, or promotionA sandbox ID is in live configuration.Re-create the resource with your live key (Step 4).
Webhook JWT verification failsThe 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 arrivesreadiness.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:

  • HTTP 409
    The account can't take this payment yet. Read GET /v1/merchant and follow readiness.payments: its status_reason and next_actions say what to do. Common details[0].reason values are onboarding_required (covering readiness onboarding_not_started, requirements_due, requirements_past_due, and pending_verification), billing_suspended, platform_review (Flint's review, matching readiness status_reason), processing_not_enabled, and processing_restricted. Retrying the same request doesn't help until readiness changes.
  • HTTP 503
    PAYMENT_PROCESSING_UNAVAILABLERetry the same request
    Payments can't be processed right now. With details[0].reason platform_funding_unavailable, nothing on your account caused it, but remediation.retry is none because Flint can't say when funding returns; try again later as a new request.
  • HTTP 404
    An ID doesn't exist in live mode, usually one created in a sandbox. Re-create it with your live key.

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.

Next steps#

WebhooksJWT verification, retries, and delivery monitoring.Key securityScoping, rotation, secret storage, and incident response.Error handlingThe error envelope and a production retry strategy.CLIProduction access needs a live login you approve, or --live with a live key on each command.

Was this helpful?