Skip to content

Payments

On Flint, a payment usually belongs to an order. Submit the buyer's payment method to /v1/orders/{order_id}/pay and Flint creates and pays a payment intent for the full balance in one request. Each payment intent records one payment from a buyer: the amount requested, what the processor authorized and captured, what it cost to process, and what was later refunded or disputed.

Payment collection guidance and payment client actions carry a required nullable stripe.account_id. When it is a connected account ID, pass it as stripeAccount while initializing Stripe.js. For a payment with splits, it is null: initialize Stripe.js with publishable_key alone and omit stripeAccount before creating its confirmation token or completing authentication.

Payments from a shop checkout report payment_flow: "shop". Filter GET /v1/payment-intents by payment_flow=shop to list them. Shop checkouts use the payment link limits in settings.payment_limits.

Choose how to collect#

  • The order's full balance. Send action: "pay" to POST /v1/orders/{order_id}/pay, and Flint creates the payment intent. Hosted checkout, an embedded form, and your own UI all pay this way.
  • Split tender, a partial payment, or a hold on an order. Create one leg per payment with POST /v1/payment-intents and order_id, then confirm the legs together with action: "confirm_payment_intents".
  • One amount, with the sale recorded in your own system. Create a standalone payment intent with POST /v1/payment-intents, and confirm it with POST /v1/payment-intents/{payment_intent_id}/confirm.

Prefer an order when Flint should compute line items, tax, discounts, or tips, or when you need hosted pages, invoices, or refunds by line item. Why Flint is orders-first compares the two.

Order-owned and standalone payment intents#

A payment intent with an order_id belongs to that order, and the order decides its amount and how it's confirmed. A standalone payment intent has no order, so you set its amount and confirm it yourself. Both create routes return the payment intent flat in data, with the payment_collection your client uses to collect the buyer's payment details. Both are captured and canceled with POST /v1/payment-intents/{payment_intent_id}/capture and /cancel; for an order-owned one, Flint finds the order's payment attempt itself.

Order-owned#

  • Create it with POST /v1/payment-intents and order_id, which needs payments.payment_intents.write. Flint checks the leg against the order's outstanding balance at that moment.
  • Confirm a single covering leg with merchant credentials through POST /v1/payment-intents/{payment_intent_id}/confirm, using payments.payment_intents.write. Omit payment_source to continue its holding attempt. Several unpaid legs or selected gift cards require order pay; managed_by_owner names the owner command. A checkout credential can confirm its own session's legs through the same route, including invoice checkout legs. Other sessions' intents and standalone intents return 404 RESOURCE_NOT_FOUND. Checkout credentials cannot send save_payment_method; use order pay to save a buyer card.
  • Its amount never changes. If the order's balance changes after you stage a leg, cancel the leg and create a new one.
  • PATCH accepts only metadata and external_reference_id.
  • A GET never includes payment_collection. Read the order's payment_collection.stripe.elements.selectable_payment_intents, which lists the legs the buyer can still pay.
  • Sending a receipt sends the order's receipt.

Standalone#

  • Create it with POST /v1/payment-intents, which needs payments.payment_intents.write, and an explicit amount_money.
  • Confirm it with POST /v1/payment-intents/{payment_intent_id}/confirm. Only the confirm result carries current_payment_action, the client step the buyer has to finish, or null when there is none. Reads, lists, and webhooks leave it out.
  • PATCH can change amount_money while the status is requires_payment_method and before the first confirmation attempt. After that, create a new payment intent to collect a different amount.
  • A GET includes payment_collection while the status is requires_payment_method or requires_confirmation.
  • A receipt goes to receipt_email, or else to the customer's email. Send email to choose another recipient.

Status#

A payment intent ends in succeeded, canceled, or expired. A decline, a risk block before the payment is sent, failed authentication, or an ACH debit that fails before it succeeds sends it back to requires_payment_method with last_payment_error set, so the buyer can try another payment method. Refunds and disputes never change status; read refund_status and dispute_status for those.

A payment Flint couldn't accept ends canceled, for example when it was completed with a payment method other than the one Flint approved. It happens before Flint records any money on the payment, while it's requires_payment_method, requires_confirmation or requires_action. When Flint returns money for it, through a refund it creates or by releasing the authorization, cancellation_reason is "payment_returned", captured_money or released_money shows the money, and Flint writes no last_payment_error for it. Until Flint knows of money to return, for example while the charge is still processing, the payment intent has no cancellation_reason and last_payment_error.code is "payment_blocked". It moves to payment_returned once Flint finds money to return, and sends payment_intent.updated. If every charge ends without money and the payment can no longer be confirmed or captured by the time Flint finishes with it, captured_money becomes 0. Otherwise it stays absent, even if the payment can't be confirmed or captured later.

Payment intent statusStartFinal
  • requires_payment_method moves to requires_confirmation on interrupted
  • requires_payment_method moves to requires_action on 3D Secure
  • requires_payment_method moves to processing on confirm
  • requires_payment_method moves to requires_capture on manual capture
  • requires_confirmation moves to processing on confirm
  • requires_action moves to processing on buyer finishes
  • processing moves to succeeded on settles
  • requires_capture moves to succeeded on capture
  • requires_capture moves to canceled on cancel
  • requires_capture moves to expired on hold lapses
  • requires_payment_method moves to canceled on Flint can't accept it
  • requires_confirmation moves to canceled on Flint can't accept it
  • requires_action moves to canceled on Flint can't accept it
status on payment intent
Final values do not change again
  • requires_payment_method
    Waiting for payment details. Either nothing has been attempted, or the last attempt was declined, failed authentication, or was blocked, and last_payment_error says why. Collect another payment method and confirm again.
  • requires_confirmation
    Payment details are attached, but confirmation didn't finish, usually because it was interrupted. Call confirm with an omitted payment_source to confirm the attached source or continue the holding order payment attempt.
  • requires_action
    The buyer has to finish a step, such as 3D Secure. The confirm result's current_payment_action describes it for standalone payments and order legs. Confirming with an omitted payment_source returns it again or continues once the buyer is done. An order payment attempt also carries it in pending_actions.
  • processing
    Submitted, with the outcome not known yet. ACH debits stay here until the bank settles them, which takes a few business days. A card-present payment stays here while the reader collects the card and Flint captures it. You can cancel while it is waiting on the reader; other processing payments can't be canceled. Processing payments can't be updated. Keep the order unfulfilled until payment succeeds.
  • requires_capture
    A manual-capture hold is in place and nothing has been collected. Capture up to capturable_money, or cancel, before authorization_expires_at. See Manual capture.
  • succeededFinal
    Collected. captured_money is the amount. To return money, create a refund.
  • canceledFinal
    Canceled by you or by Flint, such as when an invoice is voided. You can cancel while supported_actions lists cancel, including a card-present payment waiting on a reader. cancellation_reason is payment_canceled when no specific reason was given. It stays absent while last_payment_error.code is payment_blocked and Flint has not identified money to return. A canceled hold is in released_money. Usually no money was collected. With cancellation_reason: "payment_returned", Flint couldn't accept the payment: money it collected is in captured_money. Flint returned it or tried to; the payment's payment_returned refund carries the outcome, including failed with failure_reason: refund_abandoned if Flint stopped trying.
  • expiredFinal
    A manual-capture hold reached authorization_expires_at without a capture, and the funds went back to the buyer.

Choose the next call from supported actions#

Every payment intent carries supported_actions, the actions its current state accepts: confirm, capture, and cancel, each a POST to /v1/payment-intents/{payment_intent_id}/{action}. Branch on this list rather than on status or ownership, and treat a value you don't recognize as an action you don't offer.

  • An action that isn't listed returns 409 ACTION_NOT_ALLOWED, with the current status and supported_actions in the error details.
  • A listed action can still be refused by something outside the payment intent: an open payment review, a concurrent payment attempt or a temporary merchant restriction.
  • Order legs list confirm when a single leg can start or their holding attempt can continue. Stored owner facts also shape cancel, so the list can change without a payment version change. Invoice payments list only cancel; subscription payments list none.
  • Buyer credentials always receive an empty list.

Sending a receipt isn't a lifecycle action, so supported_actions never lists it. POST /v1/payment-intents/{payment_intent_id}/send-receipt works only once the payment has succeeded, and returns the payment intent unchanged.

Payment outcomes#

A declined or blocked payment isn't an HTTP error. Every payment route returns 2xx with the resulting payment intent or payment attempt, so read status and last_payment_error from the body. last_payment_error is always present: null, or an object with code, message, failed_at, and remediation. A risk block before the payment is sent has code: "payment_blocked" and leaves the payment intent in requires_payment_method. A payment Flint couldn't accept after it was sent isn't a failure: it's canceled with cancellation_reason: "payment_returned", and its order payment attempt fails with status_reason: "payment_returned" and no last_payment_error. The response, a GET, and the payment_intent.* webhooks carry the same last_payment_error for the same failure.

An order payment refused for insufficient stock before an attempt exists returns 409 INVENTORY_INSUFFICIENT. If stock disappears after that check and Flint has created an attempt, the response is 200 with the attempt in status: "failed" and status_reason: "inventory_unavailable". Nothing is charged. The same Idempotency-Key replays the failed attempt; use a new key only after correcting the cart or stock. See Shortage details.

Read a payment intent's outcome covers when Flint sets, replaces, clears, and keeps the error, and the rest of that guide covers every decline code and what to tell the buyer.

Money on a payment#

amount_money is the amount requested, including any tip_money, and capturing never changes it. Once the payment is authorized, authorized_money equals amount_money (on a payment_returned cancel, the authorization Flint released) and, whenever the capture is at most the authorization, splits three ways:

FieldHolds
captured_moneyWhat was collected. Book revenue and print receipts from this.
capturable_moneyWhat is still on hold and can be captured
released_moneyWhat went back to the buyer without being charged, such as the remainder after a partial capture

An overcapture is the exception: capturable_money and released_money are zero, and captured_money is above authorized_money. captured_tip_money is the part of captured_money that is a tip.

refunded_money totals the refunds accepted against captured_money, including pending ones and value issued as store credit. On a payment intent canceled with payment_returned, captured_money is the money Flint collected and is returning, and refunded_money counts Flint's refund once the processor accepted it, so a refund Flint holds for review leaves captured_money above refunded_money. A payment intent that also has an accepted charge describes only that charge. How a hold works shows the split through a partial capture.

PaymentIntent.splits contains the current PaymentSplit children, using the same objects as their GET routes. It is always an array, empty for a payment without splits, and omitted from buyer and checkout bearer views. Child changes do not advance the payment intent's version or send payment_intent.updated.

A succeeded payment also carries what it cost. processing_fee_money is Flint's all-in processing fee, the complete price rather than a provider cost passed through. Invoice, subscription, and automatic tax fees are itemized in add_on_fees. A payment a partner app created with a platform fee carries it in platform_fee, apart from Flint's fees. merchant_net_money is captured_money minus all of them and each seller split commitment. Splits divide the collecting merchant's funds among sellers; this differs from split tender, where a buyer pays with several methods. Active and succeeded splits, and splits canceled as fully_reversed, commit their whole amount. Splits canceled as payment_not_completed or install_revoked commit nothing. A failed split commits only funds already taken back before failure; the remainder returns to the collecting merchant. Refunds do not reduce these commitments. The fee is final at card capture or ACH success, and refunds don't return or revise it. Payments that are canceled or fail before any money is collected have no fee. A payment intent canceled with payment_returned shows the fees charged on the returned charge at capture, once Flint has read them from the charge, and merchant_net_money is captured_money minus them. Flint returns that processing fee to your balance separately, so the payment intent's fee fields don't change.

The three fee fields are absent until Flint has determined and verified the fee. If Flint can't verify it when you read the payment intent, the fields are left out rather than shown unverified, so read the payment intent again later and never record a missing fee as zero. Processing fees explains how the fee is calculated.

Statement descriptor#

statement_descriptor is the text shown on the buyer's card or bank statement for this payment. It is read-only and null until the charge is created, and it stays null if the payment provider supplies none. Card payments return the descriptor the charge calculated. Bank and other payment methods return the text recorded for the charge.

The value is frozen when the charge is created, so changing payments.statement_descriptor affects later payments only. Banks can display the text differently.

Pay an order#

POST /v1/orders/{order_id}/pay starts or resumes a payment attempt on the order. Each action accepts only its own fields:

actionUse it to
payCharge the full outstanding balance with one payment_source. Omit payment_source only when the balance is zero.
confirm_payment_intentsConfirm the order-owned legs you staged, one entry per leg in payment_intents
setupSave a newly collected credential, in setup_payment_source, on a zero-balance order
resumeContinue an attempt with order_payment_attempt_id once the buyer finishes a pending action

Two fields guard against paying for something the buyer didn't review. expected_outstanding_money is the balance you showed; a checkout session credential must send it with every action except resume, and so must an API key or partner token when the order has an open checkout session. expected_version is the order's version, not a payment intent's. A mismatch returns 409 VERSION_CONFLICT even when the balance is unchanged. Starting a payment advances the order's version, so after a declined attempt, take the version from the order in the pay response before the buyer tries again.

<!-- docs-test {"scenario":"pay","status":200,"fixtures":{"order":2500},"card":"pm_card_visa","expect":{"data.order.payment_status":"paid","data.order_payment_attempt.status":"succeeded"}} -->

cURL
curl -X POST https://api.withflintpay.com/v1/orders/ord_01KF8M3Q7R2S4T6V8W0X2Y4Z6A/pay \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Idempotency-Key: pay-ord-1042-1" \
  -d '{
    "action": "pay",
    "payment_source": {
      "credential_type": "stripe_confirmation_token",
      "stripe": { "confirmation_token": "ctoken_1kmn0aExample" }
    },
    "expected_outstanding_money": { "amount": 2500, "currency": "USD" },
    "expected_version": 3
  }'

Every pay action accepts client_action_type (url or stripe) and payment_return_url. The default for a new confirmation is url; a continuation keeps its existing type. Open the returned Flint URL in a redirect, popup, or iframe. To use Stripe.js, explicitly send client_action_type: "stripe" and use the returned secret only with handleNextAction: it can also confirm the underlying payment with another card. Flint's API returns no Stripe client secret for a URL action, but Stripe's hosted 3DS2 authentication page receives it during the challenge, so the browser holds it then. If a payment is confirmed with a payment method Flint didn't approve, Flint doesn't count the charge and returns it to the buyer; the payment intent ends canceled with cancellation_reason: payment_returned. Each leg or setup action has its own URL when url is selected, expiring at the attempt's 30-minute cancel time. Completion names payment_intent_id for a payment and payment_method_id for setup, with exactly one subject key. See Handle 3D Secure for both return and message forms.

The attempt reports each leg's outcome. For requires_action, finish the pending action and continue each payment intent through confirm without payment_source. For a setup action, continue through order pay with action: "setup" and omit setup_payment_source, or resume the attempt. A checkout credential still uses the order's resume action. For processing, wait for events or read the attempt again. Flint resolves or applies the outcome without a merchant resume request, including operator reconciliation for exceptional unresolved outcomes. Money may already have moved, so don't start another payment. To recover a lost response, replay the original request with its own key. Flint returns the stored response, or recovers the same attempt if the request was interrupted, and never starts a second one. Pay replays omit URL tokens and Stripe secrets; read the attempt by ID to recover the current permitted action.

The Pay order reference lists every field, including saving the card for the buyer's next checkout. Declines and payment attempts covers attempt statuses, 3D Secure, and recovery.

Card-present payments#

Use payment_options: ["card_present"] to take a card or phone wallet tapped, inserted, or swiped on a reader. It must be the only option. Card-present payment intents have no payment_collection, accept no payment_return_url, and do not save the card. Checkout sessions, payment links, invoices, and subscriptions cannot offer this option.

For a standalone payment intent, confirm it with the reader credential:

Response
{
  "payment_source": {
    "credential_type": "reader",
    "reader_id": "rdr_01J00000000000000000000000",
    "tip": {
      "enabled": true
    }
  }
}

The reader must be an active smart reader or Tap to Pay reader in the same merchant and environment. Your credential also needs payments.readers.write. A reader takes one payment at a time. An offline smart reader returns ACTION_NOT_ALLOWED with reason reader_offline; a busy reader returns OPERATION_IN_PROGRESS. These refusals happen before presentation. Do not send buyer_ip_address or save_payment_method: true with a reader credential.

tip.enabled defaults to false. On a smart reader, true shows its tip screen before the card, using the merchant's tipping settings. It is refused on Tap to Pay readers, when the payment already has tip_money, or when the order has a requested tip. At authorization, Flint adds exactly the tip chosen on the reader to amount_money and records it in tip_money, so authorized_money still equals amount_money. For automatic capture, the payment stays processing until Flint captures the authorization and tip. A manual hold stays requires_capture; set or correct its tip at capture.

The payment's reader_id identifies where it is or was last presented. Once the card is read, selected_payment_option is card_present and payment_source.type is card. payment_source.card.card_present carries read_method, optional wallet, and cardholder_verification. Unrecognized values are other. The card-network fields application_name, application_id (EMV AID), and authorization_code are strings or null when absent or outside the supported shape. payment_method_id is absent because the card is not saved.

A decline returns payment state with last_payment_error, including incorrect_pin, pin_try_exceeded, or pin_required when applicable. On a smart reader, retry the same payment intent with a reader credential. For an order, the attempt can end with status_reason: "canceled_on_reader" when the buyer cancels, or "reader_unavailable" when the reader becomes unavailable before the card is read. Cancel through the existing payment intent or order payment attempt route.

Tap to Pay#

A Tap to Pay payment waits in requires_action. An order payment attempt also has is_resumable: true and one pending_actions entry with action_type: "card_presentment". For a standalone payment intent, the confirm result's current_payment_action carries the same action.

JSON
{
  "action_type": "card_presentment",
  "client_action": {
    "stripe": {
      "account_id": "acct_1Example",
      "publishable_key": "pk_test_Example",
      "terminal_payment_intent": {
        "client_secret": "pi_3Example_secret_Example",
        "stripe_terminal_sdk_call": "collect_and_confirm_payment_intent"
      }
    }
  }
}

Pass client_secret to the Stripe Terminal SDK's retrievePaymentIntent, then collect and confirm on the connected Tap to Pay reader with collectPaymentMethod and confirmPaymentIntent, or processPaymentIntent where the SDK provides it. The Terminal SDK ignores account_id and publishable_key. Exactly one of terminal_payment_intent, payment_intent, or setup_intent is present.

When the SDK finishes, send action: "resume" with the order_payment_attempt_id to the order's pay route and a new idempotency key. For a standalone payment intent, confirm again with an omitted payment_source. Flint reads the outcome: an authorization or capture applies the result, and processing moves the payment and attempt to processing. If no card was presented or the card was declined, they stay requires_action, with the same client secret and the decline in the payment intent's last_payment_error. The app can collect another card on that payment.

A decline does not fail a Tap to Pay attempt. To give up, cancel through Flint; Flint cancels the provider payment before ending the attempt. The attempt's 30-minute window does the same when it expires. Client authority is available only within 24 hours of the original request and while the payment or attempt still requires action. Lists and webhooks never include it.

Versions#

Every payment intent has a version, a positive integer that starts at 1 and increases with each committed change. Your updates, confirmations, captures, and cancellations advance it, and so do changes Flint records from the processor or another resource, such as a status change, a refund, or a dispute. A payment intent summary expanded on an order, refund, or checkout session carries the payment intent's own version, which the containing resource's version doesn't cover.

Send the version you read as expected_version on PATCH /v1/payment-intents/{payment_intent_id} or on confirm, capture, or cancel to refuse the write if the payment intent changed since. To capture part of a hold only if nothing changed since you read version 4:

<!-- docs-test {"scenario":"versioned-capture","status":200,"request":{"method":"POST","path":"/v1/payment-intents/pi_1kmn0aExample/capture"},"fixtures":{"payment":{"amount":12900,"capture":"manual","confirm":true}},"expect":{"data.status":"succeeded","data.captured_money.amount":4000}} -->

JSON
{ "expected_version": 4, "amount_money": { "amount": 4000, "currency": "USD" } }

Flint checks the version before it contacts the processor and holds the payment intent until the processor answers, so a fenced capture or cancel never runs against a state you didn't read. Because processor events advance the version, a payment intent in active use can change between your read and your write. On a conflict, read it again, check status, capturable_money, and supported_actions, and decide again before you send the new version.

Errors#

These errors can come from any write to a payment intent. Route-specific errors are listed with each endpoint.

  • HTTP 409
    The payment intent's state doesn't accept the action. details[0].reason says why, such as managed_by_owner, in_progress, terminal_status, or already_applied, and the details carry current_status and supported_actions.
  • HTTP 409
    VERSION_CONFLICTRefresh, then retry
    expected_version is stale. param is expected_version, resource_type is payment_intent, and details[0].current_version is the current version. Nothing changed.
  • HTTP 409
    OPERATION_IN_PROGRESSRetry the same request
    Another operation on the payment intent is still running. Nothing changed.
  • HTTP 409
    CONCURRENT_MODIFICATIONRetry the same request
    Another write reached the payment intent at the same moment. Nothing changed.
  • HTTP 500
    The processor's answer to an earlier operation is still unknown, so the payment intent stays held until Flint records it. Read the payment intent to learn whether that operation took effect, and never resend it under a new key; see Handle an unresolved outcome. Contact Flint support with the request_id if the outcome stays unknown.

Find payments#

GET /v1/payment-intents filters by status, amount, currency, order, customer, refund and dispute state, and more. Three filters combine several fields:

  • is_action_required=true selects payments you need to capture, or whose dispute needs your response now: a needs_response or inquiry_needs_response dispute that still accepts evidence and whose deadline is absent or hasn't passed. false selects the rest.
  • currency takes one uppercase ISO 4217 code, such as USD, with or without min_amount and max_amount. The amount bounds require it.
  • dispute_status=under_review matches only disputes under review, and other matches a dispute in a state Flint doesn't recognize yet. To list every disputed payment, send every dispute_status value except none.

<!-- docs-test {"scenario":"list","status":200,"list":true,"expect":{"request_id":"req_..."}} -->

cURL
curl -G https://api.withflintpay.com/v1/payment-intents \
  -H "Authorization: Bearer YOUR_API_KEY" \
  --data-urlencode "currency=USD" \
  --data-urlencode "status=succeeded"

Use captured_after and captured_before to filter by captured_at. Both take RFC 3339 timestamps. The lower bound is inclusive and the upper bound is exclusive. Either bound excludes payments without a capture timestamp. Use status=succeeded to match the payment status used by Analytics.

email filters to payment intents whose receipt_email or linked customer's email equals the address, ignoring case and any whitespace stored around it, with accents preserved. Send one bare email address without surrounding whitespace, and URL-encode plus signs as %2B. It matches the complete address, so jose@example.com does not match josé@example.com. Invalid addresses return 400 INVALID_REQUEST with detail INVALID_VALUE on email. query searches the payment intent's own receipt_email, not the linked customer's email, so use email or customer_id to find a customer's payments. The email filter is available on GET /v1/payment-intents.

Find a charge by card#

Use card_last4 to match payment_source.card.last4 exactly. Send one value containing exactly four digits, including leading zeros. Add card_brand to match payment_source.card.brand: visa, mastercard, amex, discover, diners, jcb, or unionpay.

For example, GET /v1/payment-intents?card_last4=1117&card_brand=discover finds payments made with a Discover card ending in 1117. Payments with no card details, such as ACH and Affirm payments or intents no card was attached to, never match either card filter. A card intent can match before it's paid, for example while it waits for authentication, so add status=succeeded to find completed charges.

Repeat card_brand keys or comma-separate brands to match any selected brand. Whitespace is trimmed and duplicate brands are removed. Empty or unknown brands and malformed card_last4 values return 400 INVALID_REQUEST with detail INVALID_VALUE at the filter. Both card filters must match when provided together, along with every other filter such as customer_id, query, dates, and amounts. Keep the same filters when using page_token.

expand adds the related record beside its ID on every payment intent in the response, or null when the payment intent has no such ID. Every path needs payments.payment_intents.read plus the related resource's read scope:

expandAddsAlso needs
orderThe order summary for order_id, including its buyer_contactcommerce.orders.read
customerThe customer summary for customer_idcustomers.read
invoiceThe invoice summary for invoice_idcommerce.invoices.read

A key without a scope a path needs gets 403 INSUFFICIENT_SCOPE with param: expand. Expand related records covers how Flint batches each page and keeps page tokens valid, and Expanded order summaries lists what an order summary holds.

Recovery by key#

Recover a lost create with GET /v1/payment-intents?idempotency_key={key}, and add order_id to keep one order's legs. The read returns each payment intent as it is now. An empty list doesn't prove that no payment was attempted. See Recovery reads for the matching rules.

Payment history#

GET /v1/payment-intents/{payment_intent_id}/activities returns a human-readable history to show a merchant or use while investigating a payment: creation, updates, status changes, failures, refunds, dispute changes, and receipts. Send sort_direction=asc for a chronological timeline. For authoritative state, read the payment intent or the resource an entry references; the history doesn't replace webhooks or a ledger.

Each entry includes actor, either null or {resource_type, resource_id, label}. resource_type is today one of user, api_key, partner_app_install, or partner_app; accept other resource types. resource_id identifies the identity that initiated the action. label records the teammate's name (or email), key name, or app name when the activity is written. Renaming or removing that identity does not change the recorded label. If the label is empty, display resource_id instead. Refund creation keeps its initiating identity when Flint processes it later. Automated events, such as later processor status updates, have actor: null, as do entries with no recorded initiating merchant identity.

Webhooks#

Each status change sends its own event, with the payment intent as the object. payment_intent.updated covers other changes, including a refund or dispute that changes refunded_money, refund_status, or dispute_status. The fee fields are left out of webhook payloads, so read them from the payment intent after payment_intent.succeeded.

Payment intent events describes each payload.

Embedded paymentsCollect an order's payment in your page with Stripe Elements and the pay route.Server-confirmed paymentsCreate and confirm a standalone payment intent from your server.Declines and payment attemptsRead outcomes, handle declines and 3D Secure, and recover lost responses.Manual capturePlace a hold, then capture all or part of it, or release it.

Collect a paid-order edit's balance#

A payment intent with order_edit_id collects that edit's frozen balance. It also names order_id and uses payment_flow: api. Confirm it through the ordinary payment intent route. It accepts cards, captures automatically, and carries no platform fee or splits. Its supported_actions contains confirm in requires_payment_method, requires_confirmation and requires_action.

Cancel the edit to stop waiting for payment. Direct payment intent cancellation and amount or source changes return 409 ACTION_NOT_ALLOWED, reason managed_by_owner, naming the edit and cancel_order_edit in remediation.next_actions. The order stays paid and closed. Fulfill the added items on order_edit.completed, or order_edit.created with status completed. See Collect a balance on an edit.

The Payment intent object#

One payment from a buyer, standalone or as a leg of an order. amount_money is the amount requested. Once the payment is authorized, authorized_money equals amount_money (on a payment intent canceled with cancellation_reason payment_returned, the authorization Flint released) and splits into captured_money (collected), capturable_money (still on hold), and released_money (returned without being charged), so authorized_money equals the sum of those three whenever the capture is at most the authorization. An overcapture (see request_overcapture) has capturable_money and released_money zero and captured_money above authorized_money. Reconcile revenue from captured_money.

Returned by GET /v1/payment-intents/{payment_intent_id} and carried by the endpoints below.

Attributes

payment_collectionobject

Setup details your client uses to collect the buyer's payment details. Returned on both standalone and order-owned creates except card_present payments, which have no payment_collection. On GET, returned only for a standalone intent in requires_payment_method or requires_confirmation, and omitted for an intent owned by a checkout session when read with merchant credentials. Order-owned intents never include it on GET; use Order.payment_collection, whose selectable_payment_intents lists the staged payments.

add_on_feesarray of object

Itemized invoice, subscription, and automatic tax fees collected with this payment. Available to the merchant only. Empty until fees settle or when no add-ons apply. Refunds do not return or revise these fees. Absent until Flint has determined and verified the fee. If Flint can't verify it when you read the payment intent, the field is omitted rather than shown unverified; read the payment intent again later.

Not returned with a checkout credential or a customer session

amount_moneyobjectRequired

The amount requested from the buyer, including any tip_money. Capturing doesn't change it: after a partial capture it still shows the requested amount, and captured_money shows what was collected. On a standalone payment intent, PATCH can change it only before the first confirmation attempt. An amount_money or tip_money change that leaves too little for stored splits returns LIMIT_EXCEEDED at the changed field with minimum_money.

authorization_expires_atstring

Effective Flint deadline to capture a manual-capture hold: the earlier of the provider capture deadline and any order resource guarantee. Order guarantees last at most 24 hours from the payment attempt start and may end earlier. Capture is refused at or after this time, even while status is requires_capture. Omitted until a hold is placed.

authorized_atstring

When the processor authorized the payment. Absent until then.

authorized_moneyobject

The amount the processor authorized. It always equals amount_money and doesn't change once set, even when a capture collects more. On a payment intent canceled with cancellation_reason payment_returned, it equals the authorization Flint released instead. Absent until the payment is authorized, and on payments canceled before authorization.

cancellation_reasonenum

Flint-normalized reason the payment intent was canceled. Present only while status is canceled. A cancellation without a specific reason returns payment_canceled. Absent while last_payment_error.code is payment_blocked and Flint has not identified money to return. Unknown processor values are returned as payment_canceled.

  • requested_by_customer
  • duplicate
  • fraudulent
  • abandoned
  • invoice_payment_failed
  • invoice_voided
  • order_closed
  • payment_canceled
  • payment_returned
capturable_moneyobject

The part of the authorization you can still capture. Positive only while status is requires_capture, and zero after you capture or cancel or the authorization expires. The authorization lapses at authorization_expires_at, and a capture attempted after that fails even if this is positive. Absent until the payment is authorized.

capture_methodenum

When money is collected. Defaults to automatic.

  • automatic
  • manual
captured_atstring

When money was captured. For automatic capture, this is when the payment succeeded. Absent until capture.

captured_moneyobject

The amount collected from the buyer, including captured_tip_money. Reconcile revenue and print receipts from this amount, not amount_money. Zero while a hold is open, and positive whenever status is succeeded. After an overcapture it is above authorized_money. Also positive on a payment intent canceled with cancellation_reason payment_returned: Flint captured the money and is returning it through a refund with reason payment_returned. processing_fee_money, merchant_net_money, and refunds are based on it. Absent until the payment is authorized.

captured_tip_moneyobject

The part of captured_money that is a tip: the capture's tip_money when it sent one, otherwise the tip the authorization carried, at most captured_money. tip_money keeps the tip the authorization carried. Refunds return it last. Absent until the payment is captured.

checkout_session_idstring

Flint checkout session ID associated with this payment, when present.

created_atstring

RFC3339 timestamp.

customerobject or null

The linked customer. Returned only with expand=customer. Present only when `expand` includes `customer`; `null` when expanded and there is no related customer.

Not returned with a checkout credential or a customer session

customer_idstring

Customer linked to this payment intent.

customer_presenceenumRequired

Whether the customer was present for the most recent confirmation. absent means Flint charged a saved card without them, as a merchant-initiated payment on its stored credential. Subscription renewals and automatic invoice charges are absent, and other payments are absent only when confirmed or paid with customer_presence absent. A customer who pays any of them with a card they enter makes it present. Each confirmation sets it again.

  • present
  • absent
dispute_statusenum

Dispute state of this payment. none means no dispute or inquiry is open or recorded. The inquiry_ values track an issuer inquiry or early warning that isn't a chargeback. Read the dispute with GET /v1/disputes for its deadline and evidence.

Not returned with a checkout credential or a customer session

  • none
  • inquiry_needs_response
  • inquiry_under_review
  • inquiry_closed
  • needs_response
  • under_review
  • won
  • lost
  • prevented
  • other
external_reference_idstring or null

Caller-owned identifier for this resource in an external system. `null` when no external reference ID has been set on the payment intent.

Not returned with a checkout credential, a customer session, or an invoice access token

failed_attempt_countinteger

All-time failed-attempt count. Present on merchant reads; omitted for buyer credentials.

Not returned with a checkout credential or a customer session

failed_attemptsarray of object

Newest 50 failed attempts, newest first, with merchant-only card and buyer evidence frozen at admission. Older attempts can be included in failed_attempt_count.

Not returned with a checkout credential or a customer session

fulfillment_holdobject

Present when a payment provider asked Flint to pause fulfillment for this payment. While its status is active, open fulfillments on the order are on hold with reason payment_review. payment_intent.fulfillment_hold_updated is sent when the hold starts and when it lifts.

idempotency_keystring or nullRequired

The Idempotency-Key of the request that created this resource. `null` when that request sent no key, Flint created the resource, the reader isn't the caller that created it (another app install, a buyer, or the merchant reading an app's or buyer's record), or the caller that created an older record is unknown. Filter its list with `idempotency_key` to find it. Recorded payloads, including replayed responses and webhook events, can return `null`. To find a key that a replay returns as `null`, read the resource. Buyer sessions on routes shared with merchants get `null`. `/v1/me` responses do not include this field.

invoiceobject or null

The linked invoice. Returned only with expand=invoice. Present only when `expand` includes `invoice`; `null` when expanded and there is no related invoice.

Not returned with a checkout credential or a customer session

invoice_idstring

Invoice this payment intent collects, when it pays an invoice.

invoice_schedule_entry_idstring

The invoice installment this payment collects.

last_payment_errorobject or nullRequired

Most recent payment error. Null when no payment error is recorded.

latest_order_payment_attempt_idstring or null

The order payment attempt that most recently used this payment intent. Start times count to the second; of attempts that started in the same second, the one with the highest order_payment_attempt_id is named. `null` when no attempt has used it yet; omitted for payment intents without an order. It changes only when an attempt starts using this payment intent, which advances version. Returned with merchant credentials; omitted with buyer and checkout credentials.

Not returned with a checkout credential, a customer session, or an invoice access token

merchant_idstring

Merchant that owns this payment intent.

merchant_net_moneyobject

Captured amount minus processing_fee_money, every amount in add_on_fees, platform_fee.amount_money, and each split commitment. Live, succeeded and fully_reversed splits commit their whole amount; payment_not_completed and install_revoked cancellations commit nothing. A failed split commits only money already taken back before failure; its remainder returns to the collecting merchant. Refunds do not reduce the commitment. Later merchant assessments and credits are separate balance effects. Absent until Flint has determined and verified the fee. If Flint can't verify it when you read the payment intent, the field is omitted rather than shown unverified; read the payment intent again later.

metadatamap of string

Caller-owned metadata. Keys starting with flint_ are reserved for Flint and aren't returned. Always present with merchant credentials.

Not returned with a checkout credential, a customer session, or an invoice access token

orderobject or null

The linked order. Returned only with expand=order. Present only when `expand` includes `order`; `null` when expanded and there is no related order.

Not returned with a checkout credential or a customer session

order_edit_idstring

The order edit whose balance this payment collects. Omitted when this payment doesn't collect an edit's balance.

order_idstring

Order this payment intent belongs to. Create it through the order and confirm it with POST /v1/orders/{order_id}/pay. Capture and cancel use POST /v1/payment-intents/{payment_intent_id}/capture or /cancel for every payment intent. Order-owned intents accept PATCH for metadata and external_reference_id.

overcaptureobject

Whether one capture can collect more than the authorization, and the most it can collect. Present once a payment with request_overcapture true is authorized. Read it to show the limit; capture enforces it.

Not returned with a checkout credential, a customer session, or an invoice access token

payment_flowenumRequired

How the payment was started. Fixed when the payment intent is created.

  • checkout
  • payment_link
  • shop
  • invoice
  • subscription_initial
  • subscription_renewal
  • virtual_terminal
  • api
payment_intent_idstringRequired

Flint payment intent ID.

payment_optionsarray of enumRequired

Payment options the buyer can use for this payment.

  • card
  • apple_pay
  • google_pay
  • affirm
  • ach_debit
  • card_present
payment_sourceobject

Summary of the card or bank account used for the payment. Absent until a payment source is attached.

platform_feeobject

The platform fee a partner app charges on this payment, when it created the payment with an install token and a fee. Absent when the payment carries none. Returned only to merchant credentials; omitted for buyer and checkout credentials.

Not returned with a checkout credential, a customer session, or an invoice access token

processing_fee_detailsarray of object

Applied processing fee components, each with type and amount_money. Amounts sum exactly to processing_fee_money. Conditional components appear only when applied. Derived from immutable pricing inputs retained at fee computation, including historical payments with those inputs. Omitted when no verified fee or retained inputs are available. For sum-before-rounding rates, percentages use differences between successive rounded cumulative amounts in formula order. Minimums and caps adjust base; split concessions reduce components in formula order.

Not returned with a checkout credential or a customer session

processing_fee_moneyobject

Flint's all-in processing fee for this payment. It is the complete price Flint charges to process the payment, never a provider cost passed through. The fee is final once the card payment is captured or the ACH payment succeeds; canceled payments and failures before success have none, except a payment intent canceled with cancellation_reason payment_returned, which shows the fee charged at capture on the charge Flint is returning. Flint returns that fee to your balance separately. Invoice, subscription, and automatic tax fees are itemized separately in add_on_fees. Your net for the payment is captured_money minus this fee and the add-on fees. Refunds do not return or revise it. Absent until Flint has determined and verified the fee. If Flint can't verify it when you read the payment intent, the field is omitted rather than shown unverified; read the payment intent again later.

Not returned with a checkout credential or a customer session

reader_idstring

The reader the payment is or was last presented on. Set when Flint presents it and kept afterward. While processing or requires_action with a reader_id and no payment_source.card.card_present, the payment is on that reader now. After a card is read, the payment can stay processing while Flint captures it.

Not returned with a checkout credential or a customer session

receipt_emailstring or null

Email address for this payment's receipt. When it isn't set, Flint uses the customer's email. `null` when no receipt email has been set on the payment intent.

refund_expires_atstring or null

Last time Flint can refund this payment through the original payment method. A refund submitted at exactly this time is accepted; after it, refunds through the original payment method are refused. Today only Affirm has a refund window: 120 days after the payment settles. `null` when the method has no refund window, the payment has not succeeded with captured money, or its capture time is missing. Always present with merchant credentials.

Not returned with a checkout credential, a customer session, or an invoice access token

refund_statusenum

How much of captured_money has been refunded, including value issued as store credit, based on refunded_money.

  • none
  • partially_refunded
  • refunded
refunded_moneyobject

Total refunded against captured_money, including value issued as store credit and processor refunds still pending. Failed and canceled refunds aren't counted. Zero when nothing has been refunded.

released_moneyobject

The part of the authorization returned to the buyer without being charged: the uncaptured remainder after a partial capture, or the whole authorization after a cancellation or expiry. It was never collected, so it needs no refund and can't be captured later. Zero after a capture at or above the authorization. Absent until the payment is authorized.

remaining_refundable_moneyobject

Remaining payment refund capacity after pending and completed refunds and order reservations. Present on affected merchant payment detail reads, including when the amount is zero.

request_overcaptureboolean

Whether one capture may collect more than the authorization where the card network allows it. Fixed at create. Always present with merchant credentials; omitted with buyer and checkout credentials.

Not returned with a checkout credential, a customer session, or an invoice access token

return_idstring

Flint return ID associated with this payment, when present.

return_resolution_idstring

The return resolution whose balance this payment collects. Set for exchange balances and corrections.

riskobject or null

Risk assessment. Always present with merchant credentials. `null` when the payment intent's latest payment attempt has no completed risk assessment, such as before its first confirmation. Omitted with the checkout credential.

Not returned with a checkout credential or a customer session

selected_payment_optionenum

The payment option the most recent confirmation used. Absent until the payment intent is first confirmed.

  • card
  • apple_pay
  • google_pay
  • affirm
  • ach_debit
  • card_present
splitsarray of object

Top-level PaymentSplit children in their current state, embedded whole. Empty when the payment has no splits. Child changes do not send payment_intent.updated. Omitted for buyer and checkout credentials.

Not returned with a checkout credential, a customer session, or an invoice access token

statement_descriptorstring or nullRequired

The text shown on the buyer's card or bank statement for this payment. `null` until the charge is created. `null` when the provider supplies no descriptor. Frozen when the charge is created.

statusenumRequired

Lifecycle status. requires_payment_method covers both a new payment intent and one whose last attempt failed, so read last_payment_error with it. succeeded, canceled, and expired are final. Refunds and disputes never change status.

  • requires_payment_method
  • requires_confirmation
  • requires_action
  • processing
  • requires_capture
  • canceled
  • succeeded
  • expired
subscription_idstring

The subscription whose billing charged this payment: its first charge, a renewal, a retry or a setup fee. Not set for the checkout payment that created a subscription.

support_referencestringRequired

Opaque payment reference to share with merchant support. Do not parse its format.

supported_actionsarray of enumRequired

Verbs this payment intent accepts now, each a POST to /v1/payment-intents/{payment_intent_id}/{action}. The list includes stored order facts and can change without a payment intent version change. Order legs list confirm when a single leg can pay the order or an open attempt can continue it. Several unpaid legs, selected gift cards, or automatic tax with a leg below the balance require pay_order instead. Invoice payments list only cancel. An unused first-period subscription payment lists cancel once the subscription is canceled. Order edit payments list confirm while awaiting payment details or action. A listed action can still be refused due to an open risk review, an order payment attempt, a closed order, or the merchant account. A managed_by_owner refusal names the owner and its command in remediation.next_actions. The merchant list is credential-independent. Checkout credentials receive that list filtered to confirm and cancel on their own session's intents, never capture. Customer sessions omit this field. New actions may be added.

Not returned with a customer session

  • confirm
  • capture
  • cancel
tip_moneyobject or null

Portion of amount_money that is a tip. Uses amount_money's currency and is at most amount_money. `null` when no tip is set, and for an order payment until its payment attempt has moved past requires_payment_method and requires_confirmation. An order payment without a tip can return an amount of 0 instead.

transaction_purposeenum

Why a bank debit is taken. Set only when payment_options includes ach_debit, and fixed once the payment intent exists.

  • goods
  • services
  • other
updated_atstring

RFC3339 timestamp.

versionintegerRequired

Persisted version of this resource's owned state. Expanded resources and external observations can change independently.

JSON
{
  "add_on_fees": [],
  "amount_money": {
    "amount": 5000,
    "currency": "USD"
  },
  "capture_method": "automatic",
  "created_at": "2026-03-17T14:30:00Z",
  "customer_id": "cus_01KEZF7C003ACYXT6Q5EQZ78EE",
  "customer_presence": "present",
  "external_reference_id": "cart_123",
  "idempotency_key": null,
  "last_payment_error": null,
  "merchant_id": "mer_01KEZF7C00MPP0T9S0KH5BB4CC",
  "metadata": {
    "channel": "web"
  },
  "payment_collection": {
    "stripe": {
      "account_id": "acct_123",
      "elements": {
        "amount_money": {
          "amount": 5000,
          "currency": "USD"
        },
        "digital_wallets": [
          "apple_pay"
        ],
        "mode": "payment",
        "next_step": "create_confirmation_token",
        "payment_method_creation": "manual",
        "payment_method_types": [
          "card"
        ],
        "payment_options": [
          "card",
          "apple_pay"
        ],
        "submit_to": "confirm_payment_intent"
      },
      "publishable_key": "pk_test_123"
    }
  },
  "payment_flow": "api",
  "payment_intent_id": "pi_01KEZF7C0050JFFB0HNCWWV1G3",
  "payment_options": [
    "card",
    "apple_pay"
  ],
  "receipt_email": "buyer@example.com",
  "refund_expires_at": null,
  "refund_status": "none",
  "request_overcapture": false,
  "risk": null,
  "splits": [],
  "statement_descriptor": null,
  "status": "requires_confirmation",
  "support_reference": "",
  "supported_actions": [
    "confirm",
    "cancel"
  ],
  "tip_money": null,
  "updated_at": "2026-03-17T14:30:00Z",
  "version": 1
}

List payment intents#

GET/v1/payment-intents

Requires scope payments.payment_intents.read or payments.payment_intents.write

Rate limit: read

Returns a paginated list of payment intents for the authenticated merchant. Use email to match the complete receipt_email or linked customer email, ignoring case, with accents preserved. Default order: created_at descending, then payment_intent_id descending.

Query parameters

idempotency_keystring

Filter by the original Idempotency-Key, after trimming surrounding whitespace. Matching is exact and case-sensitive. Returns only resources created in your caller namespace, plus resources created before caller scoping under the original key. Returns current authorized resources, not the recorded response. A pending resource does not prove that the operation succeeded, and an empty list does not prove that it had no effect. A match can show `idempotency_key: null` when that request sent no key, Flint created the resource, the reader isn't the caller that created it (another app install, a buyer, or the merchant reading an app's or buyer's record), or the caller that created an older record is unknown.

page_sizeinteger

Maximum number of results to return, from 1 to 100. Defaults to 20.

page_tokenstring

Opaque, signed next_page_token from the previous response, bound to the list and caller. Omit on the first request. You may change `page_size` between pages. Reuse it with the same endpoint, filters, sort, and request context. Do not parse or construct tokens. An altered, invalid, expired, or mismatched token returns a validation error.

order_idstring

Filter by order ID.

customer_idstring

Filter by customer ID.

emailstring

Filter to payment intents whose receipt_email or linked customer's email equals this address, ignoring case and any whitespace stored around it, with accents preserved. Requires one bare email address without surrounding whitespace.

invoice_idstring

Filter by invoice ID.

is_action_requiredboolean

Filter by whether the merchant must capture the payment or respond to a dispute. A dispute requires action when its status is needs_response or inquiry_needs_response, evidence responses are allowed, and its deadline is absent or has not passed. Omit to include both groups.

has_failed_attemptsboolean

Match any historical failed attempt, including successful retries. Combine with status=requires_payment_method for payments still awaiting another method. Merchant credentials only.

payment_link_idstring

Match payments from a checkout session created by this payment link. Merchant credentials only.

decline_codestring

Exact failed-attempt decline code. Evidence filters match the same failed attempt. Merchant credentials only.

card_fingerprintstring

Exact merchant/environment risk-list card fingerprint on a failed attempt. Merchant credentials only.

buyer_ip_addressstring

Exact canonical IP on a failed attempt. Merchant credentials only.

card_last4string

Exact match on payment_source.card.last4 or a failed attempt snapshot. Send exactly four digits. Payments without a card never match. Combined with card_brand or any other filter, all filters must match.

card_brandarray of enum

Exact match on payment_source.card.brand or a failed attempt snapshot. Repeat keys or comma-separate values to match any selected brand. Payments without a card never match. Values are trimmed and deduplicated in first-seen order; empty or unknown entries are rejected. Values within this filter are ORed; separate filters are ANDed.

  • visa
  • mastercard
  • amex
  • discover
  • diners
  • jcb
  • unionpay
statusarray of enum

Filter by payment intent status. Values are trimmed and deduplicated in first-seen order; empty or unknown entries are rejected. Values within this filter are ORed; separate filters are ANDed.

  • requires_payment_method
  • requires_confirmation
  • requires_action
  • processing
  • requires_capture
  • canceled
  • succeeded
  • expired
risk_levelarray of enum

Filter by the latest completed risk assessment. Repeat or comma-separate values. Values are trimmed and deduplicated in first-seen order; empty or unknown entries are rejected. Values within this filter are ORed; separate filters are ANDed.

  • normal
  • elevated
  • highest
  • not_assessed
payment_flowarray of enum

Filter by immutable payment flow. Repeat or comma-separate values. Values are trimmed and deduplicated in first-seen order; empty or unknown entries are rejected. Values within this filter are ORed; separate filters are ANDed.

  • checkout
  • payment_link
  • shop
  • invoice
  • subscription_initial
  • subscription_renewal
  • virtual_terminal
  • api
external_reference_idstring

Exact-match filter on the caller-owned external reference ID.

return_idstring

Filter by linked Return ID.

return_resolution_idstring

Filter by linked ReturnResolution ID.

querystring

Search across payment_intent_id, external_reference_id, and receipt_email. Use email or customer_id to find a linked customer's payments. Text fields match any part of the value, and %, _ and \ are ordinary characters, not wildcards. IDs match from the start and need the type prefix, such as ord_01.

min_amountinteger

Inclusive lower bound on amount_money.amount. Requires currency.

max_amountinteger

Inclusive upper bound on amount_money.amount. Requires currency.

currencystring

Exact amount_money.currency filter, with or without amount bounds. Send a three-letter uppercase ISO 4217 code without surrounding whitespace. Amount bounds require currency.

refund_statusarray of enum

Exact match on refund_status. Repeat keys or comma-separate values to match any selected status. Combined with dispute_status, both filters must match. Values are trimmed and deduplicated in first-seen order; empty or unknown entries are rejected. Values within this filter are ORed; separate filters are ANDed.

  • none
  • partially_refunded
  • refunded
dispute_statusarray of enum

Exact match on dispute_status. Repeat keys or comma-separate values to match any selected status. Combined with refund_status, both filters must match. Values are trimmed and deduplicated in first-seen order; empty or unknown entries are rejected. Values within this filter are ORed; separate filters are ANDed.

  • none
  • inquiry_needs_response
  • inquiry_under_review
  • inquiry_closed
  • needs_response
  • under_review
  • won
  • lost
  • prevented
  • other
sort_byenum

Field to sort by. Defaults to created_at; ties are broken by payment_intent_id.

  • created_at
  • updated_at
  • amount_money
  • captured_money
sort_directionenum

Sort direction. Defaults to desc.

  • asc
  • desc
created_afterstring

Inclusive lower bound on created_at.

created_beforestring

Exclusive upper bound on created_at.

updated_afterstring

Inclusive lower bound on updated_at.

updated_beforestring

Exclusive upper bound on updated_at.

captured_afterstring

Inclusive lower bound on captured_at.

captured_beforestring

Exclusive upper bound on captured_at.

expandarray of enum

Include related objects in the response. Supported expansions: customer, invoice, order. Include the requested related resources using scoped batch reads for this page. Each relationship requires its existing target read scopes. Expansion changes the representation without changing pagination tokens. Limits: at most 10 unique expand paths per request.

  • customer
  • invoice
  • order

Response · 200

A page of payment intents.

dataarray of objectRequired

Resource, collection, or operation result returned by this request.

metaobject

Additional information about this response.

next_page_tokenstring

Opaque token to send as `page_token` to retrieve the next page. Omitted when there is no next page.

request_idstringRequired

Identifier of this API request, used to correlate logs and support requests.

curl https://api.withflintpay.com/v1/payment-intents \
  -H "Flint-Version: 2026-09-07" \
  -H "Authorization: Bearer YOUR_API_KEY"

A page of payment intents.

JSON
{
  "data": [
    {
      "add_on_fees": [],
      "amount_money": {
        "amount": 5000,
        "currency": "USD"
      },
      "capture_method": "automatic",
      "created_at": "2026-03-17T14:30:00Z",
      "customer_id": "cus_01KEZF7C003ACYXT6Q5EQZ78EE",
      "customer_presence": "present",
      "external_reference_id": "cart_123",
      "idempotency_key": null,
      "last_payment_error": null,
      "merchant_id": "mer_01KEZF7C00MPP0T9S0KH5BB4CC",
      "metadata": {
        "channel": "web"
      },
      "payment_flow": "api",
      "payment_intent_id": "pi_01KEZF7C0050JFFB0HNCWWV1G3",
      "payment_options": [
        "card",
        "apple_pay"
      ],
      "receipt_email": "buyer@example.com",
      "refund_expires_at": null,
      "refund_status": "none",
      "request_overcapture": false,
      "risk": null,
      "splits": [],
      "statement_descriptor": null,
      "status": "requires_confirmation",
      "support_reference": "",
      "supported_actions": [
        "confirm",
        "cancel"
      ],
      "tip_money": null,
      "updated_at": "2026-03-17T14:30:00Z",
      "version": 1
    }
  ],
  "meta": {
    "api_version": "2026-09-07"
  },
  "request_id": "req_01KWM6WSJBYBBTED48Q2Z5CEB0"
}

Create payment intent#

POST/v1/payment-intentsKey required

Requires scope payments.payment_intents.write

Rate limit: payment

Creates a standalone payment intent, or an immutable payment leg when order_id is sent. Order legs use the order currency, amount, capture and tax rules; omit amount_money to use the remaining balance. Collect each leg through POST /v1/orders/{order_id}/pay. Returns the payment intent flat in data beside payment_collection for online payments. Both owner branches require payments.payment_intents.write. Checkout credentials can create only on their own order.

Request body

amount_moneyobject

Amount to request from the buyer, including any standalone tip_money. Required for standalone payments. On an order, uses the order currency and defaults to its remaining balance; the amount cannot exceed 99999999 minor units, and existing automatic tax rules apply. With capture_method manual, this is the hold amount, and you can capture less later.

capture_methodenum

automatic collects the payment when it is confirmed. manual places a hold at confirmation that you capture or cancel later. Defaults to automatic.

  • automatic
  • manual
customer_idstring

Customer to link to this payment intent.

expected_order_versioninteger

Optional order version from the last order read. Accepted only with order_id; the create fails with VERSION_CONFLICT if the order changed.

external_reference_idstring

Caller-owned identifier for this resource in an external system.

metadatamap of string

Caller-owned metadata. Values can't be empty strings. Keys starting with flint_ are reserved for Flint, are not returned, and cannot be written through the public API.

order_idstring

Order that owns this immutable payment leg. Omit it to create a standalone payment. With order_id, the order supplies customer, receipt, tip and bank-debit purpose; those standalone fields are not accepted.

payment_optionsarray of enum

Payment options the buyer can use. Required for a standalone payment. On an order, omission uses the order source defaults. Name at least one when supplied. card_present must be the only option; confirm it with a reader credential. payment_return_url is not accepted with card_present.

  • card
  • apple_pay
  • google_pay
  • affirm
  • ach_debit
  • card_present
payment_return_urlstring

Where Flint sends the buyer after a redirect or authentication step, adding only payment_intent_id for a payment, or payment_method_id for a setup. The completion message uses type flint.payment_action.completed and exactly that one subject key. Without it, the step ends on a Flint page that tells the parent or opener the step completed. Accepts an absolute HTTPS URL or an app return URL with a custom scheme other than http, javascript, data, file, blob, or about. Cannot contain credentials, a query, or a fragment. Query strings are deliberately excluded so credentials and provider state cannot cross Flint's payment relay. Put merchant identifiers in the URL path, such as https://shop.example/return/sub_123. Test mode also accepts HTTP loopback URLs. With a checkout credential on order pay, omit payment_return_url; checkout sessions use their own configured return URL. Required when payment_options includes affirm and no checkout session collects the payment. Not accepted with card_present.

payment_source_selectionobject

Card and wallet selection for an order-owned payment leg. Accepted only with order_id and cannot be combined with nonempty payment_options.

platform_feeobject

A platform fee your partner app charges on this payment, checked against amount_money. Only a partner app install token can send it; from any other credential it is INVALID_REQUEST with NOT_ALLOWED on platform_fee. A subscription_plan checkout session, or an order whose payment starts or renews a subscription, refuses it with INVALID_REQUEST and NOT_ALLOWED on platform_fee, because Flint's billing creates the renewals. Set platform_fee_rule on the subscription or its checkout session. amount_money.amount must be at least 1 minor unit; otherwise INVALID_REQUEST with INVALID_VALUE on platform_fee.amount_money.amount. Omit platform_fee to charge no fee. The fee must be in the payment's currency, at most the platform fee cap the merchant approved for this amount, and below the amount; otherwise INVALID_REQUEST with INVALID_VALUE on platform_fee.amount_money, with maximum_money when the cap or the amount bounds it. Without an approved cap in this currency it is ACTION_NOT_ALLOWED with reason platform_fee_consent_required. In live mode the partner app's platform_fees capability must be active; otherwise ACTION_NOT_ALLOWED with capability platform_fees and the reason the app's platform status gives. Test mode never checks the capability. Flint lowers the fee, or cancels it, when the cap or Flint's own fees leave less at confirm or capture, so the payment never fails because of it. Part of the request fingerprint. See [Platform fees](/docs/guides/platform-fees).

receipt_emailstring

Email address for this payment's receipt. When omitted, Flint uses the customer's email. The local part before @ must be at most 64 octets (UTF-8 bytes).

request_overcaptureboolean

Let one capture collect more than the authorization where the card network allows it, for example a final bill plus a tip. Needs capture_method manual and payment_options limited to card, apple_pay, google_pay or card_present; otherwise INVALID_REQUEST with NOT_ALLOWED on request_overcapture. Card networks allow overcapture only where the final amount isn't known at authorization, such as tips and services, and you're responsible for following their rules. overcapture reports what the processor allows once the payment is authorized.

splitsarray of object

Divide this payment's funds between the collecting merchant and sellers; this is separate from split tender, where a buyer uses several payment methods. Only the collecting merchant's own credentials can send splits. Each install must belong to the same app owned by the collecting merchant, with the seller's approval in this mode and readiness to receive payouts. Test mode needs no platform review; live mode requires the app's active payment_splits capability and Flint support for the collecting account. Can't be combined with platform_fee or saved payment credentials. The total must fit after the largest Flint fee for the offered payment options, leaving one minor unit for the collecting merchant; otherwise INVALID_REQUEST with INVALID_VALUE on splits and maximum_money. Fixed after create, except capture's final amounts. Part of the idempotency fingerprint.

tip_moneyobject

Portion of amount_money that is a tip. Uses amount_money's currency and is at most amount_money. Not accepted on order-linked payment intents.

transaction_purposeenum

Why the bank debit is taken. Required when payment_options includes ach_debit, and rejected with INVALID_REQUEST and NOT_ALLOWED on transaction_purpose otherwise.

  • goods
  • services
  • other

Response · 201

The created payment intent flat in data, beside payment_collection guidance for online payments.

dataobjectRequired

Resource, collection, or operation result returned by this request.

metaobject

Additional information about this response.

request_idstringRequired

Identifier of this API request, used to correlate logs and support requests.

curl -X POST https://api.withflintpay.com/v1/payment-intents \
  -H "Flint-Version: 2026-09-07" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: a-unique-key" \
  -d '{
    "amount_money": {
      "amount": 5000,
      "currency": "USD"
    },
    "capture_method": "automatic",
    "customer_id": "cus_01KEZF7C003ACYXT6Q5EQZ78EE",
    "external_reference_id": "cart_123",
    "metadata": {
      "channel": "web"
    },
    "payment_options": [
      "card",
      "apple_pay"
    ],
    "receipt_email": "buyer@example.com"
  }'

Get payment intent#

GET/v1/payment-intents/{payment_intent_id}

Requires scope payments.payment_intents.read or payments.payment_intents.write

Rate limit: read

Returns a single payment intent by ID. Unverified fee fields are omitted; read the intent again later for verified fees. For a standalone payment intent in requires_action, call confirm without payment_source to retrieve current_payment_action.

Path parameters

payment_intent_idstringRequired

Flint payment intent ID. Must be a valid ID with prefix pi_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.

Query parameters

expandarray of enum

Include related objects in the response. Supported expansions: customer, invoice, order. Expansion requires payments.payment_intents.read plus the read scope for each expanded resource. Limits: at most 10 unique expand paths per request. Checkout session credentials cannot use expand on this route.

  • customer
  • invoice
  • order

Response · 200

The requested payment intent. Standalone intents that still await initial confirmation may include payment_collection guidance. Order-owned intents use Order.payment_collection.

Same response as Create payment intent.

curl https://api.withflintpay.com/v1/payment-intents/pi_01KEZF7C00G8H9D509YEV22P7R \
  -H "Flint-Version: 2026-09-07" \
  -H "Authorization: Bearer YOUR_API_KEY"

The requested payment intent. Standalone intents that still await initial confirmation may include payment_collection guidance. Order-owned intents use Order.payment_collection.

JSON
{
  "data": {
    "add_on_fees": [],
    "amount_money": {
      "amount": 5000,
      "currency": "USD"
    },
    "capture_method": "automatic",
    "created_at": "2026-03-17T14:30:00Z",
    "customer_id": "cus_01KEZF7C003ACYXT6Q5EQZ78EE",
    "customer_presence": "present",
    "external_reference_id": "cart_123",
    "idempotency_key": null,
    "last_payment_error": null,
    "merchant_id": "mer_01KEZF7C00MPP0T9S0KH5BB4CC",
    "metadata": {
      "channel": "web"
    },
    "payment_collection": {
      "stripe": {
        "account_id": "acct_123",
        "elements": {
          "amount_money": {
            "amount": 5000,
            "currency": "USD"
          },
          "digital_wallets": [
            "apple_pay"
          ],
          "mode": "payment",
          "next_step": "create_confirmation_token",
          "payment_method_creation": "manual",
          "payment_method_types": [
            "card"
          ],
          "payment_options": [
            "card",
            "apple_pay"
          ],
          "submit_to": "confirm_payment_intent"
        },
        "publishable_key": "pk_test_123"
      }
    },
    "payment_flow": "api",
    "payment_intent_id": "pi_01KEZF7C0050JFFB0HNCWWV1G3",
    "payment_options": [
      "card",
      "apple_pay"
    ],
    "receipt_email": "buyer@example.com",
    "refund_expires_at": null,
    "refund_status": "none",
    "request_overcapture": false,
    "risk": null,
    "splits": [],
    "statement_descriptor": null,
    "status": "requires_confirmation",
    "support_reference": "",
    "supported_actions": [
      "confirm",
      "cancel"
    ],
    "tip_money": null,
    "updated_at": "2026-03-17T14:30:00Z",
    "version": 1
  },
  "meta": {
    "api_version": "2026-09-07"
  },
  "request_id": "req_01KWM6WSJBYBBTED48Q2Z5CEB0"
}

Update payment intent#

PATCH/v1/payment-intents/{payment_intent_id}Idempotent

Requires scope payments.payment_intents.write

Rate limit: payment

Applies a sparse update while status is requires_payment_method, requires_confirmation, requires_action, or requires_capture. In processing, succeeded, canceled, or expired it fails with `ACTION_NOT_ALLOWED` and reason `in_progress` or `terminal_status`, with the status in `error.details[].current_status`. amount_money can change only while status is requires_payment_method and before the first confirmation attempt; after that, create a new payment intent. customer_id can change only while status is requires_payment_method, and receipt_email only while it is requires_payment_method or requires_confirmation. Send null to clear tip_money, external_reference_id, receipt_email, or all metadata; amount_money and customer_id cannot be cleared. Order-owned intents accept only metadata and external_reference_id; amount_money, tip_money, customer_id, and receipt_email return INVALID_REQUEST with one NOT_ALLOWED detail per field. This route doesn't attach a payment source: send the buyer's credential to the confirm route.

Path parameters

payment_intent_idstringRequired

Flint payment intent ID. Must be a valid ID with prefix pi_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.

Request body

amount_moneyobject

Payment amount. Can change only while status is requires_payment_method and before the first confirmation attempt. Cannot be cleared.

customer_idstring

Customer linked to this payment intent. Can change only while status is requires_payment_method. Cannot be cleared.

expected_versioninteger

Optional expected version of this resource. A stale value returns 409 VERSION_CONFLICT with the current version. Retrieve the resource and rebuild the request before retrying.

external_reference_idstring or null

Caller-owned identifier for this resource in an external system. Send null to clear it. Omit it to keep the current value.

metadatamap of string or null

Caller-owned metadata. Omit this field to leave metadata unchanged. Send an object to merge by key, set a key to null to remove it, or set metadata to null to clear all caller-owned metadata. An empty object makes no change. Values can't be empty strings. Keys starting with flint_ are reserved for Flint, are not returned, and cannot be written through the public API.

receipt_emailstring or null

Send null to clear it. Omit it to keep the current value. The local part before @ must be at most 64 octets (UTF-8 bytes).

tip_moneyobject or null

Portion of amount_money that is a tip. Uses amount_money's currency and is at most amount_money. Not accepted on order-linked payment intents. Send null to clear the tip; omit it to keep the current value.

Response · 200

The updated payment intent.

dataobjectRequired

Resource, collection, or operation result returned by this request.

metaobject

Additional information about this response.

request_idstringRequired

Identifier of this API request, used to correlate logs and support requests.

curl -X PATCH https://api.withflintpay.com/v1/payment-intents/pi_01KEZF7C00G8H9D509YEV22P7R \
  -H "Flint-Version: 2026-09-07" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: a-unique-key" \
  -d '{
    "metadata": {
      "channel": "support"
    },
    "receipt_email": "updated@example.com"
  }'

List payment intent activities#

GET/v1/payment-intents/{payment_intent_id}/activities

Requires scope payments.payment_intents.read or payments.payment_intents.write

Rate limit: read

Returns a read-only, human-readable history for a payment intent. Read the payment intent or referenced resource for authoritative state; this log does not replace webhooks or a ledger. Use sort_direction=asc for a chronological timeline. Page tokens are bound to the payment intent, merchant, environment, activity_type filter, and sort direction. Default order: created_at descending, then payment_intent_activity_id descending.

Path parameters

payment_intent_idstringRequired

Flint payment intent ID. Must be a valid ID with prefix pi_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.

Query parameters

page_sizeinteger

Maximum number of results to return, from 1 to 100. Defaults to 20.

page_tokenstring

Opaque, signed next_page_token from the previous response, bound to the list and caller. Omit on the first request. You may change `page_size` between pages. Reuse it with the same endpoint, filters, sort, and request context. Do not parse or construct tokens. An altered, invalid, expired, or mismatched token returns a validation error.

sort_directionenum

Sort direction. Defaults to desc.

  • asc
  • desc
activity_typearray of enum

Filter by activity type. Values are trimmed and deduplicated in first-seen order; empty or unknown entries are rejected. Values within this filter are ORed; separate filters are ANDed.

  • created
  • updated
  • status_changed
  • failed
  • canceled
  • expired
  • refund_created
  • refund_status_changed
  • dispute_status_changed
  • receipt_sent
  • receipt_queued
  • receipt_delivery_failed

Response · 200

A page of payment intent activities.

dataarray of objectRequired

Resource, collection, or operation result returned by this request.

metaobject

Additional information about this response.

next_page_tokenstring

Opaque token to send as `page_token` to retrieve the next page. Omitted when there is no next page.

request_idstringRequired

Identifier of this API request, used to correlate logs and support requests.

curl https://api.withflintpay.com/v1/payment-intents/pi_01KEZF7C00G8H9D509YEV22P7R/activities \
  -H "Flint-Version: 2026-09-07" \
  -H "Authorization: Bearer YOUR_API_KEY"

A page of payment intent activities.

JSON
{
  "data": [
    {
      "activity_type": "created",
      "actor": {
        "label": "Jamie River",
        "resource_id": "usr_01KEZF7C00YC8757ZYP9727JM0",
        "resource_type": "user"
      },
      "created_at": "2026-10-20T12:00:00Z",
      "description": "Payment created",
      "payment_intent_activity_id": "pact_01ARZ3NDEKTSV4RRFFQ69G5FAV"
    }
  ],
  "meta": {
    "api_version": "2026-09-07"
  },
  "next_page_token": "next_page_token",
  "request_id": "req_01KWM6WAHG3N9Q8T2V5XRZ7C4D"
}

Cancel payment intent#

POST/v1/payment-intents/{payment_intent_id}/cancelIdempotent

Requires scope payments.payment_intents.write

Rate limit: payment

Cancels a standalone or order-owned payment intent. Read supported_actions for the actions its stored state accepts. Canceling a hold moves all of capturable_money to released_money, and nothing is charged. A processing payment intent fails with `ACTION_NOT_ALLOWED` and reason `in_progress`; refund a succeeded one instead. Flint derives the owning order payment attempt. A leg held by an active order payment attempt may be refused. Omitting cancellation_reason returns payment_canceled as the public reason. A fresh request for a canceled or expired payment returns ACTION_NOT_ALLOWED with reason already_applied; a same-key retry replays or recovers its original result. After a subscription is canceled, a merchant credential can cancel an unconfirmed first-period intent that remains open. A checkout credential can cancel only its own order leg, with requested_by_customer or abandoned when a reason is supplied.

Path parameters

payment_intent_idstringRequired

Flint payment intent ID. Must be a valid ID with prefix pi_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.

Request body

cancellation_reasonenum

Optional merchant-supplied cancellation reason.

  • requested_by_customer
  • duplicate
  • fraudulent
  • abandoned
expected_versioninteger

Optional expected version of this resource. A stale value returns 409 VERSION_CONFLICT with the current version. Retrieve the resource and rebuild the request before retrying.

Response · 200

The canceled payment intent.

Same response as Update payment intent.

curl -X POST https://api.withflintpay.com/v1/payment-intents/pi_01KEZF7C00G8H9D509YEV22P7R/cancel \
  -H "Flint-Version: 2026-09-07" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: a-unique-key" \
  -d '{
    "cancellation_reason": "requested_by_customer"
  }'

Capture payment intent#

POST/v1/payment-intents/{payment_intent_id}/captureIdempotent

Requires scope payments.payment_intents.write

Rate limit: payment

Captures a standalone or order-owned payment intent in requires_capture. Omit amount_money to capture all of capturable_money, or send a smaller amount for a partial capture. Send final_amount_money and tip_money instead to collect the final bill plus a tip in one charge; with request_overcapture and overcapture.status available, that total can exceed the authorization up to overcapture.maximum_capturable_money. On an order's payment, the bill is at most the payment's share of the order (its authorization minus its tip), the order releases the difference, and the tip becomes the payment's part of the order's tip. Flint releases the uncaptured remainder in the same request, and a payment intent can be captured only once. amount_money on the payment intent keeps the requested amount; captured_money and released_money record the result. Affirm payments can only be captured in full. Flint derives the owning order payment attempt; order_payment_attempt_id is not accepted. An expired authorization is refreshed before capture and refused with ACTION_NOT_ALLOWED and reason terminal_status or authorization_expired. A fresh request for an already captured payment returns ACTION_NOT_ALLOWED with reason already_applied; a same-key retry replays or recovers its original result.

Path parameters

payment_intent_idstringRequired

Flint payment intent ID. Must be a valid ID with prefix pi_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.

Request body

amount_moneyobject

Amount to capture, in the authorization's currency. Omit it to capture all of capturable_money. A smaller amount is a partial capture: Flint releases the rest in the same request, and the payment intent can't be captured again. Must be greater than zero and at most capturable_money. Affirm payments can only be captured in full. Can't be combined with final_amount_money or tip_money.

expected_versioninteger

Optional expected version of this resource. A stale value returns 409 VERSION_CONFLICT with the current version. Retrieve the resource and rebuild the request before retrying.

final_amount_moneyobject

The bill without the tip. The capture collects final_amount_money plus tip_money in one charge. With only tip_money, the bill is the authorization minus the tip it carries; when the authorization is all tip, final_amount_money is required. Must be greater than zero, in the payment's currency. On an order's payment, it is at most the authorization minus the tip it carries, so the order's items, charges and tax can't grow; above it LIMIT_EXCEEDED with maximum_money on final_amount_money. The order releases the difference. Not accepted on Affirm or ACH debit payments.

platform_feeobject

A platform fee your partner app charges on this payment, set when you know the final bill and tip. Only the partner app install token that created the payment can send it; from any other credential it is INVALID_REQUEST with NOT_ALLOWED on platform_fee. It replaces the fee the payment was created with, or adds one if it had none, after the same consent, capability and currency checks as at create: amount_money.amount must be at least 1 minor unit, otherwise INVALID_REQUEST with INVALID_VALUE on platform_fee.amount_money.amount. Its currency must match the payment's currency, otherwise INVALID_REQUEST with INVALID_VALUE on platform_fee.amount_money. Omit platform_fee to keep the existing fee. Without an approved cap in this currency it is ACTION_NOT_ALLOWED with reason platform_fee_consent_required; in live mode the partner app's platform_fees capability must be active. A fee that already ended is ACTION_NOT_ALLOWED with reason terminal_status. The cap and Flint's own fees apply to the captured total, so Flint lowers the fee rather than refusing the capture. A payment that belongs to an order can't take it at capture: INVALID_REQUEST with NOT_ALLOWED on platform_fee. Part of the request fingerprint. See [Platform fees](/docs/guides/platform-fees).

splitsarray of object

Final split amounts for this capture. List every split that isn't canceled, once each, with an amount above zero in the payment's currency. Omit splits to keep the stored amounts. The total must fit after Flint's fees and one minor unit for the collecting merchant; otherwise INVALID_REQUEST with INVALID_VALUE on splits and maximum_money. An amount_money too small for the stored splits is LIMIT_EXCEEDED with minimum_money. A payment created without splits can't gain them. Part of the idempotency fingerprint.

tip_moneyobject

The tip, replacing the tip the authorization carries. Zero captures without a tip. With only final_amount_money, the tip is the one the authorization carries, or zero. At most the larger of 1,000.00 USD and final_amount_money; on an order's payment, the larger of 1,000.00 USD and the payment's share of the order's subtotal after discounts. Above it INVALID_REQUEST with INVALID_VALUE on tip_money and maximum_money. On an order's payment, keeping or lowering the tip the authorization carries is never refused, and the tip becomes this payment's part of the order's tip. A payment that doesn't carry part of the order's requested tip can't add a tip above zero beside it: INVALID_REQUEST with NOT_ALLOWED on tip_money. On an order, the bill can't grow, so without overcapture a tip fits only within what the bill leaves of the hold. The total is at most overcapture.maximum_capturable_money when overcapture is available, else capturable_money; above it LIMIT_EXCEEDED with maximum_money.

Response · 200

The captured payment intent.

Same response as Update payment intent.

curl -X POST https://api.withflintpay.com/v1/payment-intents/pi_01KEZF7C00G8H9D509YEV22P7R/capture \
  -H "Flint-Version: 2026-09-07" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: a-unique-key" \
  -d '{
    "amount_money": {
      "amount": 3000,
      "currency": "USD"
    }
  }'

Confirm payment intent#

POST/v1/payment-intents/{payment_intent_id}/confirmIdempotent

Requires scope payments.payment_intents.write

Also requires payments.payment_methods.write when save_payment_method is true.

Also requires payments.readers.write when payment_source.credential_type is reader.

Rate limit: payment

Confirms a standalone payment intent or an order leg, including checkout-session and exchange-balance legs, with the same scope and request. For the first confirmation, send payment_source with credential_type stripe_confirmation_token, stripe_payment_method, payment_method, or reader and its matching credential; a missing credential returns INVALID_REQUEST. After the buyer completes current_payment_action, call this route again without payment_source to continue the same payment attempt. While the confirmation is unfinished, Flint confirms again only if the processor still requires it, and otherwise returns the current payment intent. If the action page or a webhook already finished a standalone payment, a fresh confirm returns 409 ACTION_NOT_ALLOWED with current_status; reason already_applied with current_status succeeded means the payment is paid. Read GET /v1/payment-intents/{payment_intent_id} or use the payment webhook for the recorded outcome. Unverified fee fields are omitted. On a Tap to Pay reader, requires_action returns current_payment_action with action_type card_presentment and stripe.terminal_payment_intent. Retrieve, collect, and confirm that payment with the Stripe Terminal SDK, then confirm without payment_source to read the outcome. A decline leaves the payment requires_action with last_payment_error so the app can collect another card; cancel to give up. current_payment_action is null when no buyer action is needed. It can also be null while status is requires_action if Flint cannot produce the action yet; call confirm again without payment_source. For an order leg, Flint applies the order payment effects and continues its holding attempt without creating another. Starts that need several legs or gift cards return managed_by_owner naming pay_order. Merchant credentials cannot confirm invoice-owned payments; use collect_invoice. The invoice checkout credential confirms its own session's legs through the invoice collection steps. Subscription-owned payments refuse both start and continuation with managed_by_owner naming create_subscription_payment_retry. Checkout recovery credentials can only continue the legs held by their recovery payment attempt, without payment_source; other attempts' legs return 404 RESOURCE_NOT_FOUND. Checkout credentials outside recovery can start and continue only their own session's payment intents; other sessions' intents and standalone intents return 404 RESOURCE_NOT_FOUND. Checkout credentials cannot send save_payment_method; save a card through order pay. save_payment_method saves for the order customer for off-session reuse; an order without a customer returns configuration_required.

Path parameters

payment_intent_idstringRequired

Flint payment intent ID. Must be a valid ID with prefix pi_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.

Request body

buyer_ip_addressstring

The buyer's IP address, for risk screening, when your server pays on the buyer's behalf. Write-only.

Not accepted with a checkout credential

client_action_typeenum

How to complete the authentication step. Flint's API returns a Stripe client secret only for client_action_type stripe. A url action opens in a redirect, popup, or iframe; Stripe's authentication page receives what it needs to run the challenge, including the client secret for hosted 3DS2. If a payment is confirmed with a payment method Flint didn't approve, Flint doesn't count the charge, returns it to the buyer, and the payment intent ends canceled with cancellation_reason payment_returned. The Stripe secret can also confirm the payment with another card, so use it only with handleNextAction. Reader credentials do not support url; omit client_action_type or send stripe for reader payments. Defaults to url for a new confirmation; omission on a continuation keeps the existing type.

  • url
  • stripe
expected_versioninteger

Optional expected version of this resource. A stale value returns 409 VERSION_CONFLICT with the current version. Retrieve the resource and rebuild the request before retrying.

payment_return_urlstring

Where Flint sends the buyer after a redirect or authentication step, adding only payment_intent_id for a payment, or payment_method_id for a setup. The completion message uses type flint.payment_action.completed and exactly that one subject key. Without it, the step ends on a Flint page that tells the parent or opener the step completed. Accepts an absolute HTTPS URL or an app return URL with a custom scheme other than http, javascript, data, file, blob, or about. Cannot contain credentials, a query, or a fragment. Query strings are deliberately excluded so credentials and provider state cannot cross Flint's payment relay. Put merchant identifiers in the URL path, such as https://shop.example/return/sub_123. Test mode also accepts HTTP loopback URLs. With a checkout credential on order pay, omit payment_return_url; checkout sessions use their own configured return URL.

payment_sourceone of

Credential to confirm this payment. Omit it to continue with the attached source: confirm requires_confirmation, or refresh requires_action without starting another payment. Required when no source is attached.

save_payment_methodboolean

Saves the card this confirmation collects for the standalone payment intent's customer or the owning order's customer, with usage off_session, so you can charge it later without the buyer: subscriptions, automatic invoices, or the customer's default. Send true only when the buyer agreed to that on your page. Requires customer_id on the standalone payment intent or owning order (otherwise configuration_required names that resource), a card, Apple Pay, or Google Pay credential in payment_source.stripe.confirmation_token (created with setup_future_usage off_session) or payment_source.stripe.payment_method, and payments.payment_methods.write. Flint saves the card once the payment is approved, sends payment_method.activated, and sets payment_source.card.payment_method_id. If the bank asks the buyer to authenticate, current_payment_action carries it; that one authentication also covers the saved card. A continuation keeps the original save choice. Checkout credentials cannot send this field, even as false. To save a card with order pay, send save_payment_method on POST /v1/orders/{order_id}/pay, which supports merchant off_session saves and checkout on_session saves; the credential determines which rules apply.

Not accepted with a checkout credential

save_payment_method_consent_textstring

The wording the buyer agreed to when saving this card. Send only when save_payment_method is true, using an API key or partner token with payments.payment_methods.write, or a Dashboard session. Flint trims surrounding whitespace and stores the remaining text exactly. The trimmed wording must contain 1 to 1,000 characters and cannot contain a null character. Checkout supplies its own wording and cannot send this field.

Not accepted with a checkout credential

Response · 200

The confirmed payment intent, with current_payment_action always present.

dataobjectRequired

Resource, collection, or operation result returned by this request.

metaobject

Additional information about this response.

request_idstringRequired

Identifier of this API request, used to correlate logs and support requests.

curl -X POST https://api.withflintpay.com/v1/payment-intents/pi_01KEZF7C00G8H9D509YEV22P7R/confirm \
  -H "Flint-Version: 2026-09-07" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: a-unique-key" \
  -d '{
    "payment_source": {
      "credential_type": "stripe_confirmation_token",
      "stripe": {
        "confirmation_token": "ctoken_123"
      }
    },
    "save_payment_method": true,
    "save_payment_method_consent_text": "Cedar & Stone Coffee can charge this card for orders you agree to, until you remove it."
  }'

Send a payment receipt#

POST/v1/payment-intents/{payment_intent_id}/send-receiptIdempotent

Requires scope payments.payment_intents.write

Rate limit: external_provider_action

Queues a receipt for a succeeded payment intent and returns the payment intent unchanged. For an order-owned payment intent, the receipt shows that payment and its order context. The request records a receipt_queued activity. Provider acceptance records receipt_sent; suppression, failure, or an unconfirmed delivery records receipt_delivery_failed with an explanation. Send email to choose a recipient. Omit email to use receipt_email, then the order's receipt address for an order-owned intent or the customer's email for a standalone intent. If no receipt email is available, email is required. The saved receipt email stays unchanged. Requires Flint-managed receipt delivery. Standalone sending is limited to once every five minutes per payment intent; sending for an order-owned intent is limited to once every five minutes per payment intent and normalized recipient. Retry with the same idempotency key to replay the result without sending again.

Path parameters

payment_intent_idstringRequired

Flint payment intent ID. Must be a valid ID with prefix pi_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.

Request body

emailstring

Email address that receives the receipt. Omit to use receipt_email, then the order's receipt address for an order-owned intent or the customer's email for a standalone intent. The local part before @ must be at most 64 octets (UTF-8 bytes).

Response · 200

The receipt was queued. The payment intent is unchanged.

Same response as Update payment intent.

curl -X POST https://api.withflintpay.com/v1/payment-intents/pi_01KEZF7C00G8H9D509YEV22P7R/send-receipt \
  -H "Flint-Version: 2026-09-07" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: a-unique-key" \
  -d '{
    "email": "alex@example.com"
  }'

Was this helpful?