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.
Tell which account a merchant runs on#
Read payments_account.owner on GET /v1/merchant:
curl https://api.withflintpay.com/v1/merchant \
-H "Authorization: Bearer YOUR_API_KEY"
{
"data": {
"merchant_id": "mer_1kmn0aExample",
"business_name": "Harbor Coffee Roasters",
"payments_account": { "owner": "merchant" }
}
}
owner | Meaning |
|---|---|
flint | Flint 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. |
merchant | The 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.
ownermoves fromflinttomerchantwhen the merchant finishes connecting, which is possible only before their first live payment. It doesn't change back. The change advances the merchant'sversionand sendsmerchant.updatedwithprevious_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:
| Area | Operations |
|---|---|
| Balances | GET /v1/balances |
| Payouts | GET /v1/payouts, POST /v1/payouts, GET /v1/payouts/{payout_id}, POST /v1/payouts/{payout_id}/cancel |
| Payout settings | GET /v1/payout-settings, PATCH /v1/payout-settings |
| Payout destinations | GET /v1/payout-destinations, GET, PATCH, and DELETE /v1/payout-destinations/{payout_destination_id} |
| Dispute responses | POST /v1/disputes/{dispute_id}/response-sessions, POST /v1/disputes/{dispute_id}/accept |
| Verification | POST /v1/merchant-account-sessions, POST /v1/merchant-account-session-refreshes, POST /v1/onboarding/access-links, POST /v1/onboarding/advance |
| In-person payments | GET 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:
{
"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-transactionslists 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/disputeslists every dispute on a Flint payment with its status and deadline.supported_actionsis empty,can_respond_with_evidenceisfalse, andresponse_unavailable_reasonismanaged_externally.is_action_requiredstaystruewhile 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.
readinessonGET /v1/merchantreflects 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:
| Field | What it holds |
|---|---|
processing_fee_money | Flint'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_money | Stripe'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_money | captured_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. |
{
"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 reports | readiness.payments | next_actions |
|---|---|---|
| Charges and payouts enabled | ready | None |
| Stripe asks for information, payments still on | ready, with upcoming_block_reason and upcoming_block_at when Stripe sets a deadline | open_provider_dashboard |
| Stripe turned charges off for missing information | blocked, requirements_due or requirements_past_due | open_provider_dashboard |
| Stripe is reviewing the account | pending, pending_verification | None |
| Stripe rejected the account | blocked, account_rejected | open_provider_dashboard |
| The account is disconnected | blocked, payment_account_disconnected | reconnect_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 nourland nomerchant_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:
{
"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_READYwithdetails[0].reasonset topayment_account_disconnected,retry: none, anderror_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 itspayaction unavailable withunavailable_reason: store_unavailable. If you build your own checkout, read the open session with its checkout credential:problems[]includespayment_account_disconnectedwithblocks_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/mereturnbilling_hold.reason: payment_account_disconnectedtoo, 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:
| Resource | origin values | Notes |
|---|---|---|
| Payment intent | flint | Always flint, even after a capture made in Stripe. |
| Refund | flint, provider_dashboard | provider_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. |
| Dispute | flint | The buyer's bank opens every dispute. flint means Flint recorded it on its own payment. |
| Customer | flint, imported | imported is a customer Flint imported from the merchant's Stripe account. Filter with GET /v1/customers?origin=imported. |
| Payment method | imported, or omitted | imported is a saved card imported from the merchant's Stripe account, or migrated from another processor account. Other cards omit the field. |
| Order activity | provider_dashboard, or omitted | Present 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.createdwithorigin: imported, one event per customer. - Each imported card sends
payment_method.activated. It isactivewithusage: off_session,origin: imported, andconsent: 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:
| Event | When |
|---|---|
merchant.updated | payments_account.owner changed to merchant. previous_attributes.payments_account holds the old value. |
merchant.readiness_updated | The merchant connected, Stripe's view of the account changed readiness, the account disconnected, or it reconnected. Read GET /v1/merchant. |
customer.created, customer.updated | Imported customers, with origin: imported. |
payment_method.activated, payment_method.archived | An 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 -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" }'
{
"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:
- Reads
GET /v1/merchantwhenmerchant.readiness_updatedarrives, and shows the merchant the reconnect step. - Stops sending payment requests, and doesn't retry the
MERCHANT_NOT_READYrefusals. - 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 -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"
}'
{
"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.
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.