Skip to content

Merchants on their own Stripe account

A merchant already processing on Stripe can connect that account when they go live, instead of verifying their business again on an account Flint sets up. Payments run on the merchant's Stripe account, under their agreement with Stripe. Flint runs the orders, checkout, catalog, tax, inventory, fulfillment, returns, invoices, subscriptions, and buyer account around each payment.

Your integration keeps the same API. Orders, payment intents, refunds, customers, saved cards, subscriptions, invoices, checkout sessions, and payment links work as they do on any merchant. Two exceptions: a payment with splits is refused when the collecting merchant or a seller runs on their own Stripe account, and in-person payments aren't available, so readers and card_present payments are refused. The merchant keeps their Stripe balance, payouts, bank account, statement descriptor, and Stripe pricing, so those stay in Stripe, and Flint tells you so with a field, a readiness action, and one error reason.

The merchant connects their account in the Flint Dashboard when they go live. No API route starts a connection, and only live mode connects: every sandbox runs on a test account Flint sets up.

  • GET/v1/merchantRequired API key scopes: merchants.profile.read or merchants.profile.writeReference for GET /v1/merchant

    Read payments_account.owner and readiness for the credential's environment.

  • POST/v1/merchant/simulateRequired API key scope: merchants.profile.writeReference for POST /v1/merchant/simulate

    Simulate a payments account disconnect or reconnect in a sandbox.

  • POST/v1/payment-methods/simulateRequired API key scope: payments.payment_methods.writeReference for POST /v1/payment-methods/simulate

    Create an imported test card in a sandbox.

Tell which account a merchant runs on#

Read payments_account.owner on GET /v1/merchant:

cURL
curl https://api.withflintpay.com/v1/merchant \
  -H "Authorization: Bearer YOUR_API_KEY"
Response
{
  "data": {
    "merchant_id": "mer_1kmn0aExample",
    "business_name": "Harbor Coffee Roasters",
    "payments_account": { "owner": "merchant" }
  }
}
ownerMeaning
flintFlint set up the payments account and controls it. Balances, payouts, and payout settings are managed through Flint. This is also the value before live payments are set up, and in every sandbox.
merchantThe merchant connected their own Stripe account. Payments, refunds, and saved cards work through Flint. Balances, payouts, payout settings, and dispute responses are managed in Stripe.
  • It answers for the credential's environment. A live key reads the live account. A sandbox key always reads flint.
  • It changes once. owner moves from flint to merchant when the merchant finishes connecting, which is possible only before their first live payment. It doesn't change back. The change advances the merchant's version and sends merchant.updated with previous_attributes.payments_account.
  • Read it from this field only. Fees, readiness, and onboarding state don't tell you who owns the account.
  • New values can appear. Handle a value you don't recognize without failing, and let the refusal below be the final answer for each operation.

A partner app reads the field with merchants.profile.read, so a platform can branch on it for every merchant that installs its app.

What the merchant manages in Stripe#

On a merchant's own account, these operations return 409 ACTION_NOT_ALLOWED with details[0].reason set to managed_externally:

AreaOperations
BalancesGET /v1/balances
PayoutsGET /v1/payouts, POST /v1/payouts, GET /v1/payouts/{payout_id}, POST /v1/payouts/{payout_id}/cancel
Payout settingsGET /v1/payout-settings, PATCH /v1/payout-settings
Payout destinationsGET /v1/payout-destinations, GET, PATCH, and DELETE /v1/payout-destinations/{payout_destination_id}
Dispute responsesPOST /v1/disputes/{dispute_id}/response-sessions, POST /v1/disputes/{dispute_id}/accept
VerificationPOST /v1/merchant-account-sessions, POST /v1/merchant-account-session-refreshes, POST /v1/onboarding/access-links, POST /v1/onboarding/advance
In-person paymentsGET and POST /v1/readers; GET, PATCH, and DELETE /v1/readers/{reader_id}; POST /v1/readers/{reader_id}/connection-sessions; POST /v1/payment-intents with card_present in payment_options, for an order or standalone; and reader payments through POST /v1/orders/{order_id}/pay or POST /v1/payment-intents/{payment_intent_id}/confirm

The reads are refused too, because Flint keeps no balance or payout records for an account it doesn't control, and an empty list would say there is nothing to pay out. A refused request returns:

JSON
{
  "error": {
    "type": "conflict_error",
    "code": "ACTION_NOT_ALLOWED",
    "message": "The merchant manages this operation with their payment provider.",
    "error_source": "caller",
    "remediation": {
      "retry": "none",
      "next_steps": "The merchant manages this with their payment provider, on their own account. payments_account.owner on GET /v1/merchant is merchant. Send the merchant to the provider's dashboard."
    },
    "details": [{ "code": "ACTION_NOT_ALLOWED", "reason": "managed_externally" }]
  }
}

Don't retry it. Hide the screens that make these calls when owner is merchant, and link the merchant to their Stripe Dashboard instead. managed_externally has other uses, such as a Flint-managed risk list, so read the reason together with the operation.

Three reads keep working, with what Flint knows:

  • Balance transactions. GET /v1/balance-transactions lists Flint's own activity: each Flint payment, refund, and dispute, with the gross amount, the payment provider's fee, Flint's fee, and the net. Payouts and the merchant's other Stripe integrations never appear.
  • Disputes. GET /v1/disputes lists every dispute on a Flint payment with its status and deadline. supported_actions is empty, can_respond_with_evidence is false, and response_unavailable_reason is managed_externally. is_action_required stays true while the case needs a response and the deadline hasn't passed, so your dispute alerts still fire. The merchant responds in their Stripe Dashboard.
  • Readiness. readiness on GET /v1/merchant reflects Stripe's view of the account. See Readiness.

Fees and what the merchant nets#

Stripe takes its fee out of each payment, and Flint takes its own. GET /v1/payment-intents/{payment_intent_id} with a merchant credential reports both:

FieldWhat it holds
processing_fee_moneyFlint's fee only. At Flint's published rates for these accounts, that's 0.59% + 5¢ on card, wallet, and Affirm payments, and 0.2% capped at $5 on ACH debit.
provider_fee_moneyStripe's fee, from the payment's balance transaction. A payment Stripe charged nothing for shows 0. Present only for payments on the merchant's own Stripe account.
merchant_net_moneycaptured_money minus both fees, every add-on fee, and any platform fee. For a partial capture with a separate Flint fee refund, add the refund adjustment's net_money to the original payment balance transaction's net_money to reconcile this field.
JSON
{
  "data": {
    "payment_intent_id": "pi_01KEZF7C0012ZTCGDTXP9S02QD",
    "status": "succeeded",
    "captured_money": { "amount": 1300, "currency": "USD" },
    "processing_fee_money": { "amount": 13, "currency": "USD" },
    "provider_fee_money": { "amount": 68, "currency": "USD" },
    "add_on_fees": [],
    "merchant_net_money": { "amount": 1219, "currency": "USD" }
  }
}

Each fee field is absent until Flint verifies it, so never record a missing fee as zero. processing_fee_money can appear before Stripe reports its fee. provider_fee_money and merchant_net_money appear together once Flint verifies Stripe's fee. Read the payment intent again later if a field is absent. payment_intent.* webhook payloads leave the fee fields out. Processing fees explains how Flint's fee is calculated.

Readiness#

Readiness works as on any merchant: read it on GET /v1/merchant, and read again when merchant.readiness_updated fires. Stripe verifies the merchant, so what Stripe reports drives readiness and its actions point there:

What Stripe reportsreadiness.paymentsnext_actions
Charges and payouts enabledreadyNone
Stripe asks for information, payments still onready, with upcoming_block_reason and upcoming_block_at when Stripe sets a deadlineopen_provider_dashboard
Stripe turned charges off for missing informationblocked, requirements_due or requirements_past_dueopen_provider_dashboard
Stripe is reviewing the accountpending, pending_verificationNone
Stripe rejected the accountblocked, account_rejectedopen_provider_dashboard
The account is disconnectedblocked, payment_account_disconnectedreconnect_payments_account

Flint's own reasons still apply on top, as on any merchant, such as platform_review with contact_support during a Flint review, or tax_category_required with set_tax_category. Handle every action you receive.

Both actions have owner merchant:

  • open_provider_dashboard: send the merchant to their Stripe Dashboard. The action has no url and no merchant_account_session.
  • reconnect_payments_account: the merchant reconnects their Stripe account in the Flint Dashboard under Settings > Payments account.

create_merchant_account_session, advance_onboarding, and the payout destination and payment settings actions never appear on these accounts. create_standard_payouts, manage_payout_destinations, and manage_payout_settings are not_available with managed_externally. receive_payouts follows whether Stripe has payouts enabled. ACH debit and Affirm are ready only when the merchant turned them on in Stripe; otherwise they are blocked with capability_not_active and open_provider_dashboard. Status reasons explains each reason.

When the merchant disconnects#

A merchant can disconnect from the Flint Dashboard or from their Stripe Dashboard at any time. Their Stripe account keeps working, and Flint keeps every order, customer, and payment. Flint sends merchant.readiness_updated, and readiness then reads:

JSON
{
  "data": {
    "merchant_id": "mer_1kmn0aExample",
    "payments_account": { "owner": "merchant" },
    "readiness": {
      "payments": {
        "status": "blocked",
        "status_reason": "payment_account_disconnected",
        "next_actions": [{ "action_type": "reconnect_payments_account", "owner": "merchant" }]
      },
      "payouts": {
        "status": "not_available",
        "status_reason": "payment_account_disconnected",
        "next_actions": [{ "action_type": "reconnect_payments_account", "owner": "merchant" }]
      }
    }
  }
}

Every payments capability is blocked and every money movement capability is not_available, all with the same reason and action. While it lasts:

  • Requests that need Stripe fail. New payments, captures, refunds, card saves, and checkout launches return 409 MERCHANT_NOT_READY with details[0].reason set to payment_account_disconnected, retry: none, and error_source: merchant. A buyer credential, such as a checkout session or customer session, gets the same code and reason, with the message "This store can't take payments right now."
  • Hosted pages say so before card entry. Checkout, payment links, and hosted invoices tell buyers the store can't take payments right now, never as a card decline. Order history and receipts stay available. A buyer's read of an unpaid invoice the buyer could otherwise pay online now, such as GET /v1/me/invoices/{invoice_id}, reports its pay action unavailable with unavailable_reason: store_unavailable. If you build your own checkout, read the open session with its checkout credential: problems[] includes payment_account_disconnected with blocks_completion: true, so you can say the same before the buyer enters a card.
  • Collection waits. A subscription that comes due shows billing_hold.reason: payment_account_disconnected. A hold isn't a decline: it doesn't start payment recovery, use a retry, or cancel the subscription. Automatic invoice collection waits the same way. In the buyer account, cancel, pause, skip, and address changes stay available. Customer-session subscription reads under /v1/me return billing_hold.reason: payment_account_disconnected too, so your own buyer portal can tell the buyer the store needs to reconnect before billing resumes.
  • Reads keep working. Orders, customers, payment intents, refunds, and disputes stay readable.

To recover, ask the merchant to follow reconnect_payments_account. There's no API route for it: Stripe asks the account owner to approve the connection in a browser. Payments resume once readiness.payments.status is ready again, which merchant.readiness_updated tells you. Held subscription collections then resume. For your own requests that failed, send a new request with a new Idempotency-Key.

Changes made outside Flint#

The merchant can still act in their Stripe Dashboard on a payment Flint created, and Flint records it. origin says where a resource came from:

Resourceorigin valuesNotes
Payment intentflintAlways flint, even after a capture made in Stripe.
Refundflint, provider_dashboardprovider_dashboard is a refund made outside Flint on a Flint payment, such as in the Stripe Dashboard. Its initiated_by is merchant. Filter with GET /v1/refunds?origin=provider_dashboard.
DisputeflintThe buyer's bank opens every dispute. flint means Flint recorded it on its own payment.
Customerflint, importedimported is a customer Flint imported from the merchant's Stripe account. Filter with GET /v1/customers?origin=imported.
Payment methodimported, or omittedimported is a saved card imported from the merchant's Stripe account, or migrated from another processor account. Other cards omit the field.
Order activityprovider_dashboard, or omittedPresent on a capture, cancellation, or refund recorded from a change outside Flint. actor is omitted on those.

These changes arrive as the same refund.*, payment_intent.*, and order.* events Flint's own changes send, with origin on the resource. provider_dashboard means outside Flint: Flint can't tell a person in the Stripe Dashboard from another integration. Payments the merchant's other integrations take on the account never enter Flint.

Treat origin values you don't recognize as an open set.

Imported customers and cards#

After connecting, the merchant can import their Stripe customers, and their saved cards once they confirm their buyers agreed to future charges. Flint creates one customer per email address, and keeps importing what the merchant adds in Stripe later. Turning card import off stops new card imports and leaves imported cards in place. Import sends no email to buyers.

  • Each imported customer sends customer.created with origin: imported, one event per customer.
  • Each imported card sends payment_method.activated. It is active with usage: off_session, origin: imported, and consent: null, because Flint has no recorded wording from the buyer.
  • You can charge an imported card with customer_presence: absent, so subscriptions and automatic invoices can use it right away. See When the customer is not there.
  • At checkout, a returning buyer unlocks their imported card with a code sent to their email, as with any card saved with the store.
  • A card detached in Stripe sends payment_method.archived.

Cards stay on the merchant's Stripe account, attached to the same Stripe customers, and the merchant's other integrations keep using them.

Webhooks#

No event type is new. These are the ones to handle:

EventWhen
merchant.updatedpayments_account.owner changed to merchant. previous_attributes.payments_account holds the old value.
merchant.readiness_updatedThe merchant connected, Stripe's view of the account changed readiness, the account disconnected, or it reconnected. Read GET /v1/merchant.
customer.created, customer.updatedImported customers, with origin: imported.
payment_method.activated, payment_method.archivedAn imported card, or a card detached in Stripe.
refund.*, payment_intent.*, order.*, dispute.*Changes made in Stripe on a Flint payment, with origin on the resource.

Test it in a sandbox#

Two sandbox helpers rehearse what's different. Both need a test key; a live key gets 403 FORBIDDEN with reason test_mode_required. Both accept an optional Idempotency-Key.

Simulate a disconnect and reconnect#

POST /v1/merchant/simulate puts the sandbox in the state a disconnected account is in. It needs merchants.profile.write.

cURL
curl -X POST https://api.withflintpay.com/v1/merchant/simulate \
  -H "Authorization: Bearer YOUR_TEST_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "outcome": "payment_account_disconnected" }'
JSON
{
  "data": {
    "merchant_id": "mer_1kmn0aExample",
    "payments_account": { "owner": "flint" },
    "readiness": {
      "payments": {
        "status": "blocked",
        "status_reason": "payment_account_disconnected",
        "next_actions": [{ "action_type": "reconnect_payments_account", "owner": "merchant" }]
      }
    }
  }
}

The response is the merchant, and Flint sends merchant.readiness_updated. Until you reconnect, payment requests in this sandbox fail with 409 MERCHANT_NOT_READY and reason payment_account_disconnected, and subscription collections that come due wait with billing_hold.reason: payment_account_disconnected. Check that your integration:

  1. Reads GET /v1/merchant when merchant.readiness_updated arrives, and shows the merchant the reconnect step.
  2. Stops sending payment requests, and doesn't retry the MERCHANT_NOT_READY refusals.
  3. Shows held subscriptions as waiting on the store, not as failed payments.

Then send { "outcome": "payment_account_reconnected" }. Readiness returns to what it was before the simulated disconnect, held subscription collections resume, and Flint sends merchant.readiness_updated again. Sending an outcome that already holds returns the merchant unchanged and sends no event.

Simulate an imported card#

POST /v1/payment-methods/simulate creates a real test card on the sandbox's account, through the same importer that imports a merchant's Stripe cards. It needs payments.payment_methods.write. The customer must be active, belong to this sandbox, and have an email address, because the buyer unlocks the card at checkout with an email code.

cURL
curl -X POST https://api.withflintpay.com/v1/payment-methods/simulate \
  -H "Authorization: Bearer YOUR_TEST_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: import-card-ada-1" \
  -d '{
    "outcome": "imported",
    "customer_id": "cus_1kmn0aExample",
    "card_brand": "visa"
  }'
JSON
{
  "data": {
    "payment_method_id": "pm_1kmn0aExample",
    "customer_id": "cus_1kmn0aExample",
    "type": "card",
    "status": "active",
    "usage": "off_session",
    "origin": "imported",
    "consent": null,
    "card": { "brand": "visa", "last4": "4242", "exp_month": 12, "exp_year": 2034 }
  }
}

card_brand is visa, mastercard, amex, or discover, and defaults to visa. The response is 201, and Flint sends payment_method.activated. Charge the card with customer_presence: absent, or open a checkout for the customer to see the email unlock.

  • HTTP 400
    param names the field: outcome is missing or not imported, customer_id isn't a customer ID, or card_brand isn't one of the four brands.
  • HTTP 403
    Reason test_mode_required: the credential is a live key. Use a test key for the sandbox.
  • HTTP 404
    No active customer with that ID in this sandbox. param is customer_id.
  • HTTP 409
    The customer has no email address. Add one with PATCH /v1/customers/{customer_id}, then retry.
  • HTTP 409
    Reason payment_account_disconnected: a simulated disconnect holds in this sandbox. Send payment_account_reconnected to POST /v1/merchant/simulate first.

If a request times out, retry it with the same Idempotency-Key and body to get the card it created.

What a sandbox can't show#

A sandbox always reports payments_account.owner as flint, including after POST /v1/merchant/simulate. The helper simulates a disconnected account, not a merchant-owned one, so the managed_externally refusals can't be produced in a sandbox. Test that branch against the error shape above with a stub in your own tests, and key it on payments_account.owner and details[0].reason.

How Flint uses StripeWho owns each kind of Stripe account, and who can pause payments or hold payouts.Going liveRead readiness, follow next actions, and know when live payments work.Save a card and charge it laterCharge saved and imported cards with or without the customer present.Disputes and chargebacksBuild a dispute queue from webhooks and track each case to its outcome.TestingTest cards, simulated outcomes, and what each sandbox can show.

Was this helpful?