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"toPOST /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-intentsandorder_id, then confirm the legs together withaction: "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 withPOST /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-intentsandorder_id, which needspayments.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, usingpayments.payment_intents.write. Omitpayment_sourceto continue its holding attempt. Several unpaid legs or selected gift cards require orderpay;managed_by_ownernames 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 return404 RESOURCE_NOT_FOUND. Checkout credentials cannot sendsave_payment_method; use orderpayto 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.
PATCHaccepts onlymetadataandexternal_reference_id.- A
GETnever includespayment_collection. Read the order'spayment_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 needspayments.payment_intents.write, and an explicitamount_money. - Confirm it with
POST /v1/payment-intents/{payment_intent_id}/confirm. Only the confirm result carriescurrent_payment_action, the client step the buyer has to finish, ornullwhen there is none. Reads, lists, and webhooks leave it out. PATCHcan changeamount_moneywhile the status isrequires_payment_methodand before the first confirmation attempt. After that, create a new payment intent to collect a different amount.- A
GETincludespayment_collectionwhile the status isrequires_payment_methodorrequires_confirmation. - A receipt goes to
receipt_email, or else to the customer's email. Sendemailto 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.
- 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 intentrequires_payment_methodWaiting for payment details. Either nothing has been attempted, or the last attempt was declined, failed authentication, or was blocked, andlast_payment_errorsays why. Collect another payment method and confirm again.requires_confirmationPayment details are attached, but confirmation didn't finish, usually because it was interrupted. Call confirm with an omittedpayment_sourceto confirm the attached source or continue the holding order payment attempt.requires_actionThe buyer has to finish a step, such as 3D Secure. The confirm result'scurrent_payment_actiondescribes it for standalone payments and order legs. Confirming with an omittedpayment_sourcereturns it again or continues once the buyer is done. An order payment attempt also carries it inpending_actions.processingSubmitted, 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_captureA manual-capture hold is in place and nothing has been collected. Capture up tocapturable_money, or cancel, beforeauthorization_expires_at. See Manual capture.succeededFinalCollected.captured_moneyis the amount. To return money, create a refund.canceledFinalCanceled by you or by Flint, such as when an invoice is voided. You can cancel whilesupported_actionslistscancel, including a card-present payment waiting on a reader.cancellation_reasonispayment_canceledwhen no specific reason was given. It stays absent whilelast_payment_error.codeispayment_blockedand Flint has not identified money to return. A canceled hold is inreleased_money. Usually no money was collected. Withcancellation_reason: "payment_returned", Flint couldn't accept the payment: money it collected is incaptured_money. Flint returned it or tried to; the payment'spayment_returnedrefund carries the outcome, includingfailedwithfailure_reason: refund_abandonedif Flint stopped trying.expiredFinalA manual-capture hold reachedauthorization_expires_atwithout 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 andsupported_actionsin 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
confirmwhen a single leg can start or their holding attempt can continue. Stored owner facts also shapecancel, so the list can change without a payment version change. Invoice payments list onlycancel; 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:
| Field | Holds |
|---|---|
captured_money | What was collected. Book revenue and print receipts from this. |
capturable_money | What is still on hold and can be captured |
released_money | What 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:
action | Use it to |
|---|---|
pay | Charge the full outstanding balance with one payment_source. Omit payment_source only when the balance is zero. |
confirm_payment_intents | Confirm the order-owned legs you staged, one entry per leg in payment_intents |
setup | Save a newly collected credential, in setup_payment_source, on a zero-balance order |
resume | Continue 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 -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:
{
"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.
{
"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}} -->
{ "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.
- StatusHTTP 409What to doThe payment intent's state doesn't accept the action.
details[0].reasonsays why, such asmanaged_by_owner,in_progress,terminal_status, oralready_applied, and the details carrycurrent_statusandsupported_actions. - StatusHTTP 409What to do
expected_versionis stale.paramisexpected_version,resource_typeispayment_intent, anddetails[0].current_versionis the current version. Nothing changed. - StatusHTTP 409What to doAnother operation on the payment intent is still running. Nothing changed.
- StatusHTTP 409What to doAnother write reached the payment intent at the same moment. Nothing changed.
- StatusHTTP 500What to doThe 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_idif 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=trueselects payments you need to capture, or whose dispute needs your response now: aneeds_responseorinquiry_needs_responsedispute that still accepts evidence and whose deadline is absent or hasn't passed.falseselects the rest.currencytakes one uppercase ISO 4217 code, such asUSD, with or withoutmin_amountandmax_amount. The amount bounds require it.dispute_status=under_reviewmatches only disputes under review, andothermatches a dispute in a state Flint doesn't recognize yet. To list every disputed payment, send everydispute_statusvalue exceptnone.
<!-- docs-test {"scenario":"list","status":200,"list":true,"expect":{"request_id":"req_..."}} -->
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 related records in the list#
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:
expand | Adds | Also needs |
|---|---|---|
order | The order summary for order_id, including its buyer_contact | commerce.orders.read |
customer | The customer summary for customer_id | customers.read |
invoice | The invoice summary for invoice_id | commerce.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. created A payment intent was created. - payment_
intent. requires_ action The payment requires a customer action such as 3D Secure authentication. - payment_
intent. processing A payment was submitted and is awaiting its final outcome. - payment_
intent. requires_ capture The payment was authorized and is awaiting capture. - payment_
intent. succeeded A payment intent succeeded. - payment_
intent. payment_ failed A payment attempt failed. - payment_
intent. canceled A payment intent was canceled. - payment_
intent. expired A payment intent authorization expired before capture. - payment_
intent. fulfillment_ hold_ updated A payment intent fulfillment hold was activated or released. - payment_
intent. updated A payment intent changed without entering a more specific lifecycle status.
Payment intent events describes each payload.
Related guides#
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_collectionobjectSetup 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.
stripeobjectClient configuration for collecting the payment through Stripe.
add_on_feesarray of objectItemized 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_moneyobjectRequiredAmount of this fee. Added to the payment's `fee_money` on its balance transaction.
fee_typeenumRequiredThe Flint feature this fee pays for. A payment carries at most one of invoice_collection and subscription_collection. Can gain values: sum every entry rather than matching only the types you know.
invoice_collectionsubscription_collectionautomatic_tax
amount_moneyobjectRequiredThe 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.
amountintegerRequiredAmount in the currency's minor unit, such as cents for USD.
currencystringRequiredThree-letter uppercase ISO 4217 currency code for this amount, such as USD.
authorization_expires_atstringEffective 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_atstringWhen the processor authorized the payment. Absent until then.
authorized_moneyobjectThe 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.
amountintegerRequiredAmount in the currency's minor unit, such as cents for USD.
currencystringRequiredThree-letter uppercase ISO 4217 currency code for this amount, such as USD.
cancellation_reasonenumFlint-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_customerduplicatefraudulentabandonedinvoice_payment_failedinvoice_voidedorder_closedpayment_canceledpayment_returned
capturable_moneyobjectThe 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.
amountintegerRequiredAmount in the currency's minor unit, such as cents for USD.
currencystringRequiredThree-letter uppercase ISO 4217 currency code for this amount, such as USD.
capture_methodenumWhen money is collected. Defaults to automatic.
automaticmanual
captured_atstringWhen money was captured. For automatic capture, this is when the payment succeeded. Absent until capture.
captured_moneyobjectThe 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.
amountintegerRequiredAmount in the currency's minor unit, such as cents for USD.
currencystringRequiredThree-letter uppercase ISO 4217 currency code for this amount, such as USD.
captured_tip_moneyobjectThe 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.
amountintegerRequiredAmount in the currency's minor unit, such as cents for USD.
currencystringRequiredThree-letter uppercase ISO 4217 currency code for this amount, such as USD.
checkout_session_idstringFlint checkout session ID associated with this payment, when present.
created_atstringRFC3339 timestamp.
customerobject or nullThe 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
created_atstringRFC3339 timestamp.
customer_idstringRequiredUnique identifier for this customer, prefixed `cus_`.
emailstring or nullRequiredCustomer email. `null` when the customer has none. Unique among the environment's customers.
namestring or nullRequiredCustomer name. `null` when none is set.
phonestring or nullRequiredCustomer phone number. `null` when none is set.
statusenumRequiredWhere the customer is in the deletion lifecycle.
activedeletion_processingdeleted
updated_atstringRFC3339 timestamp.
customer_idstringCustomer linked to this payment intent.
customer_presenceenumRequiredWhether 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.
presentabsent
dispute_statusenumDispute 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
noneinquiry_needs_responseinquiry_under_reviewinquiry_closedneeds_responseunder_reviewwonlostpreventedother
external_reference_idstring or nullCaller-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_countintegerAll-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 objectNewest 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
buyer_emailstringEmail used for risk evaluation at admission.
buyer_ip_addressstringCanonical buyer IP stored at admission. API-key relays must supply a trusted buyer_ip_address.
card_brandstringCard brand recorded before authorization, when available.
card_countrystringCard issuing country, when provided by the processor. Not the buyer IP's country.
card_fingerprintstringMerchant/environment-scoped fingerprint used by risk card-fingerprint lists. Never a raw provider fingerprint.
card_last4stringLast four card digits recorded before authorization. Not a unique card identity.
created_atstringRequiredUTC time the attempt was created.
decline_codestringRequiredStable decline code recorded for this attempt.
payment_attempt_idstringRequiredIdentity of the failed attempt.
fulfillment_holdobjectPresent 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.
reasonenumRequiredWhy the hold exists, which follows its status.
external_payment_holdexternal_payment_hold_released
released_atstringRFC3339 timestamp.
requested_atstringRequiredRFC3339 timestamp.
required_actionenumRequiredWhat to do with fulfillment for this payment now. It follows the hold's status.
pause_fulfillmentreevaluate_fulfillment
statusenumRequiredWhether the hold is in force.
activereleased
updated_atstringRequiredRFC3339 timestamp.
idempotency_keystring or nullRequiredThe 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 nullThe 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
collection_block_statusenumWhether collection is blocked. While it is inventory_blocked, collection attempts return 409 ACTION_NOT_ALLOWED with details[0].reason inventory_wait.
noneinventory_blockedresolved
created_atstringWhen the invoice was created.
customer_idstringCustomer billed by the invoice. Absent when the invoice has no customer.
due_datestringCalendar due date in YYYY-MM-DD format, interpreted in timezone (UTC when absent). The outstanding balance becomes overdue only after this date ends. Automatic collection runs at the later of issue and the start of this date. With payment terms, issue computes this date from issued_at. Absent when there is no due date.
invoice_idstringRequiredFlint invoice ID.
invoice_numberstringSequential document number assigned when the invoice is issued. Absent on a draft.
is_overduebooleanRequiredWhether the invoice is open or partially_paid and past due with a balance remaining, as is_overdue on the full Invoice reports it.
order_idstringThe order the invoice bills.
pricing_amountsobjectRequiredThe invoice pricing totals, frozen at issue; a draft previews the backing order.
refund_statusenumHow much of the collected money has been refunded. It doesn't change status.
nonepartially_refundedrefunded
settlement_amountsobjectRequiredThe same settlement amounts as the full Invoice.
statusenumRequiredCurrent invoice status. paid and credited close the current balance and can reopen to open or partially_paid after a payment or credit allocation reversal; invoice.reopened reports that change. An uncollectible invoice accepts manual recovery payments and becomes paid when fully recovered; reversals restore the write-off. voided is final. Refunds change refund_status without reopening the balance. An ACH bank return reverses paid_money and reopens the balance. A lost card chargeback leaves paid_money, the balance, and status unchanged; collecting it again requires a new invoice.
draftopenpartially_paidpaidvoideduncollectiblecredited
supported_actionsarray of enumRequiredLifecycle actions Flint accepts for this resource now, based on stored state. Independent of the caller's permissions; each action still requires its route's scope. Always [] when no action is available.
collectissuemark_uncollectiblevoid
updated_atstringWhen the invoice last changed.
invoice_idstringInvoice this payment intent collects, when it pays an invoice.
invoice_schedule_entry_idstringThe invoice installment this payment collects.
last_payment_errorobject or nullRequiredMost recent payment error. Null when no payment error is recorded.
codeenumRequiredFlint-normalized payment failure code. Unknown provider values are returned as payment_failed.
card_declinedcard_declined_do_not_retrycard_details_outdatedinsufficient_fundsbank_account_closedbank_account_not_foundbank_debit_not_authorizedbank_account_restrictedbank_debit_limit_exceededauthentication_requiredpayment_blockedexpired_cardincorrect_cvclost_cardstolen_carddo_not_honorfraudulentprocessing_errorpayment_method_unavailablepayment_method_declinedpayment_not_completedpayment_action_expiredpayment_method_temporarily_unavailableincorrect_pinpin_try_exceededpin_requiredconfirmation_token_account_mismatchpayment_failed
failed_atstringRequiredTime the payment attempt concluded in failure.
messagestringRequiredFlint-authored merchant-facing payment failure message. This is stable explanatory text, not raw provider copy.
remediationobjectRequiredGuidance for resolving the payment failure before trying to collect again.
latest_order_payment_attempt_idstring or nullThe 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_idstringMerchant that owns this payment intent.
merchant_net_moneyobjectCaptured 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.
amountintegerRequiredAmount in the currency's minor unit, such as cents for USD.
currencystringRequiredThree-letter uppercase ISO 4217 currency code for this amount, such as USD.
metadatamap of stringCaller-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 nullThe 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
buyer_contactobjectBuyer contact recorded on the order, including guest contact when retained. Omitted when the order has no recorded contact.
Not returned with a checkout credential or a customer session
closed_atstringWhen the order last closed. Present exactly when status is closed.
closed_reasonenumWhy the order closed. Present exactly when status is closed. Flint returns other for an unrecognized reason and may add new values.
invoice_voidedpaidclosed_by_merchantcheckout_expiredwritten_offsupersededreturn_resolution_canceledother
created_atstringWhen the order was created, in RFC3339 format.
customer_idstringCustomer associated with the order, when one is set.
deferred_promotionsarray of objectRequiredPromotions accepted at subscription signup. They attach when the subscription is provisioned and first discount its first charged cycle. They do not discount this order and are separate from discounts and order totals. Always present; empty when no promotions are deferred.
fulfillment_statusenumAggregate progress across the order's fulfillment quantities.
not_fulfilledpartially_fulfilledfulfilledcancelednot_applicableclosed
governing_delivery_selection_idstring or nullRequiredID of the delivery selection that governs this order. Null when no selection governs the order.
order_idstringRequiredStable identifier of the expanded order.
order_numberstringHuman-readable order number for receipts and merchant reference.
paid_atstring or nullRequiredWhen the current paid state began, including a final capture that releases the remaining balance. A reversal that reopens the order clears this timestamp. `null` when `payment_status` isn't `paid`, including an order whose balance was written off without being paid.
payment_intent_idsarray of stringPayment intents associated with the order.
payment_statusenumRequiredCollection progress. Reversing a recorded invoice payment can move this back to unpaid or partially_paid. An invoice write-off also completes collection without receiving the written-off amount.
unpaidpartially_paidpaid
pricing_amountsobjectRequiredOrder totals before accounting for collected payments and refunds.
refund_statusenumRequiredRefund progress for collected money. Refunds with `reason` `payment_returned` return money the order never received and don't count.
nonepartially_refundedrefunded
settlement_amountsobjectRequiredPayments, refunds, credits, and amounts still owed for the order.
statusenumRequiredWhether the order still accepts changes and new payments. An order closed as paid reopens if reversing a recorded invoice payment leaves an outstanding order balance. Refunds, fulfillment, disputes, returns, and metadata or note edits continue on a closed order.
openclosed
supported_actionsarray of enumLifecycle actions Flint accepts on the order now, independent of permissions. Always present with merchant credentials.
Not returned with a checkout credential or a customer session
closepayresolve_inventory_exception
updated_atstringWhen the order was last updated, in RFC3339 format.
order_edit_idstringThe order edit whose balance this payment collects. Omitted when this payment doesn't collect an edit's balance.
order_idstringOrder 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.
overcaptureobjectWhether 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
maximum_capturable_moneyobjectRequiredThe most one capture can collect. Equals capturable_money when status is unavailable.
statusenumRequiredWhether the processor allows overcapturing this authorization. Can gain values; treat an unknown value as unavailable.
availableunavailable
payment_flowenumRequiredHow the payment was started. Fixed when the payment intent is created.
checkoutpayment_linkshopinvoicesubscription_initialsubscription_renewalvirtual_terminalapi
payment_intent_idstringRequiredFlint payment intent ID.
payment_optionsarray of enumRequiredPayment options the buyer can use for this payment.
cardapple_paygoogle_payaffirmach_debitcard_present
payment_sourceobjectSummary of the card or bank account used for the payment. Absent until a payment source is attached.
ach_debitobjectBank account details. Present when type is ach_debit.
cardobjectCard details. Present when type is card.
typeenumRequiredFunding-method family. Wallet payment options use card because their underlying funding source is a card.
cardach_debitaffirm
platform_feeobjectThe 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
amount_moneyobjectRequiredThe fee Flint will charge until the payment succeeds, then the fee charged. Flint lowers it at confirm and capture when the merchant's approved cap or Flint's own fees leave less, and it is 0 when Flint canceled the fee before collection.
partner_app_idstringRequiredThe partner app that charges the fee.
platform_fee_idstringRequiredThe platform fee record, which the partner app's owner reads.
refunded_moneyobjectRequiredThe fee debited from the platform for returns so far, including refunds the partner app created with `refund_platform_fee: true` and returns of the whole application fee. Matches the platform ledger, including returns awaiting completion; reversals reduce the total. 0 when nothing has been debited. See [Platform fees](/docs/guides/platform-fees).
processing_fee_detailsarray of objectApplied 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
amount_moneyobjectRequiredThis component's amount, in the payment currency.
typeenumRequiredApplied fee component: base percentage, international card, manual entry, currency conversion, fixed amount, or Tap to Pay.
baseinternational_cardmanual_entrycurrency_conversionfixedtap_to_pay
processing_fee_moneyobjectFlint'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
amountintegerRequiredAmount in the currency's minor unit, such as cents for USD.
currencystringRequiredThree-letter uppercase ISO 4217 currency code for this amount, such as USD.
reader_idstringThe 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 nullEmail 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 nullLast 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_statusenumHow much of captured_money has been refunded, including value issued as store credit, based on refunded_money.
nonepartially_refundedrefunded
refunded_moneyobjectTotal 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.
amountintegerRequiredAmount in the currency's minor unit, such as cents for USD.
currencystringRequiredThree-letter uppercase ISO 4217 currency code for this amount, such as USD.
released_moneyobjectThe 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.
amountintegerRequiredAmount in the currency's minor unit, such as cents for USD.
currencystringRequiredThree-letter uppercase ISO 4217 currency code for this amount, such as USD.
remaining_refundable_moneyobjectRemaining payment refund capacity after pending and completed refunds and order reservations. Present on affected merchant payment detail reads, including when the amount is zero.
amountintegerRequiredAmount in the currency's minor unit, such as cents for USD.
currencystringRequiredThree-letter uppercase ISO 4217 currency code for this amount, such as USD.
request_overcapturebooleanWhether 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_idstringFlint return ID associated with this payment, when present.
return_resolution_idstringThe return resolution whose balance this payment collects. Set for exchange balances and corrections.
riskobject or nullRisk 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
evaluated_atstringRequiredRFC3339 timestamp.
levelenumRequiredFraud risk level from the card processor's screening of the payment intent's latest payment attempt.
normalelevatedhighestnot_assessed
matched_risk_rule_idstringThe risk rule that decided the outcome. Absent when no risk rule did.
outcomeenum or nullWhat the risk evaluation decided about the payment intent's latest payment attempt. `null` when the evaluation has no outcome to report, such as when the attempt was canceled.
authorizedmanual_reviewblockedissuer_declinedinvalidnull
outcome_reasonenum or nullWhy the evaluation reached its outcome. `null` when the evaluation has no reason to report, such as an authorized payment that raised no flags.
highest_riskelevated_risklow_authorization_probabilityrisk_rulerisk_policynull
payment_review_idstringThe payment review opened for the attempt. Present only when the outcome is manual_review.
scoreintegerFraud score from the card processor's screening, from 0 to 99. Higher means riskier. Absent when no score is available, which isn't a score of 0.
statementstringRequiredA plain-language summary of the evaluation.
selected_payment_optionenumThe payment option the most recent confirmation used. Absent until the payment intent is first confirmed.
cardapple_paygoogle_payaffirmach_debitcard_present
splitsarray of objectTop-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
amount_moneyobjectRequiredThe admitted amount, or its final amount set at capture.
canceled_reasonenumPresent when status is canceled. Can gain values.
payment_not_completedinstall_revokedfully_reversed
collecting_merchant_idstringRequiredThe merchant of record that collected the payment.
created_atstringRequiredWhen the payment's create recorded the split.
descriptionstringThe collecting merchant's description, shown to the seller.
external_reference_idstringCaller-owned identifier for this resource in an external system. Shown to the seller. Exact, case-sensitive matching.
failure_reasonenumPresent when status is failed. Can gain values; unknown reasons use split_failed.
seller_cannot_receivesplit_failed
funds_available_atstring or nullRequiredWhen the funds become available on Flint's balance. Null when Stripe has not reported it or the payment never succeeded. Can move later after a won dispute; frozen at release.
partner_app_idstringRequiredThe collecting merchant's partner app.
partner_app_install_idstringRequiredThe seller's install of the app.
payment_intent_idstringRequiredThe collecting merchant's payment. Sellers can read the split, but not the payment.
payment_split_idstringRequiredUnique identifier for the split.
pending_reasonenumPresent when status is pending. Can gain values.
awaiting_paymentdispute_openreversals_pendingawaiting_funds
reversalsarray of objectRequiredRead-only nested children created by Flint, embedded whole. Empty when none. At most one per refund and one per dispute.
reversed_moneyobjectRequiredReversals' total amount minus their reinstated amounts.
seller_merchant_idstringRequiredThe merchant receiving the split.
shortfall_moneyobjectRequiredReversed funds the collecting merchant covered for the seller, less reinstatements. The seller's net is amount_money minus reversed_money plus shortfall_money.
statusenumRequiredThe split lifecycle status.
pendingprocessingsucceededfailedcanceled
succeeded_atstringWhen the split reached the seller's balance. Present when succeeded.
updated_atstringRequiredWhen the split last changed.
versionintegerRequiredPersisted version of this resource's owned state. Expanded resources and external observations can change independently.
statement_descriptorstring or nullRequiredThe 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.
statusenumRequiredLifecycle 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_methodrequires_confirmationrequires_actionprocessingrequires_capturecanceledsucceededexpired
subscription_idstringThe 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_referencestringRequiredOpaque payment reference to share with merchant support. Do not parse its format.
supported_actionsarray of enumRequiredVerbs 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
confirmcapturecancel
tip_moneyobject or nullPortion 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.
amountintegerRequiredAmount in the currency's minor unit, such as cents for USD.
currencystringRequiredThree-letter uppercase ISO 4217 currency code for this amount, such as USD.
transaction_purposeenumWhy a bank debit is taken. Set only when payment_options includes ach_debit, and fixed once the payment intent exists.
goodsservicesother
updated_atstringRFC3339 timestamp.
versionintegerRequiredPersisted version of this resource's owned state. Expanded resources and external observations can change independently.
{
"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#
/v1/payment-intentsRequires 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_keystringFilter 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_sizeintegerMaximum number of results to return, from 1 to 100. Defaults to 20.
page_tokenstringOpaque, 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_idstringFilter by order ID.
customer_idstringFilter by customer ID.
emailstringFilter 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_idstringFilter by invoice ID.
is_action_requiredbooleanFilter 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_attemptsbooleanMatch any historical failed attempt, including successful retries. Combine with status=requires_payment_method for payments still awaiting another method. Merchant credentials only.
payment_link_idstringMatch payments from a checkout session created by this payment link. Merchant credentials only.
decline_codestringExact failed-attempt decline code. Evidence filters match the same failed attempt. Merchant credentials only.
card_fingerprintstringExact merchant/environment risk-list card fingerprint on a failed attempt. Merchant credentials only.
buyer_ip_addressstringExact canonical IP on a failed attempt. Merchant credentials only.
card_last4stringExact 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 enumExact 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.
visamastercardamexdiscoverdinersjcbunionpay
statusarray of enumFilter 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_methodrequires_confirmationrequires_actionprocessingrequires_capturecanceledsucceededexpired
risk_levelarray of enumFilter 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.
normalelevatedhighestnot_assessed
payment_flowarray of enumFilter 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.
checkoutpayment_linkshopinvoicesubscription_initialsubscription_renewalvirtual_terminalapi
external_reference_idstringExact-match filter on the caller-owned external reference ID.
return_idstringFilter by linked Return ID.
return_resolution_idstringFilter by linked ReturnResolution ID.
querystringSearch 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_amountintegerInclusive lower bound on amount_money.amount. Requires currency.
max_amountintegerInclusive upper bound on amount_money.amount. Requires currency.
currencystringExact 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 enumExact 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.
nonepartially_refundedrefunded
dispute_statusarray of enumExact 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.
noneinquiry_needs_responseinquiry_under_reviewinquiry_closedneeds_responseunder_reviewwonlostpreventedother
sort_byenumField to sort by. Defaults to created_at; ties are broken by payment_intent_id.
created_atupdated_atamount_moneycaptured_money
sort_directionenumSort direction. Defaults to desc.
ascdesc
created_afterstringInclusive lower bound on created_at.
created_beforestringExclusive upper bound on created_at.
updated_afterstringInclusive lower bound on updated_at.
updated_beforestringExclusive upper bound on updated_at.
captured_afterstringInclusive lower bound on captured_at.
captured_beforestringExclusive upper bound on captured_at.
expandarray of enumInclude 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.
customerinvoiceorder
Response · 200
A page of payment intents.
dataarray of objectRequiredResource, collection, or operation result returned by this request.
add_on_feesarray of objectItemized 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_moneyobjectRequiredThe 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_atstringEffective 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_atstringWhen the processor authorized the payment. Absent until then.
authorized_moneyobjectThe 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_reasonenumFlint-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_customerduplicatefraudulentabandonedinvoice_payment_failedinvoice_voidedorder_closedpayment_canceledpayment_returned
capturable_moneyobjectThe 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_methodenumWhen money is collected. Defaults to automatic.
automaticmanual
captured_atstringWhen money was captured. For automatic capture, this is when the payment succeeded. Absent until capture.
captured_moneyobjectThe 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_moneyobjectThe 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_idstringFlint checkout session ID associated with this payment, when present.
created_atstringRFC3339 timestamp.
customerobject or nullThe 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_idstringCustomer linked to this payment intent.
customer_presenceenumRequiredWhether 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.
presentabsent
dispute_statusenumDispute 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
noneinquiry_needs_responseinquiry_under_reviewinquiry_closedneeds_responseunder_reviewwonlostpreventedother
external_reference_idstring or nullCaller-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_countintegerAll-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 objectNewest 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_holdobjectPresent 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 nullRequiredThe 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 nullThe 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_idstringInvoice this payment intent collects, when it pays an invoice.
invoice_schedule_entry_idstringThe invoice installment this payment collects.
last_payment_errorobject or nullRequiredMost recent payment error. Null when no payment error is recorded.
latest_order_payment_attempt_idstring or nullThe 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_idstringMerchant that owns this payment intent.
merchant_net_moneyobjectCaptured 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 stringCaller-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 nullThe 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_idstringThe order edit whose balance this payment collects. Omitted when this payment doesn't collect an edit's balance.
order_idstringOrder 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.
overcaptureobjectWhether 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_flowenumRequiredHow the payment was started. Fixed when the payment intent is created.
checkoutpayment_linkshopinvoicesubscription_initialsubscription_renewalvirtual_terminalapi
payment_intent_idstringRequiredFlint payment intent ID.
payment_optionsarray of enumRequiredPayment options the buyer can use for this payment.
cardapple_paygoogle_payaffirmach_debitcard_present
payment_sourceobjectSummary of the card or bank account used for the payment. Absent until a payment source is attached.
platform_feeobjectThe 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 objectApplied 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_moneyobjectFlint'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_idstringThe 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 nullEmail 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 nullLast 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_statusenumHow much of captured_money has been refunded, including value issued as store credit, based on refunded_money.
nonepartially_refundedrefunded
refunded_moneyobjectTotal 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_moneyobjectThe 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_moneyobjectRemaining 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_overcapturebooleanWhether 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_idstringFlint return ID associated with this payment, when present.
return_resolution_idstringThe return resolution whose balance this payment collects. Set for exchange balances and corrections.
riskobject or nullRisk 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_optionenumThe payment option the most recent confirmation used. Absent until the payment intent is first confirmed.
cardapple_paygoogle_payaffirmach_debitcard_present
splitsarray of objectTop-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 nullRequiredThe 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.
statusenumRequiredLifecycle 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_methodrequires_confirmationrequires_actionprocessingrequires_capturecanceledsucceededexpired
subscription_idstringThe 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_referencestringRequiredOpaque payment reference to share with merchant support. Do not parse its format.
supported_actionsarray of enumRequiredVerbs 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
confirmcapturecancel
tip_moneyobject or nullPortion 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_purposeenumWhy a bank debit is taken. Set only when payment_options includes ach_debit, and fixed once the payment intent exists.
goodsservicesother
updated_atstringRFC3339 timestamp.
versionintegerRequiredPersisted version of this resource's owned state. Expanded resources and external observations can change independently.
metaobjectAdditional information about this response.
api_versionstringAPI version used to produce this response.
idempotency_replayedbooleanWhether this response replays a stored result for the supplied Idempotency-Key.
trace_idstringTrace identifier to include when contacting Flint about this request.
warningsarray of objectConditions that need attention even though the request succeeded.
next_page_tokenstringOpaque token to send as `page_token` to retrieve the next page. Omitted when there is no next page.
request_idstringRequiredIdentifier 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.
{
"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#
/v1/payment-intentsKey requiredRequires 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_moneyobjectAmount 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.
amountintegerRequiredPositive amount in the currency's minor unit, such as cents for USD.
currencystringRequiredThree-letter uppercase ISO 4217 currency code for this amount, such as USD.
capture_methodenumautomatic collects the payment when it is confirmed. manual places a hold at confirmation that you capture or cancel later. Defaults to automatic.
automaticmanual
customer_idstringCustomer to link to this payment intent.
expected_order_versionintegerOptional order version from the last order read. Accepted only with order_id; the create fails with VERSION_CONFLICT if the order changed.
external_reference_idstringCaller-owned identifier for this resource in an external system.
metadatamap of stringCaller-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_idstringOrder 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 enumPayment 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.
cardapple_paygoogle_payaffirmach_debitcard_present
payment_return_urlstringWhere 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_selectionobjectCard and wallet selection for an order-owned payment leg. Accepted only with order_id and cannot be combined with nonempty payment_options.
cardobjectOffer the card payment source. Its `digital_wallets` add Apple Pay or Google Pay to it.
platform_feeobjectA 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).
amount_moneyobjectRequiredThe fee, at least 1 minor unit, in the payment's currency. A fixed amount: compute any percentage yourself. Omit platform_fee when creating a payment without a fee.
receipt_emailstringEmail 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_overcapturebooleanLet 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 objectDivide 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.
amount_moneyobjectRequiredSeller's share above zero, in the payment's currency.
descriptionstringDescription shown to the seller, 1 to 500 characters.
external_reference_idstringCaller-owned identifier for this resource in an external system. Shown to the seller. Exact, case-sensitive matching. Must contain 1 to 255 characters (Unicode code points).
partner_app_install_idstringRequiredSeller install of the collecting merchant's partner app. At most one split per install.
tip_moneyobjectPortion 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.
amountintegerRequiredAmount in the currency's minor unit, such as cents for USD.
currencystringRequiredThree-letter uppercase ISO 4217 currency code for this amount, such as USD.
transaction_purposeenumWhy the bank debit is taken. Required when payment_options includes ach_debit, and rejected with INVALID_REQUEST and NOT_ALLOWED on transaction_purpose otherwise.
goodsservicesother
Response · 201
The created payment intent flat in data, beside payment_collection guidance for online payments.
dataobjectRequiredResource, collection, or operation result returned by this request.
payment_collectionobjectSetup 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 objectItemized 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_moneyobjectRequiredThe 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_atstringEffective 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_atstringWhen the processor authorized the payment. Absent until then.
authorized_moneyobjectThe 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_reasonenumFlint-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_customerduplicatefraudulentabandonedinvoice_payment_failedinvoice_voidedorder_closedpayment_canceledpayment_returned
capturable_moneyobjectThe 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_methodenumWhen money is collected. Defaults to automatic.
automaticmanual
captured_atstringWhen money was captured. For automatic capture, this is when the payment succeeded. Absent until capture.
captured_moneyobjectThe 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_moneyobjectThe 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_idstringFlint checkout session ID associated with this payment, when present.
created_atstringRFC3339 timestamp.
customerobject or nullThe 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_idstringCustomer linked to this payment intent.
customer_presenceenumRequiredWhether 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.
presentabsent
dispute_statusenumDispute 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
noneinquiry_needs_responseinquiry_under_reviewinquiry_closedneeds_responseunder_reviewwonlostpreventedother
external_reference_idstring or nullCaller-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_countintegerAll-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 objectNewest 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_holdobjectPresent 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 nullRequiredThe 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 nullThe 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_idstringInvoice this payment intent collects, when it pays an invoice.
invoice_schedule_entry_idstringThe invoice installment this payment collects.
last_payment_errorobject or nullRequiredMost recent payment error. Null when no payment error is recorded.
latest_order_payment_attempt_idstring or nullThe 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_idstringMerchant that owns this payment intent.
merchant_net_moneyobjectCaptured 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 stringCaller-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 nullThe 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_idstringThe order edit whose balance this payment collects. Omitted when this payment doesn't collect an edit's balance.
order_idstringOrder 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.
overcaptureobjectWhether 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_flowenumRequiredHow the payment was started. Fixed when the payment intent is created.
checkoutpayment_linkshopinvoicesubscription_initialsubscription_renewalvirtual_terminalapi
payment_intent_idstringRequiredFlint payment intent ID.
payment_optionsarray of enumRequiredPayment options the buyer can use for this payment.
cardapple_paygoogle_payaffirmach_debitcard_present
payment_sourceobjectSummary of the card or bank account used for the payment. Absent until a payment source is attached.
platform_feeobjectThe 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 objectApplied 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_moneyobjectFlint'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_idstringThe 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 nullEmail 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 nullLast 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_statusenumHow much of captured_money has been refunded, including value issued as store credit, based on refunded_money.
nonepartially_refundedrefunded
refunded_moneyobjectTotal 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_moneyobjectThe 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_moneyobjectRemaining 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_overcapturebooleanWhether 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_idstringFlint return ID associated with this payment, when present.
return_resolution_idstringThe return resolution whose balance this payment collects. Set for exchange balances and corrections.
riskobject or nullRisk 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_optionenumThe payment option the most recent confirmation used. Absent until the payment intent is first confirmed.
cardapple_paygoogle_payaffirmach_debitcard_present
splitsarray of objectTop-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 nullRequiredThe 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.
statusenumRequiredLifecycle 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_methodrequires_confirmationrequires_actionprocessingrequires_capturecanceledsucceededexpired
subscription_idstringThe 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_referencestringRequiredOpaque payment reference to share with merchant support. Do not parse its format.
supported_actionsarray of enumRequiredVerbs 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
confirmcapturecancel
tip_moneyobject or nullPortion 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_purposeenumWhy a bank debit is taken. Set only when payment_options includes ach_debit, and fixed once the payment intent exists.
goodsservicesother
updated_atstringRFC3339 timestamp.
versionintegerRequiredPersisted version of this resource's owned state. Expanded resources and external observations can change independently.
metaobjectAdditional information about this response.
api_versionstringAPI version used to produce this response.
idempotency_replayedbooleanWhether this response replays a stored result for the supplied Idempotency-Key.
trace_idstringTrace identifier to include when contacting Flint about this request.
warningsarray of objectConditions that need attention even though the request succeeded.
request_idstringRequiredIdentifier 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#
/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_idstringRequiredFlint 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 enumInclude 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.
customerinvoiceorder
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.
{
"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#
/v1/payment-intents/{payment_intent_id}IdempotentRequires 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_idstringRequiredFlint 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_moneyobjectPayment amount. Can change only while status is requires_payment_method and before the first confirmation attempt. Cannot be cleared.
amountintegerRequiredPositive amount in the currency's minor unit, such as cents for USD.
currencystringRequiredThree-letter uppercase ISO 4217 currency code for this amount, such as USD.
customer_idstringCustomer linked to this payment intent. Can change only while status is requires_payment_method. Cannot be cleared.
expected_versionintegerOptional 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 nullCaller-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 nullCaller-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 nullSend 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 nullPortion 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.
amountintegerRequiredAmount in the currency's minor unit, such as cents for USD.
currencystringRequiredThree-letter uppercase ISO 4217 currency code for this amount, such as USD.
Response · 200
The updated payment intent.
dataobjectRequiredResource, collection, or operation result returned by this request.
add_on_feesarray of objectItemized 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_moneyobjectRequiredThe 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_atstringEffective 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_atstringWhen the processor authorized the payment. Absent until then.
authorized_moneyobjectThe 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_reasonenumFlint-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_customerduplicatefraudulentabandonedinvoice_payment_failedinvoice_voidedorder_closedpayment_canceledpayment_returned
capturable_moneyobjectThe 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_methodenumWhen money is collected. Defaults to automatic.
automaticmanual
captured_atstringWhen money was captured. For automatic capture, this is when the payment succeeded. Absent until capture.
captured_moneyobjectThe 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_moneyobjectThe 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_idstringFlint checkout session ID associated with this payment, when present.
created_atstringRFC3339 timestamp.
customerobject or nullThe 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_idstringCustomer linked to this payment intent.
customer_presenceenumRequiredWhether 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.
presentabsent
dispute_statusenumDispute 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
noneinquiry_needs_responseinquiry_under_reviewinquiry_closedneeds_responseunder_reviewwonlostpreventedother
external_reference_idstring or nullCaller-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_countintegerAll-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 objectNewest 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_holdobjectPresent 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 nullRequiredThe 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 nullThe 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_idstringInvoice this payment intent collects, when it pays an invoice.
invoice_schedule_entry_idstringThe invoice installment this payment collects.
last_payment_errorobject or nullRequiredMost recent payment error. Null when no payment error is recorded.
latest_order_payment_attempt_idstring or nullThe 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_idstringMerchant that owns this payment intent.
merchant_net_moneyobjectCaptured 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 stringCaller-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 nullThe 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_idstringThe order edit whose balance this payment collects. Omitted when this payment doesn't collect an edit's balance.
order_idstringOrder 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.
overcaptureobjectWhether 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_flowenumRequiredHow the payment was started. Fixed when the payment intent is created.
checkoutpayment_linkshopinvoicesubscription_initialsubscription_renewalvirtual_terminalapi
payment_intent_idstringRequiredFlint payment intent ID.
payment_optionsarray of enumRequiredPayment options the buyer can use for this payment.
cardapple_paygoogle_payaffirmach_debitcard_present
payment_sourceobjectSummary of the card or bank account used for the payment. Absent until a payment source is attached.
platform_feeobjectThe 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 objectApplied 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_moneyobjectFlint'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_idstringThe 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 nullEmail 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 nullLast 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_statusenumHow much of captured_money has been refunded, including value issued as store credit, based on refunded_money.
nonepartially_refundedrefunded
refunded_moneyobjectTotal 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_moneyobjectThe 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_moneyobjectRemaining 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_overcapturebooleanWhether 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_idstringFlint return ID associated with this payment, when present.
return_resolution_idstringThe return resolution whose balance this payment collects. Set for exchange balances and corrections.
riskobject or nullRisk 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_optionenumThe payment option the most recent confirmation used. Absent until the payment intent is first confirmed.
cardapple_paygoogle_payaffirmach_debitcard_present
splitsarray of objectTop-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 nullRequiredThe 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.
statusenumRequiredLifecycle 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_methodrequires_confirmationrequires_actionprocessingrequires_capturecanceledsucceededexpired
subscription_idstringThe 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_referencestringRequiredOpaque payment reference to share with merchant support. Do not parse its format.
supported_actionsarray of enumRequiredVerbs 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
confirmcapturecancel
tip_moneyobject or nullPortion 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_purposeenumWhy a bank debit is taken. Set only when payment_options includes ach_debit, and fixed once the payment intent exists.
goodsservicesother
updated_atstringRFC3339 timestamp.
versionintegerRequiredPersisted version of this resource's owned state. Expanded resources and external observations can change independently.
metaobjectAdditional information about this response.
api_versionstringAPI version used to produce this response.
idempotency_replayedbooleanWhether this response replays a stored result for the supplied Idempotency-Key.
trace_idstringTrace identifier to include when contacting Flint about this request.
warningsarray of objectConditions that need attention even though the request succeeded.
request_idstringRequiredIdentifier 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#
/v1/payment-intents/{payment_intent_id}/activitiesRequires 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_idstringRequiredFlint 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_sizeintegerMaximum number of results to return, from 1 to 100. Defaults to 20.
page_tokenstringOpaque, 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_directionenumSort direction. Defaults to desc.
ascdesc
activity_typearray of enumFilter 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.
createdupdatedstatus_changedfailedcanceledexpiredrefund_createdrefund_status_changeddispute_status_changedreceipt_sentreceipt_queuedreceipt_delivery_failed
Response · 200
A page of payment intent activities.
dataarray of objectRequiredResource, collection, or operation result returned by this request.
activity_typeenumRequiredWhat kind of change this entry records.
othercreatedupdatedstatus_changedfailedcanceledexpiredrefund_createdrefund_status_changeddispute_status_changedreceipt_sentreceipt_queuedreceipt_delivery_failed
actorobject or nullRequiredIdentity that initiated this action, with its label recorded at the time. Null when the action was automated or no initiating merchant identity was recorded. Refund creation retains its initiating actor when a worker processes it. Later processor updates are automated activity.
checkout_session_idstringID of the checkout session that created the payment intent. Present only on `created` entries, when the payment intent has no order.
created_atstringRequiredRFC3339 timestamp.
descriptionstringRequiredShort human-readable summary of the change. It doesn't carry processor diagnostics, so read the referenced resource for details.
dispute_idstringID of the dispute this entry is about. Present on dispute entries.
from_dispute_statusenumThe payment's dispute status before the change. Present on `dispute_status_changed` entries.
noneinquiry_needs_responseinquiry_under_reviewinquiry_closedneeds_responseunder_reviewwonlostpreventedother
from_statusenumThe payment intent's status before the change. Present on entries that record a status change.
requires_payment_methodrequires_confirmationrequires_actionprocessingrequires_capturecanceledsucceededexpired
order_idstringID of the order the payment intent belongs to. Present only on `created` entries, and only when the payment intent belongs to an order.
payment_intent_activity_idstringRequiredFlint ID of this activity entry.
refund_idstringID of the refund this entry is about. Present on refund entries.
to_dispute_statusenumThe payment's dispute status after the change. Present on `dispute_status_changed` entries.
noneinquiry_needs_responseinquiry_under_reviewinquiry_closedneeds_responseunder_reviewwonlostpreventedother
to_statusenumThe payment intent's status after the change. Present on entries that record a status change.
requires_payment_methodrequires_confirmationrequires_actionprocessingrequires_capturecanceledsucceededexpired
metaobjectAdditional information about this response.
api_versionstringAPI version used to produce this response.
idempotency_replayedbooleanWhether this response replays a stored result for the supplied Idempotency-Key.
trace_idstringTrace identifier to include when contacting Flint about this request.
warningsarray of objectConditions that need attention even though the request succeeded.
next_page_tokenstringOpaque token to send as `page_token` to retrieve the next page. Omitted when there is no next page.
request_idstringRequiredIdentifier 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.
{
"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#
/v1/payment-intents/{payment_intent_id}/cancelIdempotentRequires 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_idstringRequiredFlint 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_reasonenumOptional merchant-supplied cancellation reason.
requested_by_customerduplicatefraudulentabandoned
expected_versionintegerOptional 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.
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#
/v1/payment-intents/{payment_intent_id}/captureIdempotentRequires 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_idstringRequiredFlint 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_moneyobjectAmount 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.
amountintegerRequiredPositive amount in the currency's minor unit, such as cents for USD.
currencystringRequiredThree-letter uppercase ISO 4217 currency code for this amount, such as USD.
expected_versionintegerOptional 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_moneyobjectThe 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.
amountintegerRequiredPositive amount in the currency's minor unit, such as cents for USD.
currencystringRequiredThree-letter uppercase ISO 4217 currency code for this amount, such as USD.
platform_feeobjectA 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).
amount_moneyobjectRequiredThe fee, at least 1 minor unit, in the payment's currency. A fixed amount: compute any percentage yourself. Omit platform_fee when creating a payment without a fee.
splitsarray of objectFinal 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.
amount_moneyobjectRequiredFinal split amount above zero, in the payment's currency.
payment_split_idstringRequiredExisting split of this payment. Include every split that isn't canceled, once each.
tip_moneyobjectThe 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.
amountintegerRequiredAmount in the currency's minor unit, such as cents for USD.
currencystringRequiredThree-letter uppercase ISO 4217 currency code for this amount, such as USD.
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#
/v1/payment-intents/{payment_intent_id}/confirmIdempotentRequires 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_idstringRequiredFlint 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_addressstringThe 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_typeenumHow 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.
urlstripe
expected_versionintegerOptional 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_urlstringWhere 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 ofCredential 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.
Send exactly one of these
The `payment_method` variant of `PaymentSourceCredential`.
credential_typeenumRequiredSelects the credential supplied for this payment.
payment_method
customer_presenceenumWhether the customer is present for this payment. Defaults to present. Send absent to charge a saved card while the customer is away, such as for a no-show fee, damages, or a top-up. Flint then sends the charge to the card network as merchant-initiated, using the card's stored credential, so the bank can't ask the customer to authenticate. absent can be sent only with an API key or partner token, and only for a saved card whose usage is off_session; a card the customer saved for checkout only returns 409 ACTION_NOT_ALLOWED with reason payment_method_not_reusable. If the bank still requires authentication, the payment fails with status requires_payment_method and last_payment_error.code authentication_required. Ask the customer to pay while present instead of retrying.
presentabsent
payment_method_idstringRequiredA payment method saved in Flint for the customer making this payment.
save_payment_methodbooleanSaves 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_textstringThe 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.
dataobjectRequiredResource, collection, or operation result returned by this request.
current_payment_actionobject or nullRequiredTyped browser authority for this payment's current action, including an order leg. Complete it, then call the same confirm endpoint without payment_source. `null` when no buyer action is needed or Flint cannot produce the action yet. If status is requires_action and this is `null`, call confirm again without payment_source.
add_on_feesarray of objectItemized 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_moneyobjectRequiredThe 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_atstringEffective 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_atstringWhen the processor authorized the payment. Absent until then.
authorized_moneyobjectThe 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_reasonenumFlint-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_customerduplicatefraudulentabandonedinvoice_payment_failedinvoice_voidedorder_closedpayment_canceledpayment_returned
capturable_moneyobjectThe 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_methodenumWhen money is collected. Defaults to automatic.
automaticmanual
captured_atstringWhen money was captured. For automatic capture, this is when the payment succeeded. Absent until capture.
captured_moneyobjectThe 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_moneyobjectThe 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_idstringFlint checkout session ID associated with this payment, when present.
created_atstringRFC3339 timestamp.
customerobject or nullThe 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_idstringCustomer linked to this payment intent.
customer_presenceenumRequiredWhether 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.
presentabsent
dispute_statusenumDispute 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
noneinquiry_needs_responseinquiry_under_reviewinquiry_closedneeds_responseunder_reviewwonlostpreventedother
external_reference_idstring or nullCaller-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_countintegerAll-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 objectNewest 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_holdobjectPresent 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 nullRequiredThe 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 nullThe 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_idstringInvoice this payment intent collects, when it pays an invoice.
invoice_schedule_entry_idstringThe invoice installment this payment collects.
last_payment_errorobject or nullRequiredMost recent payment error. Null when no payment error is recorded.
latest_order_payment_attempt_idstring or nullThe 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_idstringMerchant that owns this payment intent.
merchant_net_moneyobjectCaptured 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 stringCaller-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 nullThe 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_idstringThe order edit whose balance this payment collects. Omitted when this payment doesn't collect an edit's balance.
order_idstringOrder 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.
overcaptureobjectWhether 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_flowenumRequiredHow the payment was started. Fixed when the payment intent is created.
checkoutpayment_linkshopinvoicesubscription_initialsubscription_renewalvirtual_terminalapi
payment_intent_idstringRequiredFlint payment intent ID.
payment_optionsarray of enumRequiredPayment options the buyer can use for this payment.
cardapple_paygoogle_payaffirmach_debitcard_present
payment_sourceobjectSummary of the card or bank account used for the payment. Absent until a payment source is attached.
platform_feeobjectThe 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 objectApplied 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_moneyobjectFlint'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_idstringThe 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 nullEmail 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 nullLast 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_statusenumHow much of captured_money has been refunded, including value issued as store credit, based on refunded_money.
nonepartially_refundedrefunded
refunded_moneyobjectTotal 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_moneyobjectThe 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_moneyobjectRemaining 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_overcapturebooleanWhether 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_idstringFlint return ID associated with this payment, when present.
return_resolution_idstringThe return resolution whose balance this payment collects. Set for exchange balances and corrections.
riskobject or nullRisk 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_optionenumThe payment option the most recent confirmation used. Absent until the payment intent is first confirmed.
cardapple_paygoogle_payaffirmach_debitcard_present
splitsarray of objectTop-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 nullRequiredThe 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.
statusenumRequiredLifecycle 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_methodrequires_confirmationrequires_actionprocessingrequires_capturecanceledsucceededexpired
subscription_idstringThe 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_referencestringRequiredOpaque payment reference to share with merchant support. Do not parse its format.
supported_actionsarray of enumRequiredVerbs 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
confirmcapturecancel
tip_moneyobject or nullPortion 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_purposeenumWhy a bank debit is taken. Set only when payment_options includes ach_debit, and fixed once the payment intent exists.
goodsservicesother
updated_atstringRFC3339 timestamp.
versionintegerRequiredPersisted version of this resource's owned state. Expanded resources and external observations can change independently.
metaobjectAdditional information about this response.
api_versionstringAPI version used to produce this response.
idempotency_replayedbooleanWhether this response replays a stored result for the supplied Idempotency-Key.
trace_idstringTrace identifier to include when contacting Flint about this request.
warningsarray of objectConditions that need attention even though the request succeeded.
request_idstringRequiredIdentifier 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#
/v1/payment-intents/{payment_intent_id}/send-receiptIdempotentRequires 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_idstringRequiredFlint 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
emailstringEmail 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?