Skip to content

ACH debit payments

ACH debit lets a US buyer pay once, in USD, straight from a checking or savings account. The buyer verifies the account instantly, accepts a debit authorization, and the money arrives a few business days later. In Flint it's the ach_debit payment option on the same PaymentIntent, order, Refund, and Dispute resources you use for cards, and it sends the same webhooks.

Plan for two differences from a card:

  • Payment is final days after the buyer finishes. The payment sits in processing until the buyer's bank settles or rejects the debit. A finished checkout or a processing status means the debit was submitted, not that you were paid.
  • A settled payment can still be pulled back. The buyer's bank can return a debit after it settles. Flint reports that as a Dispute with case_type bank_return, and there's nothing to contest.

Every ACH debit is one-time and on-session, with automatic capture and instant bank verification. Flint doesn't save the bank account for later charges, and it doesn't offer microdeposit verification, so a buyer whose bank can't verify instantly needs another option. Offer card beside it.

How an ACH payment flows#

ACH debit paymentResponse
BrowserYour backendFlintBuyer's bankcreate the PaymentIntent with ach_debit and transaction_purposepayment_collection with the bank verification optionsthe buyer verifies the bank, accepts the authorization, and Stripe.js creates a ConfirmationTokenctoken_...POST /confirm with the tokensubmits the debitstatus processing, and payment_intent.processingsettles or rejects the debit, days laterpayment_intent.succeeded or payment_intent.payment_failed
  1. Your backend sends create the PaymentIntent with ach_debit and transaction_purpose to Flint
  2. Flint returns payment_collection with the bank verification options to Your backend
  3. Browser sends the buyer verifies the bank, accepts the authorization, and Stripe.js creates a ConfirmationToken to Browser
  4. Browser sends ctoken_... to Your backend
  5. Your backend sends POST /confirm with the token to Flint
  6. Flint sends submits the debit to Buyer's bank
  7. Flint returns status processing, and payment_intent.processing to Your backend
  8. Buyer's bank sends settles or rejects the debit, days later to Flint
  9. Flint sends payment_intent.succeeded or payment_intent.payment_failed to Your backend

Flint Checkout, payment links, and the hosted invoice page run this whole sequence for you. A checkout you build on an embedded checkout session follows it through the order, as Your own checkout describes. A PaymentIntent you create and confirm yourself follows it step by step, as in Accept an ACH payment on your own page.

Turn on ACH debit#

ACH debit is off by default. Turn it on once in each environment: check Bank account (ACH Direct Debit) in Settings > Checkout in the dashboard, or add ach_debit to your checkout payment options over the API:

cURL
curl -X PATCH https://api.withflintpay.com/v1/settings \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"checkout": {"enabled_payment_options": ["card", "ach_debit"]}}'

For invoices, add ach_debit to invoices.payment_policy.enabled_payment_options instead. payment_policy is replaced as a whole, so send every field of it you want to keep.

The environment's payment account must be set up first, and it must be a US account. Otherwise the change fails with 409 PAYMENT_OPTION_UNAVAILABLE: reason requirements_due until account setup is done, or payment_option_not_available for an account outside the US. The error's next action points to GET /v1/merchant.

Saving the setting asks the payment processor to enable bank debits for that environment. Sandbox and live are separate environments, so turn ACH on in each. Activation usually completes on its own. Buyers are offered ACH only once it has:

Warning:

Buyers see only card until accept_ach_debit_payments is ready in readiness.capabilities on GET /v1/merchant. Check it after you turn ACH on, in each environment you use.

cURL
curl https://api.withflintpay.com/v1/merchant \
  -H "Authorization: Bearer YOUR_API_KEY"

Find the entry whose capability is accept_ach_debit_payments in readiness.capabilities:

status on capability readiness
  • not_requested
    ACH debit is off, or Flint hasn't sent the activation request yet. Turn it on. If it's already on, read again in a minute.
  • pending
    The payment processor is reviewing the request. Wait; buyers aren't offered ACH yet.
  • blocked
    Something must be resolved first. status_reason says what, and each entry in next_actions names its owner. With requirements_due, collect the missing details in a merchant account session. With capability_not_active, contact Flint support.
  • not_available
    ACH debit isn't available for this account, or Flint couldn't read its state. Read status_reason, and contact Flint support if it persists.
  • ready
    Activation is complete. Buyers are offered ACH wherever the eligibility rules allow it.

To request ACH while a new merchant is onboarding, include accept_ach_debit_payments in requested_capabilities when you advance onboarding.

Turning ACH debit off stops offering it to buyers. The account keeps its activation, so turning it back on takes effect right away. Debits already processing still settle, fail, return, and refund as usual.

Eligibility#

Flint checks every payment on its own. ACH debit is offered only where all of these hold:

Ruledetails[0].reason when it fails
The currency is USD.currency_not_supported
The amount is within the limits for the surface.amount_out_of_range
Capture is automatic. ACH isn't offered with capture_method manual.manual_capture_not_supported
No line item on the order tracks inventory. A debit stays unresolved for days, and Flint doesn't hold stock that long, so an order with a tracked line item is card only.bounded_inventory_guarantee_not_supported
The payment is one-time and the buyer is present. Subscriptions, invoice autopay, and other off-session charges don't offer ACH.recurring_not_supported, recurring_ach_not_supported, or off_session_not_supported
The surface supports bank debits. Virtual terminal doesn't.source_delayed_settlement_not_supported
Flint can tell why the money is being taken. See Transaction purpose.transaction_purpose_unresolved

Where ACH isn't eligible, Flint Checkout, payment links, and the hosted invoice page leave the bank option out and show the other options. A request that asks for ACH anyway fails with PAYMENT_OPTION_UNAVAILABLE, and details[0].reason names the rule.

Amount limits#

The minimum is $1.01, so that the $1.00 minimum processing fee stays below the payment. The maximum depends on where the payment is collected:

SurfaceWhere you turn ACH onMaximumHighest limit Flint can approve
A PaymentIntent you createpayment_options on the request$100,000.00$100,000.00
Checkout session, hosted or embeddedpayments.enabled_payment_options, or your checkout settings$50,000.00$100,000.00
Payment linkYour checkout settings$25,000.00$50,000.00
InvoiceThe invoice's payment_policy.enabled_payment_options$100,000.00$100,000.00

Limits you set in payment_limits on PATCH /v1/settings can narrow this range but not widen it. To go above the maximum, ask Flint support to approve a higher limit, up to the last column.

A PaymentIntent outside the range fails at create with 409 PAYMENT_OPTION_UNAVAILABLE, reason amount_out_of_range, and param amount_money.amount. When the amount is too high, details[0].maximum_money carries the limit, and the message says whether your own limit or Flint's set it. Collecting an invoice whose balance is over the limit fails with 409 PAYMENT_OPTION_UNAVAILABLE and the same reason.

Transaction purpose#

Every bank debit records why the money is being taken: goods, services, or other.

A PaymentIntent you create declares it in transaction_purpose. It's required when payment_options includes ach_debit, rejected otherwise, and fixed once the payment intent exists.

An order derives it from its line items:

  • goods when any line item is sold from a product whose product_type is physical or digital.
  • services when at least one line item is a service product and every other line item is a service or fee product.
  • other for a donation payment link.

Anything else can't take ACH: an order with no line items, one made only of fee products, or one with a custom line item, which has no product type, and no physical or digital product beside it. When the buyer reaches the payment step, Flint refuses ACH on that order with 409 PAYMENT_OPTION_UNAVAILABLE and reason transaction_purpose_unresolved. Sell those items from catalog products with a product_type, or don't offer ach_debit for that order.

Turn on ach_debit in the session's payments.enabled_payment_options, or leave the field out to inherit your checkout settings:

cURL
curl -X POST https://api.withflintpay.com/v1/checkout-sessions \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: checkout-ord-1kmn0aExample" \
  -d '{
    "type": "order",
    "order_id": "ord_1kmn0aExample",
    "payments": {"enabled_payment_options": ["card", "ach_debit"]},
    "buyer_fields": {"require_email": true},
    "redirects": {"success_url": "https://shop.example.com/orders/1042/thanks"}
  }'

When the order is eligible, Flint Checkout offers a bank account tab. It collects the buyer's name and email, runs instant bank verification, shows the debit authorization, and submits the debit.

The buyer then sees a receipt stamped "Processing", under a heading such as "Your $25.00 bank payment to Example Shop is processing". It tells them bank payments take a few business days to clear, that the receipt will be emailed when the payment clears, and that they can close the checkout. Flint Checkout doesn't send the buyer to redirects.success_url while the payment is processing, because that page is for a paid order.

A payment link uses your checkout settings and the same flow. A link checkout whose payment is still processing hasn't completed the link yet.

Invoices#

The hosted invoice page and invoice checkout sessions offer ACH when the invoice's payment_policy.enabled_payment_options includes ach_debit. With show_cost_comparison, the invoice also shows the buyer what they'd save by paying from their bank instead of by card.

When the buyer pays by bank, the invoice payment attempt carries rail ach_debit and stays processing until the debit settles or fails. Follow invoice_payment_attempt.settled or invoice_payment_attempt.failed. Pay from the hosted invoice covers the attempt.

Your own checkout#

A checkout you build on an embedded checkout session offers ACH through the order, the same way it offers card. Turn on ach_debit in the session's payments.enabled_payment_options, or leave the field out to inherit your checkout settings. Then:

  • Mount the Payment Element from the order's payment_collection, read with the checkout credential. Bank verification and the debit authorization run inside it.
  • Create the ConfirmationToken with the buyer's billing name and email, as in step 3 below.
  • Pay with POST /v1/orders/{order_id}/pay. The payment attempt stays processing until the bank answers, and it isn't resumable meanwhile. Show the buyer that the payment is processing, and don't start another payment for the order: a second pay call returns 409 PAYMENT_ATTEMPT_ACTIVE.
  • Fulfill from order.paid, never from the pay response.

ACH needs no payment_return_url, because the buyer never leaves your page. The same steps work for an invoice checkout session created with "surface": "embedded". Build your own checkout walks through the order flow.

Accept an ACH payment on your own page#

This flow builds on Server-confirmed payments: your backend creates the PaymentIntent, the browser collects the bank account with Stripe Elements, and your backend confirms through Flint.

  1. Create the PaymentIntent#

    Name ach_debit in payment_options and declare the transaction purpose.

    cURL
    curl -X POST https://api.withflintpay.com/v1/payment-intents \
      -H "Authorization: Bearer YOUR_API_KEY" \
      -H "Content-Type: application/json" \
      -H "Idempotency-Key: ach-order-1042" \
      -d '{
        "amount_money": {"amount": 183600, "currency": "USD"},
        "payment_options": ["card", "ach_debit"],
        "transaction_purpose": "goods",
        "receipt_email": "ada@example.com"
      }'
    
    Response
    {
      "data": {
        "payment_intent_id": "pi_1kmn0aExample",
        "status": "requires_payment_method",
        "amount_money": {"amount": 183600, "currency": "USD"},
        "capture_method": "automatic",
        "payment_options": ["card", "ach_debit"],
        "transaction_purpose": "goods",
        "supported_actions": ["confirm", "cancel"],
        "payment_collection": {
          "stripe": {
            "account_id": "acct_Example",
            "publishable_key": "pk_test_Example",
            "elements": {
              "next_step": "create_confirmation_token",
              "submit_to": "confirm_payment_intent",
              "mode": "payment",
              "amount_money": {"amount": 183600, "currency": "USD"},
              "payment_method_types": ["card", "us_bank_account"],
              "payment_method_creation": "manual",
              "payment_method_options": {
                "us_bank_account": {
                  "verification_method": "instant",
                  "financial_connections": {"permissions": ["payment_method"]}
                }
              }
            }
          }
        }
      }
    }
    

    payment_collection.stripe carries everything the browser needs: the publishable key, the connected account_id, and the Elements options, including the bank verification options Flint confirms with.

  2. Mount Elements from the collection bootstrap#

    Initialize Stripe.js for the returned account and build Elements from payment_collection.stripe.elements as returned. Pass payment_method_options through whole: Stripe requires the options the browser collected with to match the ones Flint confirms with, so a rebuilt or trimmed object fails at confirmation.

    JavaScript
    const response = await fetch("/api/payment-intents/ach", {method: "POST"});
    if (!response.ok) throw new Error("Could not create the payment.");
    
    const {data} = await response.json();
    const collection = data.payment_collection.stripe;
    const stripe = Stripe(collection.publishable_key, {
      stripeAccount: collection.account_id,
    });
    
    const elements = stripe.elements({
      mode: collection.elements.mode,
      amount: collection.elements.amount_money.amount,
      currency: collection.elements.amount_money.currency.toLowerCase(),
      paymentMethodCreation: collection.elements.payment_method_creation,
      paymentMethodTypes: collection.elements.payment_method_types,
      paymentMethodOptions: collection.elements.payment_method_options,
    });
    
    elements.create("payment", {layout: "tabs"}).mount("#payment-element");
    

    When the buyer picks the bank tab, the Payment Element runs instant verification and shows the debit authorization. You don't build either.

  3. Create the ConfirmationToken with the buyer's name and email#

    After elements.submit(), create the token with the buyer's billing name and email. A bank debit requires both, and the debit authorization is emailed to that address. Send only the token ID to your backend.

    JavaScript
    const {error: submitError} = await elements.submit();
    if (submitError) throw submitError;
    
    const {error, confirmationToken} = await stripe.createConfirmationToken({
      elements,
      params: {
        payment_method_data: {
          billing_details: {
            name: buyer.name,
            email: buyer.email,
          },
        },
      },
    });
    if (error) throw error;
    
    await sendTokenToYourBackend(confirmationToken.id);
    

    Create the token without setupFutureUsage. Flint doesn't save bank accounts, so a token created to save one is refused at confirm.

  4. Confirm from your backend#

    cURL
    curl -X POST https://api.withflintpay.com/v1/payment-intents/pi_1kmn0aExample/confirm \
      -H "Authorization: Bearer YOUR_API_KEY" \
      -H "Content-Type: application/json" \
      -H "Idempotency-Key: ach-confirm-1042" \
      -d '{"credential_type": "stripe_confirmation_token", "stripe": {"confirmation_token": "ctoken_Example"}}'
    
    Response
    {
      "data": {
        "payment_intent_id": "pi_1kmn0aExample",
        "status": "processing",
        "selected_payment_option": "ach_debit",
        "payment_source": {
          "type": "ach_debit",
          "ach_debit": {"bank_name": "STRIPE TEST BANK", "last4": "6789", "account_type": "checking"}
        },
        "transaction_purpose": "goods",
        "supported_actions": []
      }
    }
    

    Flint submits the debit and answers processing. From here on, payment_source.ach_debit shows the bank account the buyer chose.

    Confirm through Flint only. Don't call a processor confirmation API from the browser.

    Confirm refuses the token with 400 INVALID_REQUEST and param stripe.confirmation_token when:

    • It has no billing name or no billing email (detail code INVALID_VALUE).
    • It lacks the buyer's online acceptance of the debit authorization, which happens when the bank account wasn't collected through the Payment Element (INVALID_VALUE).
    • It was created to save the bank account (NOT_ALLOWED).

    Collect again and create a new token.

While the payment is processing#

ACH debit payment lifecycleFinal
  • requires_payment_method moves to processing on confirm
  • requires_payment_method moves to canceled on cancel
  • processing moves to succeeded on the bank settles
  • processing moves to requires_payment_method on the bank rejects
  • succeeded on bank return: arrives as a Dispute
statusWhat it meansWhat to do
requires_payment_methodNo bank account was collected yet, or the bank rejected the last debit.If last_payment_error is set, read it and collect again with a new token.
processingThe debit was submitted and the bank hasn't answered.Keep the order unfulfilled. Wait for a webhook, or read the payment again.
succeededThe bank settled the debit.Fulfill once, from the webhook or this read.
canceledThe payment was canceled before a debit was submitted.Stop collecting.

A processing payment can't be canceled or changed. supported_actions is empty, and the refusals are:

  • Canceling or updating a PaymentIntent you created returns 409 ACTION_NOT_ALLOWED with reason in_progress. details[0] names the payment intent in resource_type and resource_id, with current_status processing.
  • Canceling an order payment attempt that's waiting on the debit returns the same refusal.

The order isn't paid while the debit is processing, and Flint holds its payment collection until the outcome is known. To give money back after the debit settles, refund it.

Warning: Fulfill on success, never on processing

A finished checkout, a pay response, and a processing status all mean the same thing: the debit was submitted. Fulfill from payment_intent.succeeded, or from order.paid for an order, and from nothing earlier.

Webhooks#

ACH adds no event types. payment_intent.processing matters more than it does for a card, because it's the last event you receive for days:

  1. What happens: You confirm with a bank account
  2. Flint sends: payment_intent.processing
    The debit was submitted. Nothing is paid yet.
  3. Flint sends: invoice_payment_attempt.processing
    Invoices only. The collection attempt is waiting on the bank.
  4. What happens: The bank settles the debit
  5. Flint sends: payment_intent.succeeded
    The payment settled, and processing_fee_money is final.
  6. Flint sends: invoice_payment_attempt.settled
    Invoices only. The collection attempt completed.
  7. Flint sends: order.paid
    Checkout sessions, hosted or embedded, and payment links. The order is fully paid.
  8. What happens: The bank rejects the debit
  9. Flint sends: payment_intent.payment_failed
    Carries last_payment_error.
  10. Flint sends: invoice_payment_attempt.failed
    Invoices only. The collection attempt failed.
  11. What happens: The buyer's bank returns a settled payment
  12. Flint sends: dispute.created
    A Dispute with case_type bank_return.
  13. Flint sends: dispute.lost
    Sent with dispute.created. The case is final when it arrives.

Refunds send the usual refund.* events. Webhooks covers signature checks and durable delivery.

Failures and retries#

When the bank rejects a debit before it settles, the PaymentIntent returns to requires_payment_method with last_payment_error set. Its code is a Flint code, not a bank return code:

last_payment_error.codeMeaning
insufficient_fundsThe account couldn't cover the debit.
bank_account_closedThe account is closed.
bank_account_not_foundNo account matched the details.
bank_debit_not_authorizedThe account holder didn't authorize the debit.
bank_account_restrictedThe account can't accept this debit.
bank_debit_limit_exceededThe debit was over the account's limit.
payment_failedThe bank gave a reason Flint doesn't map to one of these.

The failed attempt is finished. To try again, collect a bank account or card with a new ConfirmationToken and confirm again. Whether to offer the bank option a second time is up to you: Flint doesn't change payment_options after a failure. Declines and payment attempts covers retries on an order.

Bank returns#

A payment that settled and is pulled back later is a bank return. Flint reports it with the same Dispute resource as a card chargeback:

  • case_type is bank_return and payment_option is ach_debit.
  • reason is insufficient_funds, debit_not_authorized, bank_account_not_found, or other.
  • status is lost when it arrives. can_respond_with_evidence and is_action_required are false, evidence_due_at is null, and response_unavailable_reason is bank_return_not_contestable.

There's no evidence to submit and no outcome to influence. The returned money has already left your balance, so collecting again means a new payment from the buyer. Route these cases to accounting and buyer outreach rather than your evidence queue, and filter on case_type so they never look like work waiting on a deadline. Bank returns in the disputes guide has the full shape.

Refunds#

Refund an ACH payment with POST /v1/refunds, as you would a card. Full and partial refunds both work, and a refund doesn't return the processing fee. Refunds are funded from your available balance.

A bank return reduces what remains refundable, just as a refund would. After a full return there's nothing left, so a refund fails with 409 ACTION_NOT_ALLOWED and reason payment_disputed. Flint handles a refund and a return one at a time, so the same money can't go back twice. Treat payment_disputed, either as that refusal or as a refund's failure_reason, as the buyer already having the money back through their bank. ACH returns and refunds covers each case.

Fees#

ACH debit is priced as a percentage of the payment with a $1.00 minimum fee and no fixed amount. The percentage depends on your plan; see Processing fees. Because settlement is delayed, so is the fee: processing_fee_money is final when the payment succeeds, not when you confirm it. A payment that fails or is canceled before it succeeds has no processing fee.

Three bank-debit events carry an event fee instead. Event fees are charged to your merchant account, not deducted from the payment:

EventFee
The buyer's bank account is verified at collection$1.50
The debit fails after Flint submits it to the bank$4.00
A settled payment is returned$15.00

A payment that fails before Flint submits it to the bank carries no failure fee.

Test in a sandbox#

Bank debits in test mode use routing number 110000000. Pick the account number for the outcome you need:

Account numberOutcome
000123456789Succeeds.
000222222227Fails for insufficient funds.
000111111113Fails because the account is closed.
000111111116Fails because no account exists.
000333333335Fails because the debit isn't authorized.
000555555559Succeeds, then creates a bank return.
000000000009Stays processing.

Sandbox bank accounts verify instantly. Microdeposit account numbers and verification codes do nothing, because Flint doesn't offer microdeposit verification. Use 000000000009 to check that a processing payment leaves the order unpaid and can't be canceled, and that your integration fulfills only after payment_intent.succeeded or order.paid. Testing lists these beside the test cards.

Errors#

  • HTTP 400
    param transaction_purpose: payment_options includes ach_debit and the purpose is missing (REQUIRED) or isn't goods, services, or other (INVALID_VALUE), or you sent a purpose without ach_debit (NOT_ALLOWED).
  • HTTP 400
    param stripe.confirmation_token: the token has no billing name or email, or no online acceptance of the debit authorization (INVALID_VALUE), or it was created to save the bank account (NOT_ALLOWED). Collect again through the Payment Element and create a new token.
  • HTTP 409
    ACH debit isn't available for this payment or account. details[0].reason names the eligibility rule or the account blocker, and details[0].capability is accept_ach_debit_payments. With reason amount_out_of_range, the amount is under $1.01 or over the limit: offer card, or ask support to approve a higher limit.
  • HTTP 409
    Reason transaction_purpose_unresolved: the order's line items don't show whether the sale is goods or services. Sell them from catalog products with a product_type, or collect without ACH.
  • HTTP 409
    On PATCH /v1/settings: ACH debit can't be turned on yet. Reason requirements_due means the environment's payment account isn't set up; payment_option_not_available means the account isn't in the US. On an invoice collection, reason amount_out_of_range means the balance is over the limit.
  • HTTP 409
    Reason in_progress: you tried to cancel or update a payment whose debit is processing. Wait for the outcome, then refund if needed. Branch on reason, and use current_status for a reason you don't recognize. See Refused actions.
  • HTTP 409
    On POST /v1/refunds: reason payment_disputed means a bank return took the settled money back; reason already_applied means earlier refunds used up what was left.

Go-live checklist#

  • ach_debit is in the payment options of each live surface you use: checkout settings for checkout sessions and payment links, the payment policy for invoices, and payment_options for PaymentIntents you create.
  • accept_ach_debit_payments is ready in live. Turning ACH on in a sandbox doesn't carry over.
  • Every PaymentIntent with ach_debit declares transaction_purpose, and orders that offer ACH are sold from catalog products with a product_type.
  • Your checkout sends a billing name and email with every bank debit.
  • Fulfillment waits for order.paid or payment_intent.succeeded, never a redirect, a pay response, or processing.
  • Your webhook endpoint subscribes to the processing, success, failure, dispute, and refund events above.
  • Support and accounting know that a successful ACH payment can be returned later, and where bank returns show up.
  • If you turn ach_debit off later, keep the webhook endpoint live: debits already processing still settle, fail, return, and refund.

API calls#

Server-confirmed paymentsThe collect-and-confirm flow ACH builds on, with recovery after lost responses.Build your own checkoutACH in an embedded checkout session.Handling disputesThe bank return case beside card chargebacks.
  • Refunds: refunds against a returned payment.
  • Processing fees: the ACH rate on each plan, and event fees.
  • Invoicing: ACH on the hosted invoice page.
  • Testing: sandbox bank accounts beside the test cards.
  • Webhooks: durable delivery of the events above.

Was this helpful?