Manual capture
A payment normally collects the money the moment it's confirmed. With manual capture, confirming only places a hold, called an authorization, on the buyer's card for the full amount. No money moves. Later you capture, which collects some or all of the held amount, or cancel, which releases the hold without charging anything.
Use it when you don't know the final amount while the buyer is paying: a rental with a damage deposit, a hotel stay with incidentals, a service quoted before the work is done, a bar tab. It also fits when you know the amount but need to confirm you can deliver first: a pre-order, a stock check, or a manual review of a large payment.
If you always charge the full amount right away, keep the default "capture_method": "automatic". Every hold needs a decision, capture or cancel, before it expires, and a forgotten hold ties up the buyer's money for days.
Where you can use it#
You choose manual capture with "capture_method": "manual" when your server creates the PaymentIntent with an API key:
| Payment | Manual capture |
|---|---|
A standalone PaymentIntent from POST /v1/payment-intents | Yes |
A payment leg on an order, from POST /v1/payment-intents | Yes, with one leg per payment attempt. See Manual capture on orders. |
| Checkout sessions, payment links, invoices, and subscriptions | No. These always capture automatically. |
The payment options on the PaymentIntent decide how you can capture:
| Payment option | What you can capture |
|---|---|
card, apple_pay, google_pay | All of the hold, or part of it |
card_present | All of the hold, or part of it, for a card tapped, inserted, or swiped on a reader |
affirm | All of the hold only. See Affirm. |
ach_debit | Not offered with manual capture. Asking for it returns PAYMENT_OPTION_UNAVAILABLE with reason manual_capture_not_supported. |
How a hold works#
A manual-capture PaymentIntent follows the usual lifecycle with one extra stop. After confirmation it waits in requires_capture until you capture, you cancel, or the hold expires.
- requires_payment_method moves to requires_action on confirm, card needs 3D Secure
- requires_action moves to requires_capture on buyer authenticates
- requires_payment_method moves to requires_capture on confirm
- requires_capture moves to succeeded on capture
- requires_capture moves to canceled on cancel
- requires_capture moves to expired on authorization_expires_at passes
amount_money is the amount you asked the buyer for, and capturing never changes it. Four money fields say where the funds stand. Each is absent until the hold is placed:
| Field | Meaning |
|---|---|
authorized_money | The amount of the hold. Always equals amount_money (on a payment_returned cancel, the authorization Flint released), and never changes, even when an overcapture collects more. |
capturable_money | What you can still capture. Equals authorized_money while the hold is open, and drops to zero once you capture or cancel, or the hold expires. |
captured_money | What you collected. Zero until you capture. Book revenue and print receipts from this field. |
released_money | What went back to the buyer without being charged: the uncaptured part after a partial capture, or the whole hold after a cancellation or expiry. |
authorized_money equals captured_money plus capturable_money plus released_money whenever you capture no more than the hold. An overcapture is the one exception: capturable_money and released_money are zero, and captured_money is above authorized_money by the amount overcaptured.
Three timestamps go with them. authorized_at and authorization_expires_at are set when the hold is placed, and captured_at when you capture. authorization_expires_at is the deadline for your decision; see Authorization expiry.
Every PaymentIntent in a response or webhook carries supported_actions, the actions its current state accepts. While the hold is open it's ["capture", "cancel"]. After a capture, cancellation, or expiry it's []. Choose your next call from this list rather than from status. A listed action can still be refused by something outside the PaymentIntent, such as an open payment review or the state of its order.
Place a hold#
- Your server sends POST /v1/payment-intents with capture_method manual to Flint
- Flint returns payment_collection for Stripe Elements to Your server
- Browser sends ConfirmationToken ID from Elements to Your server
- Your server sends POST /v1/payment-intents/{id}/confirm to Flint
- Flint returns status requires_capture to Your server
- Flint sends payment_intent.requires_capture webhook to Your server
- Your server sends POST /v1/payment-intents/{id}/capture, once you know the amount to Flint
- Flint returns status succeeded, with captured_money to Your server
Create the PaymentIntent with "capture_method": "manual". Set amount_money to the most you expect to collect. You can capture less. To let one capture add a tip or cover a final bill above the hold, also send "request_overcapture": true; see Capture the final bill and a tip.
<!-- docs-test {"scenario":"full","status":201} -->
curl -X POST https://api.withflintpay.com/v1/payment-intents \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Idempotency-Key: hold-camera-rental-001" \
-d '{
"amount_money": {"amount": 12900, "currency": "USD"},
"payment_options": ["card"],
"capture_method": "manual"
}'
{
"data": {
"payment_intent_id": "pi_1kmn0aExample",
"status": "requires_payment_method",
"supported_actions": ["confirm", "cancel"],
"amount_money": {"amount": 12900, "currency": "USD"},
"capture_method": "manual",
"payment_options": ["card"],
"payment_flow": "api",
"payment_collection": {
"stripe": {
"account_id": "acct_Example",
"publishable_key": "pk_test_Example",
"elements": {
"next_step": "create_confirmation_token",
"submit_to": "confirm_payment_intent",
"mode": "payment",
"amount_money": {"amount": 12900, "currency": "USD"},
"payment_options": ["card"],
"payment_method_creation": "manual"
}
}
}
},
"request_id": "req_01KWM6WAHG3N9Q8T2V5XRZ7C4D"
}
Confirming places the hold. Mount Stripe Elements from payment_collection, call elements.submit(), create a ConfirmationToken in the browser, and send its ctoken_... ID to your server. Your server confirms; the browser never confirms the PaymentIntent itself. Server-confirmed payments covers collection and 3D Secure in full.
<!-- docs-test {"scenario":"full","status":200,"card":"pm_card_visa"} -->
curl -X POST https://api.withflintpay.com/v1/payment-intents/pi_1kmn0aExample/confirm \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Idempotency-Key: confirm-camera-rental-001" \
-d '{"payment_source": {"credential_type": "stripe_confirmation_token", "stripe": {"confirmation_token": "ctoken_Example"}}}'
{
"data": {
"payment_intent_id": "pi_1kmn0aExample",
"status": "requires_capture",
"supported_actions": ["capture", "cancel"],
"amount_money": {"amount": 12900, "currency": "USD"},
"capture_method": "manual",
"authorized_money": {"amount": 12900, "currency": "USD"},
"capturable_money": {"amount": 12900, "currency": "USD"},
"captured_money": {"amount": 0, "currency": "USD"},
"released_money": {"amount": 0, "currency": "USD"},
"authorized_at": "2026-07-03T02:57:20Z",
"authorization_expires_at": "2026-07-10T02:57:19Z",
"payment_source": {
"type": "card",
"card": {"brand": "visa", "last4": "4242"}
},
"current_payment_action": null
},
"request_id": "req_01KWM6WAHG3N9Q8T2V5XRZ7C4E"
}
The hold is in place: status is requires_capture, the full amount is in capturable_money, and nothing has been charged. current_payment_action is null because the buyer has nothing left to do.
If the card needs 3D Secure, the confirm response is requires_action instead, with the step for the browser in current_payment_action. Once the buyer authenticates, confirm again with {} and the PaymentIntent reaches requires_capture. Either way, the payment_intent.requires_capture webhook tells you the hold is in place.
Store payment_intent_id and authorization_expires_at with the rental, booking, or order the hold is for. You can't raise a hold later: amount_money can change only before the first confirmation. To hold more, cancel this hold and have the buyer confirm a new PaymentIntent.
Capture the payment#
To collect the full hold, capture with no body. An empty {} body works the same.
<!-- docs-test {"scenario":"full","status":200,"response":false,"expect":{"data.status":"succeeded","data.captured_money.amount":12900}} -->
curl -X POST https://api.withflintpay.com/v1/payment-intents/pi_1kmn0aExample/capture \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Idempotency-Key: capture-camera-rental-001"
To collect part of it, send amount_money. Here the camera came back a day early, so the merchant captures $98.00 of the $129.00 hold:
<!-- docs-test {"scenario":"partial","status":200,"fixtures":{"payment":{"amount":12900,"capture":"manual","confirm":true}}} -->
curl -X POST https://api.withflintpay.com/v1/payment-intents/pi_1kmn0aExample/capture \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Idempotency-Key: capture-camera-rental-partial-001" \
-d '{"amount_money": {"amount": 9800, "currency": "USD"}}'
{
"data": {
"payment_intent_id": "pi_1kmn0aExample",
"status": "succeeded",
"supported_actions": [],
"amount_money": {"amount": 12900, "currency": "USD"},
"capture_method": "manual",
"authorized_money": {"amount": 12900, "currency": "USD"},
"capturable_money": {"amount": 0, "currency": "USD"},
"captured_money": {"amount": 9800, "currency": "USD"},
"released_money": {"amount": 3100, "currency": "USD"},
"authorized_at": "2026-07-03T02:57:20Z",
"captured_at": "2026-07-05T16:12:04Z",
"authorization_expires_at": "2026-07-10T02:57:19Z"
},
"request_id": "req_01KWM6WAHG3N9Q8T2V5XRZ7C4F"
}
The PaymentIntent is succeeded. captured_money is the $98.00 you collected, and the other $31.00 is in released_money, on its way back to the buyer. amount_money still shows the $129.00 you asked for, so reconcile from captured_money. The processing fee is priced on the amount you capture, and refunds can return up to captured_money.
Warning: One hold, one capture
A PaymentIntent can be captured once. A partial capture releases the rest of the hold in the same request, and the released amount can't be captured later. For installments, authorize only the installment you intend to collect. On an order, a successful final capture discharges the uncaptured part of that authorization; it cannot be collected again as order debt.
For a partially captured order, Flint applies the payment to shipped units first, then to shipping charges, then to the remaining item value. If no units have shipped, Flint starts with whole lines in order as far as the payment covers them, then applies the rest to shipping. Refunds and tax reports use those allocations.
Use an order edit to remove unassigned units that the final capture left entirely unpaid. Those units have zero removal value and need no refund. Remove them before starting an edit that adds items. If a unit is partly paid, the edit refuses to remove it because its refund can include value from kept units. A fulfillment request for units that still need payment returns 409 ACTION_NOT_ALLOWED with reason payment_required.
The amount you capture must be:
- Greater than zero, and in the hold's currency. Otherwise the request returns
400 INVALID_REQUEST, withparamset toamount_money.amountoramount_money.currency. - No more than
capturable_money. A larger amount returns409 LIMIT_EXCEEDED, with the most you can capture indetails[0].maximum_money. If the final bill can grow past the hold, request overcapture when you create the payment, or take a new payment. - Large enough for your pricing. An amount below the smallest payment your rates cover returns
409 MERCHANT_NOT_READYwith reasonpricing_amount_below_minimum, and the hold stays in place. Cancel the hold instead of capturing a very small amount. See When pricing rejects a payment.
Capture the final bill and a tip#
A field-service visit, salon appointment, or restaurant table often ends with a final bill that differs from the hold, plus a tip. Send final_amount_money (the bill without the tip) and tip_money (the tip), and Flint collects both in one charge:
<!-- docs-test {"skip":"Requires network-approved overcapture up to $460; the standard pm_card_visa sandbox fixture does not grant that approval."} -->
curl -X POST https://api.withflintpay.com/v1/payment-intents/pi_1kmn0bExample/capture \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Idempotency-Key: capture-job-4412" \
-d '{
"final_amount_money": {"amount": 38000, "currency": "USD"},
"tip_money": {"amount": 6000, "currency": "USD"}
}'
Here a $400.00 estimate was held with "request_overcapture": true, and the card network allows a capture up to $460.00. The job came to $380.00 and the buyer tipped $60.00:
{
"data": {
"payment_intent_id": "pi_1kmn0bExample",
"status": "succeeded",
"amount_money": {"amount": 40000, "currency": "USD"},
"capture_method": "manual",
"request_overcapture": true,
"overcapture": {
"status": "available",
"maximum_capturable_money": {"amount": 46000, "currency": "USD"}
},
"authorized_money": {"amount": 40000, "currency": "USD"},
"capturable_money": {"amount": 0, "currency": "USD"},
"captured_money": {"amount": 44000, "currency": "USD"},
"released_money": {"amount": 0, "currency": "USD"},
"captured_tip_money": {"amount": 6000, "currency": "USD"}
},
"request_id": "req_01KWM6WAHG3N9Q8T2V5XRZ7C4H"
}
captured_money is the $440.00 total, and captured_tip_money is the $60.00 part of it that is a tip. Refunds return the rest of the payment before the tip. tip_money still shows any tip the hold carried, as amount_money still shows the amount you asked for.
- Defaults. With only
tip_money, the bill is the hold minus the tip it already carries; when the hold is all tip, sendfinal_amount_moneytoo. With onlyfinal_amount_money, the tip is the one the hold carries, or zero.tip_moneyof zero captures without a tip. - Overcapture. Card networks allow a capture above the hold only for some card brands and merchant categories, typically for tips and services, and only where the final amount isn't known at authorization. You're responsible for following their rules. Once the hold is placed,
overcapturereports what the network allows:statusavailablewith the most one capture can collect inmaximum_capturable_money, orunavailable, where the most you can capture iscapturable_money.overcaptureis present only on a payment created with"request_overcapture": true, which needscapture_methodmanualandpayment_optionslimited tocard,apple_pay,google_pay, orcard_present. - Holds on a reader. A card tapped, inserted, or swiped on a reader is held and captured the same way. Stripe releases an uncaptured card-present hold after two days, and Flint reports what the card allows in
overcapture: for an eligible US card at a restaurant, bar, salon, or similar merchant category, the most one capture can collect is the authorization plus the larger of 50% of it or $50.00. A tip the buyer chose on a smart reader's tip screen is part of the hold, andtip_moneyon the capture replaces it. - Limits. The tip is at most the larger of $1,000.00 and
final_amount_money; a larger tip returns400 INVALID_REQUESTwithINVALID_VALUEontip_moneyand the limit indetails[0].maximum_money. The total is at mostovercapture.maximum_capturable_moneywhen overcapture is available, and otherwisecapturable_money; a larger total returns409 LIMIT_EXCEEDEDwithdetails[0].maximum_money, andparamistip_moneywhen the bill alone fits. The processing fee is priced on the total. - Not with
amount_money. Send eitheramount_moneyor the final amount and tip, not both. Affirm and ACH debit payments don't acceptfinal_amount_moneyortip_money. - On an order, the bill can't grow and the tip joins the order's tip; see Capture the final bill and a tip on an order.
Retry a capture safely#
Send an Idempotency-Key on every capture. If a capture times out, retry with the same key and body: Flint returns the original result, or finishes the interrupted capture, and never captures twice. A new key is a new request, and once the payment is captured it returns 409 ACTION_NOT_ALLOWED with reason already_applied. See Idempotency.
If Flint confirms the capture while it is still updating the order, it can return 409 OPERATION_IN_PROGRESS. Retry with the same key and body to get the captured payment without charging again.
To refuse the capture if the PaymentIntent changed since you last read it, send that read's version as expected_version. A stale value returns 409 VERSION_CONFLICT.
Payment reviews#
If a risk rule opened a review on the payment, capture returns 409 PAYMENT_REVIEW_OPEN until someone approves it. details[0].blocking_resources names the review. Approving doesn't capture: capture again afterward, before authorization_expires_at. Declining the review cancels the hold. If nobody decides in time, Flint cancels the hold before it expires and closes the review as expired.
Cancel the hold#
If you won't be charging the buyer, cancel to release the hold right away:
<!-- docs-test {"scenario":"cancel","status":200,"fixtures":{"payment":{"amount":12900,"capture":"manual","confirm":true}}} -->
curl -X POST https://api.withflintpay.com/v1/payment-intents/pi_1kmn0aExample/cancel \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Idempotency-Key: cancel-camera-rental-001" \
-d '{"cancellation_reason": "requested_by_customer"}'
{
"data": {
"payment_intent_id": "pi_1kmn0aExample",
"status": "canceled",
"supported_actions": [],
"amount_money": {"amount": 12900, "currency": "USD"},
"capture_method": "manual",
"cancellation_reason": "requested_by_customer",
"authorized_money": {"amount": 12900, "currency": "USD"},
"capturable_money": {"amount": 0, "currency": "USD"},
"captured_money": {"amount": 0, "currency": "USD"},
"released_money": {"amount": 12900, "currency": "USD"}
},
"request_id": "req_01KWM6WAHG3N9Q8T2V5XRZ7C4G"
}
The body is optional. cancellation_reason takes requested_by_customer, duplicate, fraudulent, or abandoned. Send no body, or {}, to cancel without a reason; cancellation_reason is then payment_canceled on the canceled PaymentIntent.
Nothing was charged, so there's nothing to refund, and the whole hold moves to released_money. Flint releases the authorization immediately, but the pending charge can take a few days to leave the buyer's statement, depending on their bank. Tell the buyer to expect that.
Authorization expiry#
Each hold's effective Flint capture deadline is in authorization_expires_at: the earlier of the provider's capture deadline and any order resource guarantee.
Card networks set the card window, usually seven days after authorized_at. A card-present hold taken on a reader is released by Stripe after two days. Affirm allows seven days from the authorized charge's creation time; returning from Affirm or refreshing the payment doesn't extend it.
Orders that reserve inventory, promotion or coupon use, payment-link capacity, fulfillment selections, or gift-card value have a resource guarantee of at most 24 hours from the payment attempt's start, or an earlier reservation deadline. When the effective deadline passes without a capture, the PaymentIntent moves to expired, the whole hold moves to released_money, and Flint sends payment_intent.expired. An expired PaymentIntent has no cancellation_reason; that field appears only on a canceled one.
A new capture at or after authorization_expires_at is refused with 409 ACTION_NOT_ALLOWED before contacting the provider, and nothing is charged. Retrying a completed capture with its original idempotency key still recovers that result. The refusal depends on the stored state:
details[0].current_status | details[0].reason | What happened |
|---|---|---|
expired or canceled | terminal_status | The hold is already released. supported_actions is []. |
requires_capture | authorization_expired | The deadline passed, and Flint hasn't recorded the release yet. supported_actions still lists cancel: cancel to release the hold now, or let Flint release it. |
Either way, collecting the money now takes a new payment from the buyer. An expired hold usually means you delivered without collecting, so plan for the deadline:
- Read
authorization_expires_atfrom the confirm response or thepayment_intent.requires_capturewebhook, and schedule the capture well before it. Don't assume seven days. - If you won't know the final amount before the deadline, capture what you can justify in time, or cancel and place a new hold closer to fulfillment.
- Handle
payment_intent.authorization_expiringto capture or release a hold before its deadline. It fires once per authorization, 24 hours before expiry, or halfway through a hold shorter than 48 hours. At least one hour must remain when the warning is recorded, so windows under two hours never warn. A deadline change does not repeat a warning. Read the current PaymentIntent before acting. - Alert on
payment_intent.expired. Each one is money you meant to collect.
Cancel or refund?#
Which one you need depends on whether you've captured.
Before capture
Cancel
The buyer hasn't been charged. Cancel the PaymentIntent, and the pending hold drops off their statement without a charge ever posting.
After capture
Refund
The captured amount was collected, so returning any of it is a refund, up to captured_money. Refunding a PaymentIntent that is still requires_capture returns 409 ACTION_NOT_ALLOWED with reason status_not_reached.
The amount released by a partial capture is neither. It was never charged, so it needs no refund, and it can't be captured later. If you released too much, collecting it takes a new payment.
Refused captures and cancels#
When the PaymentIntent's state doesn't allow a capture or cancel, the request returns 409 ACTION_NOT_ALLOWED. details[0].resource_type is payment_intent, and details[0] also carries current_status, supported_actions, and a reason:
| Request | current_status | reason | What to do |
|---|---|---|---|
| Capture | requires_payment_method, requires_confirmation, or requires_action | status_not_reached | The hold isn't in place yet. Wait for payment_intent.requires_capture. |
| Capture | succeeded | already_applied | It's already captured. Read the PaymentIntent for captured_money. |
| Capture | canceled or expired | terminal_status | The hold is released. Collect with a new payment. |
| Capture | requires_capture | authorization_expired | The deadline passed. See Authorization expiry. |
| Cancel | succeeded | terminal_status | Money was collected, so issue a refund. remediation.next_actions includes create_refund. |
| Cancel | canceled or expired | already_applied | The hold is already released. Nothing to do. |
A retry of your own request with the same Idempotency-Key and body returns its original result instead of already_applied. Refused actions covers this error in general.
Manual capture on orders#
An order carries the line items, tax, and delivery the hold is for, and its payment status follows the hold. You create the order's payment leg yourself with "capture_method": "manual", confirm a single covering leg with POST /v1/payment-intents/{payment_intent_id}/confirm, then capture or cancel it through the same PaymentIntent routes as a standalone hold. Use order pay for several legs or selected gift cards.
These rules apply to the order and its leg:
- Finalize the order first. While a hold is open, changes to the order's financial fields, such as its line items, charges, and discounts, return
409 PAYMENT_ATTEMPT_ACTIVE, and so does closing the order. Capture or cancel the hold first. To change the tip, capture withtip_money; see Capture the final bill and a tip on an order. - One leg per attempt. A payment attempt that confirms more than one leg, where any of them uses manual capture, returns
400 INVALID_REQUESTwith detail codeNOT_ALLOWED. - Automatic tax is fixed when the hold is placed. An order that uses automatic tax can be paid with a manual-capture leg. See Automatic tax on a held order.
- Your server creates the leg. Creating it requires
payments.payment_intents.writeand an API key. A checkout session credential that asks for"capture_method": "manual"gets400 INVALID_REQUESTwith detail codeNOT_ALLOWEDoncapture_method.
Create the leg. With no amount_money, it covers the order's outstanding balance.
<!-- docs-test {"scenario":"order","status":201,"fixtures":{"order":18500}} -->
curl -X POST https://api.withflintpay.com/v1/payment-intents \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Idempotency-Key: pi-order-rental-001" \
-d '{"order_id": "ord_1kmn0aExample", "capture_method": "manual"}'
{
"data": {
"payment_intent_id": "pi_1kmn0aExample",
"order_id": "ord_1kmn0aExample",
"status": "requires_payment_method",
"supported_actions": ["confirm", "cancel"],
"amount_money": {"amount": 18500, "currency": "USD"},
"capture_method": "manual",
"payment_options": ["card"],
"payment_collection": {
"stripe": {
"account_id": "acct_Example",
"publishable_key": "pk_test_Example",
"elements": {
"next_step": "create_confirmation_token",
"submit_to": "pay_order",
"mode": "payment",
"amount_money": {"amount": 18500, "currency": "USD"},
"payment_options": ["card"],
"payment_method_creation": "manual"
}
}
}
},
"request_id": "req_01KWM6WAHG3N9Q8T2V5XRZ7C4H"
}
The leg's fields are flat in data, with payment_collection beside them. With merchant credentials, its supported_actions lists confirm when the single leg can cover the order balance. You can confirm it through POST /v1/payment-intents/{payment_intent_id}/confirm; Flint applies the order payment effects. Order pay remains available for staged payments.
Collect the card with Stripe Elements as next_step describes, then send the resulting payment method to the order's pay route with action: "confirm_payment_intents". Embedded payments covers collection in full.
<!-- docs-test {"scenario":"order","status":200,"card":"pm_card_visa"} -->
curl -X POST https://api.withflintpay.com/v1/orders/ord_1kmn0aExample/pay \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Idempotency-Key: pay-order-rental-001" \
-d '{
"action": "confirm_payment_intents",
"payment_intents": [{
"payment_intent_id": "pi_1kmn0aExample",
"payment_source": {"credential_type": "stripe_confirmation_token", "stripe": {"confirmation_token": "ctoken_1kmn0aExample"}}
}],
"expected_outstanding_money": {"amount": 18500, "currency": "USD"}
}'
{
"data": {
"order": {
"order_id": "ord_1kmn0aExample",
"status": "open",
"payment_status": "unpaid",
"authorization_amounts": {
"authorized_money": {"amount": 18500, "currency": "USD"},
"capturable_money": {"amount": 18500, "currency": "USD"},
"expires_at": "2026-07-10T02:58:26Z"
},
"settlement_amounts": {
"paid_money": {"amount": 0, "currency": "USD"},
"outstanding_money": {"amount": 18500, "currency": "USD"}
}
},
"order_payment_attempt": {
"order_payment_attempt_id": "opat_1kmn0aExample",
"status": "requires_capture",
"is_resumable": false
}
},
"request_id": "req_01KWM6WAHG3N9Q8T2V5XRZ7C4J"
}
The order is still open and unpaid, because only captured money counts toward payment_status. The hold shows in authorization_amounts, and expires_at is the PaymentIntent's authorization_expires_at. The attempt is waiting on you, not the buyer: is_resumable is false, and the next step is a capture or a cancel, not action: "resume".
Fulfillments need a paid order, so creating one while the hold is open returns 409 ACTION_NOT_ALLOWED with reason status_not_reached. Capture first. If you deliver outside Flint before charging, capture before authorization_expires_at.
Capture the leg like any other PaymentIntent. Leave out amount_money for the full hold, or send it for part of it:
<!-- docs-test {"scenario":"order","status":200,"expect":{"data.status":"succeeded","data.captured_money.amount":18500}} -->
curl -X POST https://api.withflintpay.com/v1/payment-intents/pi_1kmn0aExample/capture \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Idempotency-Key: capture-order-rental-001"
The response is the PaymentIntent, with captured_money and released_money as for a standalone capture. Flint finds the payment attempt from the leg, so the request takes no order_payment_attempt_id, and the order changes in the same request:
- A full capture collects the authorization. When it covers the remaining balance, the order becomes
paidand closes withclosed_reason: paid. - A partial capture is your final bill for that authorization. Its uncaptured part becomes
settlement_amounts.released_moneyand reducesoutstanding_money. When the capture and release cover the remaining balance, the order becomespaidand closes withclosed_reason: paid. No extra close call is needed.
For a $25.00 order with a $25.00 hold and a $15.00 final capture, paid_money and net_collected_money are $15.00, released_money is $10.00, and outstanding_money is zero. pricing_amounts.total_money stays $25.00. The release is neither a refund nor a write-off, and only the captured $15.00 can be refunded. A later refund does not restore the released debt.
Release discharges only debt within the successful capture's authorization, capped at the remaining priced obligation. A smaller hold does not discharge an unrelated balance. Canceling or expiring a hold does not add order released_money.
Capture the final bill and a tip on an order#
final_amount_money and tip_money work on an order's leg too. The order's items, charges, and tax are fixed while the hold is open, so the capture follows the order's rules:
- The bill can't grow.
final_amount_moneyis at most the leg's share of the order: itsauthorized_moneyminus the tip it carries. A larger amount returns409 LIMIT_EXCEEDEDwith that share indetails[0].maximum_moneyandparamfinal_amount_money. A smaller bill releases the difference from the order, as a partial capture does. - The tip joins the order's tip. The capture's tip replaces this payment's part of the order's tip, or adds one; see Set the tip when you capture. Its limit is the larger of $1,000.00 and the payment's share of the order's subtotal after discounts.
- The tip must fit the hold. Without overcapture,
final_amount_moneyplustip_moneymust fit incapturable_money, so the tip fits only when the bill comes in under the hold by at least the tip, or when the hold carries a requested tip that the capture's tip replaces. A larger total returns409 LIMIT_EXCEEDEDwithparamtip_money. - Overcapture adds the tip. Create the leg with
"request_overcapture": trueonPOST /v1/payment-intentsto let the bill plus the tip exceed the hold, up toovercapture.maximum_capturable_money. Because the bill can't grow, only the tip can take the capture past the hold.
For a $400.00 order held with "request_overcapture": true, where the job came to $380.00 and the buyer tipped $60.00, capture final_amount_money $380.00 and tip_money $60.00. The PaymentIntent has captured_money $440.00 and released_money zero. The order releases the $20.00 the bill didn't use, takes the $60.00 tip, and is paid and closed:
{
"pricing_amounts": {
"requested_tip_money": {"amount": 6000, "currency": "USD"},
"total_money": {"amount": 46000, "currency": "USD"}
},
"settlement_amounts": {
"paid_money": {"amount": 44000, "currency": "USD"},
"released_money": {"amount": 2000, "currency": "USD"},
"settled_tip_money": {"amount": 6000, "currency": "USD"},
"outstanding_money": {"amount": 0, "currency": "USD"}
}
}
Read the order with GET /v1/orders/{order_id}, or from the order.paid and order.closed webhooks.
To release the hold instead, cancel the leg with POST /v1/payment-intents/{payment_intent_id}/cancel, exactly as for a standalone hold. The order stays open and unpaid.
The order's state can refuse a capture or cancel that the PaymentIntent allows. These refusals are 409 ACTION_NOT_ALLOWED with details[0].resource_type order: reason terminal_status when the order is closed, and already_applied when it's already paid. A leg in requires_payment_method or requires_confirmation that an open payment attempt is still using returns 409 PAYMENT_ATTEMPT_ACTIVE; finish or cancel the attempt first. A leg in requires_action doesn't list cancel in supported_actions, because the buyer's payment attempt owns it until it finishes.
Automatic tax on a held order#
An order that uses automatic tax can be authorized now and captured later. The hold keeps the order's committed tax:
- Tax is fixed at authorization. Flint checks any uncommitted calculation when you confirm the leg. Tax already committed by an earlier payment or invoice keeps its original calculation. Capturing while the hold is open never recalculates tax or changes its original date.
- A full capture collects the hold's share of the committed tax.
- A partial capture is the final bill for that authorization. The captured money carries its allocated share of the tax, and the uncaptured part is released. A refund of captured money reverses the tax allocated to it.
- A canceled or expired hold collected nothing. When no other payment or issued invoice retains committed tax, the next payment needs a fresh calculation. The new amount can differ from the earlier calculation.
Tax doesn't extend the capture deadline. authorization_expires_at still applies, and a capture at or after it is refused as described in Authorization expiry.
Webhooks#
Holds are resolved minutes or days after they're placed, often by a scheduled job rather than a request, so webhooks are the reliable record of each change. The PaymentIntent sends every hold event, and a PaymentIntent on an order carries order_id. The order sends order.paid or order.partially_paid only when its payment_status changes.
Each changed order axis sends its event once: order.paid for payment and order.closed for closure. A settled final capture does not also send order.partially_paid or order.updated, and re-observing the same capture sends nothing.
There's no separate capture event: a capture is the PaymentIntent succeeding, so it arrives as payment_intent.succeeded. Cancellation and expiry are different events, so an expiry handler doesn't need to inspect cancellation_reason.
Test it#
In the sandbox, you can place and capture a hold from your terminal on an order. Create an order, add one manual-capture leg for its balance, and confirm the leg with a test token:
<!-- docs-test [{"scenario":"test-token","status":201,"fixtures":{"order":2500},"expect":{"data.status":"requires_payment_method"}},{"scenario":"test-token","status":200,"expect":{"data.order_payment_attempt.status":"requires_capture"}}] -->
curl -X POST https://api.withflintpay.com/v1/payment-intents \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Idempotency-Key: hold-test-leg-001" \
-d '{"order_id": "ord_1kmn0aExample",
"amount_money": {"amount": 2500, "currency": "USD"},
"payment_options": ["card"],
"capture_method": "manual"
}'
curl -X POST https://api.withflintpay.com/v1/orders/ord_1kmn0aExample/pay \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Idempotency-Key: hold-test-pay-001" \
-d '{
"action": "confirm_payment_intents",
"payment_intents": [
{
"payment_intent_id": "pi_1kmn0aExample",
"payment_source": {
"credential_type": "stripe_payment_method",
"stripe": {
"payment_method": "pm_card_visa"
}
}
}
],
"expected_outstanding_money": {
"amount": 2500,
"currency": "USD"
}
}'
The PaymentIntent lands in requires_capture; capture or cancel it with the routes above. In a browser with Stripe Elements, the universal success card, , places a hold.
To check that your code waits for payment_intent.requires_capture instead of assuming the hold from the confirm response, use the 3D Secure card, , which stops at requires_action first.
To rehearse the review gate, create a sandbox review rule and confirm a manual-capture payment; Testing walks through it.
No test card makes a hold expire early. To check that your expiry handler is wired up, send payment_intent.expired from the test-events endpoint. A test event carries an example PaymentIntent with placeholder IDs, so it proves delivery and routing, not the logic behind them. A handler that reads the hold back from Flint needs a real hold.
Errors#
Error handling covers the envelope these arrive in and the request IDs to log.
Common mistakes#
- Treating the hold as revenue.
requires_capturemeans the money is reserved, not collected. Untilcaptured_moneyis positive, you haven't been paid. - Reading
amount_moneyas the amount collected. It's the amount you asked for, and capture never changes it. After a partial capture,captured_moneyis what you were paid. - Letting holds expire unnoticed. Schedule a capture or cancel before
authorization_expires_atfor every hold, and alert onpayment_intent.expired. - Planning to capture twice. One hold, one capture. A partial capture releases the rest immediately.
- Waiting for a capture event. There isn't one. A successful capture arrives as
payment_intent.succeeded. - Refunding a hold. Before capture there's nothing to refund. Cancel instead.
- Resuming an attempt that's waiting for capture. An order attempt in
requires_captureneeds a capture or a cancel, notaction: "resume". - Editing an order under an open hold. Financial changes return
PAYMENT_ATTEMPT_ACTIVEuntil you capture or cancel. Settle the total first, then pay.
Next steps#
Server-confirmed paymentsEmbedded paymentsRisk controlsRefundsCapture a payment with splits#
On a payment created with seller splits, omit splits at capture to keep their amounts. For a partial capture, send final amounts for every split that isn't canceled:
{
"amount_money": {"amount": 8000, "currency": "USD"},
"splits": [
{
"payment_split_id": "psplit_01KF4B2C4D6E8F0G2H4J6K8M0N",
"amount_money": {"amount": 4500, "currency": "USD"}
}
]
}
Each final amount must be above zero and in the payment's currency. The final split total must leave room for Flint's fees and one minor unit for the collecting merchant. Otherwise capture returns INVALID_REQUEST with INVALID_VALUE at splits and maximum_money. If you omit final splits and the capture amount is too small for the stored amounts, it returns LIMIT_EXCEEDED at amount_money with minimum_money.
A payment created without splits can't gain them at capture. If a seller revoked approval before capture, that split is canceled and its share stays with the collecting merchant. These seller splits divide the payment's funds; split tender means a buyer pays with several payment methods.