Statuses and supported actions
You read a status to decide what to do next: ship the goods, retry a payment, grant access, or stop polling. Flint splits those decisions across separate fields, and each field moves on its own. An order has status, payment_status, fulfillment_status, refund_status, and inventory_exception_status, and a paid order can stay not_fulfilled for weeks.
Four rules keep the branches right:
- Read the field that answers your question.
payment_statussays whether the money arrived.fulfillment_statussays whether the goods left. Neither implies the other. - Know which values are final. Several values that sound final can still change, such as a
succeededrefund or asucceededpayout. - Ask the resource what it accepts. Where a resource has
supported_actions, it lists the actions its current state allows. Branch on that instead of rebuilding the rules fromstatus. - Treat the resource as the truth and events as the signal. Webhooks arrive at least once and in no guaranteed order. When the next step depends on current state, read the resource.
Find the field for your question#
| You want to know | Read |
|---|---|
| Can I still change this order or take a payment on it? | Order status |
| Why and when did the order close? | Order closed_reason and closed_at |
| Did the buyer pay for the order? | Order payment_status |
| Has money gone back to the buyer? | refund_status on the order, payment intent, or invoice |
| Have the goods been delivered or handed over? | Order fulfillment_status for the whole order, Fulfillment status for one piece of work |
| Where is a parcel? | Package status, or Shipment status for all its packages |
| Did this payment succeed? | PaymentIntent status |
| Did my pay request finish, and can I resume it? | Payment attempt status and is_resumable |
| What can I do to this payment now? | PaymentIntent supported_actions |
| Is a payment disputed? | PaymentIntent dispute_status, then Dispute status |
| Is the return finished? | Return status and completion_blockers |
| Is the subscriber current on billing? | Subscription status |
| Did the payout reach my bank, and did it stay there? | Payout status and reversal_status |
| Which actions can I take right now? | supported_actions, where the resource has it |
The same word means different things in different fields, so always read a value together with its field name. paid on an order's payment_status means collection completed. succeeded on a payout means the bank received the deposit. closed on an order's status means it no longer accepts changes, closed on its fulfillment_status means every quantity was either fulfilled or canceled, and closed on a checkout session means a merchant closed it. pending appears on refunds, payouts, fulfillments, and two of a return's statuses, with a different meaning on each.
Which values are final#
A final value never changes again. The OpenAPI specification publishes each closed status vocabulary's final values in x-flint-terminal-values and ends each final value's description with "This status is final." Copies and narrowed projections carry the same metadata for the values they return. An empty set means no value is guaranteed final; keep listening for events or read the resource again.
<!-- BEGIN GENERATED TERMINAL VALUES -->
| Vocabulary | Resource and field | Final values |
|---|---|---|
api_key_status | APIKey status | revoked |
applied_discount_status | OrderDiscount status | redeemed, canceled |
balance_transaction_status | BalanceTransaction status | None |
bundle_status | Bundle status | archived |
category_status | Category status | deleted |
checkout_payment_method_save_status | CheckoutPaymentMethodSave status | expired |
checkout_session_status | CheckoutSession status | paid, partially_paid, expired, closed, invalidated |
credit_note_status | CreditNote status | voided |
customer_deletion_request_status | CustomerDeletionRequest status | completed, rejected |
customer_status | Customer status | deleted |
customer_tax_exemption_status | CustomerTaxExemption status | expired, archived |
delivery_choice_group_availability_status | DeliveryPreviewChoiceGroupResource availability_status | None |
delivery_configuration_status | Product delivery_configuration_status | None |
delivery_location_set_status | DeliveryLocationSet status | archived |
delivery_method_status | DeliveryMethod status | archived |
delivery_profile_status | DeliveryProfile status | archived |
delivery_profile_unconfigured_assignment_status | DeliveryProfileUnconfiguredAssignment status | completed, canceled, failed |
delivery_quote_status | DeliveryQuote status | revoked |
delivery_rate_callback_status | DeliveryRateCallback status | archived |
delivery_selection_status | DeliverySelection status | committed, superseded, expired, released |
delivery_zone_status | DeliveryZone status | archived |
developer_sandbox_status | Sandbox status | archived |
device_status | Device status | archived |
dispute_status | Dispute status | lost |
email_change_request_status | EmailChangeRequest status | confirmed, canceled, expired |
file_status | File status | failed, expired |
fulfillment_status | Fulfillment status | completed, canceled, failed, no_show |
gift_card_funding_dispute_status | GiftCardFundingDispute status | None |
gift_card_purchase_refund_allocation_status | GiftCardPurchaseRefundAllocation status | succeeded, failed |
gift_card_redemption_status | GiftCardRedemption status | succeeded, canceled, expired |
gift_card_status | GiftCard status | closed |
inventory_allocation_policy_status | InventoryAllocationPolicy status | archived |
inventory_count_status | InventoryCount status | applied, canceled |
inventory_item_status | InventoryItem status | archived |
inventory_reservation_status | InventoryReservation status | closed |
inventory_transfer_status | InventoryTransfer status | closed |
invoice_collection_block_status | Invoice collection_block_status | None |
invoice_manual_payment_status | InvoiceManualPayment status | reversed |
invoice_payment_attempt_status | InvoicePaymentAttempt status | succeeded, failed, canceled, expired |
invoice_payment_term_status | InvoicePaymentTerm status | archived |
invoice_schedule_entry_status | InvoiceScheduleEntry status | None |
invoice_status | Invoice status | voided |
license_key_activation_status | LicenseKeyActivation status | released |
license_key_pool_key_status | LicenseKeyPoolKey status | issued, removed |
license_key_pool_status | LicenseKeyPool status | archived |
license_key_restriction_dispute_status | LicenseKeyRestriction dispute_status | None |
license_key_status | LicenseKey status | None |
location_status | Location status | archived |
merchant_billing_invoice_status | MerchantBillingInvoice status | written_off |
merchant_readiness_status | ReadinessAxis status | None |
merchant_signup_status | MerchantSignup status | completed, expired, canceled |
merchant_status | Merchant status | None |
message_status | WebhookDelivery status; GiftCardNotification status | canceled |
modifier_group_status | ModifierGroup status | archived |
modifier_set_status | ModifierSet status | archived |
modifier_status | Modifier status | archived |
onboarding_state_status | OnboardingState status | None |
order_edit_status | OrderEdit status | completed, canceled |
order_fulfillment_status | Order fulfillment_status | None |
order_inventory_exception_status | Order inventory_exception_status | None |
order_payment_attempt_status | OrderPaymentAttempt status | partially_succeeded, succeeded, failed, canceled, expired |
order_payment_status | Order payment_status | paid |
order_status | Order status | closed |
order_tax_status | OrderTax status | None |
order_ticket_status | TicketedEvent ticket_status | voided |
package_status | Package status | returned, voided |
partner_app_credential_status | PartnerAppCredential status | removed |
partner_app_install_status | PartnerAppInstall status | None |
partner_app_platform_capability_status | PartnerAppPlatformCapability status | None |
partner_app_platform_status | PartnerAppPlatform status | None |
partner_environment_grant_status | PartnerEnvironmentGrant status | None |
payment_fulfillment_hold_status | PaymentFulfillmentHold status | released |
payment_intent_dispute_status | PaymentIntent dispute_status | None |
payment_intent_status | PaymentIntent status | canceled, succeeded, expired |
payment_link_status | PaymentLink status | None |
payment_method_domain_status | PaymentMethodDomain status | None |
payment_method_status | PaymentMethod status | archived |
payment_refund_status | PaymentRefund status | failed, canceled |
payment_review_status | PaymentReview status | closed |
payment_split_reversal_status | PaymentSplitReversal status | canceled |
payment_split_status | PaymentSplit status | succeeded, failed, canceled |
payout_destination_status | PayoutDestination status | None |
payout_reversal_status | Payout reversal_status | reversed |
payout_settings_status | PayoutSettings status | None |
payout_status | Payout status | None |
platform_fee_balance_transaction_status | PlatformFeeBalanceTransaction status | None |
platform_fee_payout_status | PlatformFeePayout status | succeeded, failed |
platform_fee_status | PlatformFee status | canceled |
price_list_status | PriceList status | archived |
product_option_status | ProductOption status | archived |
product_option_value_status | ProductOptionValue status | archived |
product_status | Product status | archived |
product_variant_status | ProductVariant status | archived |
promotion_code_status | PromotionCode status | archived |
promotion_status | Promotion status | archived |
reader_status | Reader status | archived |
refund_status | Order refund_status | None |
refund_status_lifecycle | Refund status | failed |
refund_tender_allocation_status | RefundTenderAllocation status | failed, canceled |
report_status | Report status | succeeded, failed |
return_decision_status | Return decision_status | approved, partially_approved, declined |
return_disposition_status | ReturnDisposition status | succeeded, canceled |
return_eligibility_status | ReturnEligibilityPreview status | None |
return_handoff_requirement_status | ReturnHandoffRequirement status | None |
return_inspection_line_item_acceptance_status | ReturnInspectionLineItem acceptance_status | accepted, rejected |
return_inspection_status | ReturnInspection status | superseded |
return_line_item_status | ReturnLineItem status | declined, canceled |
return_merchandise_status | Return merchandise_status | None |
return_policy_status | ReturnPolicy status | archived |
return_reason_status | ReturnReason status | archived |
return_receipt_status | ReturnReceipt status | superseded |
return_resolution_adjustment_status | ReturnResolutionAdjustment status | None |
return_resolution_status | ReturnResolution status | completed, canceled |
return_resolution_summary_status | Return resolution_status | None |
return_status | Return status | declined, canceled |
risk_list_status | RiskList status | archived |
risk_rule_status | RiskRule status | archived |
shipment_status | Shipment status | voided |
statement_descriptor_status | StatementDescriptorStatus status | None |
subscription_address_verification_state | SubscriptionAddressVerification state | None |
subscription_delivery_migration_status | SubscriptionDeliveryMigration status | completed |
subscription_offer_status | SubscriptionOffer status | archived |
subscription_payment_retry_status | SubscriptionPaymentRetry status | succeeded, failed |
subscription_plan_status | SubscriptionPlan status | archived |
subscription_status | Subscription status | canceled |
tax_calculation_callback_status | TaxCalculationCallback status | archived |
tax_connection_status | TaxConnection status | None |
tax_registration_status | TaxRegistration status | removed |
test_clock_status | TestClock status | archived |
ticket_status | Ticket status | voided |
tip_status | Tip status | canceled |
user_status | User status | deactivated |
webhook_endpoint_status | WebhookEndpoint status | deleted |
<!-- END GENERATED TERMINAL VALUES -->
These values look final but can still change:
| Value | Can become | When |
|---|---|---|
Refund succeeded or partially_succeeded | partially_succeeded or failed | A bank rejects a refund it first accepted. |
Payout succeeded | failed | The bank returns the deposit. A reversal is reported separately in reversal_status. |
Invoice paid or credited | open or partially_paid | A payment or credit allocation is reversed. invoice.reopened reports it. |
Return completed | open | You reopen it with POST /v1/returns/{return_id}/reopen to record a late fact. return.reopened reports it. |
Package delivered | returned | You mark it returned after a return to sender. Its shipment reads returned once every package in it is. |
Order closed is final, but it stops changes, not activity. Refunds, fulfillment, disputes, returns, and metadata or note edits all continue on a closed order. closed_reason and closed_at are set once when the order closes and never change.
New values and your API version#
Status fields are closed, so you branch on them. Under the closed enum rule, a closed status can still gain a value on the version you pin, so keep a default branch for a status you don't recognize. Check the changelog for new values.
Reason fields are extensible and gain values at any time: closed_reason, failure_reason, cancellation_reason, terminal_reason, pause_reason, and the payment attempt's status_reason. Branch on the reasons you handle and keep a default branch for the rest. The OpenAPI specification marks every response enum with x-flint-enum-kind, either closed or extensible, and API versions and upgrades covers the full rule.
type Refund = {
refund_id: string;
status: "pending" | "succeeded" | "partially_succeeded" | "failed";
failure_reason?: string;
};
function handleRefund(refund: Refund) {
// status is closed, so each value you know has a branch. Keep a default for a new one.
switch (refund.status) {
case "pending":
return; // Wait for refund.succeeded, refund.partially_succeeded, or refund.failed.
case "succeeded":
case "partially_succeeded":
return recordRefund(refund); // A bank can still reject it later.
case "failed":
return handleFailedRefund(refund);
}
}
function handleFailedRefund(refund: Refund) {
// failure_reason is extensible, so unknown reasons need a default.
switch (refund.failure_reason) {
case "refund_abandoned":
case "expired_or_canceled_card":
return askBuyerWhereToSendMoney(refund);
case "insufficient_available_balance":
return alertFinanceTeam(refund);
default:
return flagForReview(refund);
}
}
Orders#
When a paid inventory failure needs merchant action, the order lists resolve_inventory_exception in its merchant supported_actions, including after the order closes. Call POST /v1/orders/{order_id}/resolve-inventory-exception to resolve the exception and remove the action.
An order is the durable record of a sale, so it carries the most fields. Its supported_actions lists close and pay when available.
| Field | Answers | Values |
|---|---|---|
status | Does the order still accept changes and new payments? | open, closed |
closed_reason | Why did it close? Present exactly when status is closed. | See below |
payment_status | How much of the total was collected? | unpaid, partially_paid, paid |
refund_status | How much collected money went back? | none, partially_refunded, refunded |
fulfillment_status | How far has the work across all quantities gone? | See below |
inventory_exception_status | Did stock fail after payment? Absent when nothing went wrong. | paid_inventory_failed, resolved |
The money fields are independent. A refund changes refund_status and never payment_status, so a fully refunded order reads payment_status: paid and refund_status: refunded, because the money did arrive before it went back. An order becomes paid when collection completes, which is also when it closes with closed_reason: paid.
To list orders by more than one field, combine the filters on GET /v1/orders. Values within one filter match any of them, and separate filters must all match. This lists paid orders that were refunded in full:
curl 'https://api.withflintpay.com/v1/orders?payment_status=paid&refund_status=refunded' \
-H "Authorization: Bearer YOUR_API_KEY"
Why an order closed#
closed_reason and closed_at record how and when an order closed, once, at the moment it closed. Read them instead of inferring the reason from the payment fields. closed_reason is extensible, so treat a reason you don't recognize like other.
closed_reason on orderclosed_reason_message holds only the note you sent to POST /v1/orders/{order_id}/close. Closures Flint makes leave it absent. Buyers never see it.
Order fulfillment status#
fulfillment_status counts quantities in completed, canceled, and failed fulfillments that retain their quantity, and quantity removed from the paid order, which counts like canceled quantity. It stays not_fulfilled while goods are picked, packed, and dispatched, and moves once a fulfillment completes. Read each fulfillment's own status for the step it has reached.
fulfillment_status on orderOrder edits#
An order edit is a record of items removed from or added to a paid order. Its status is pending while Flint waits for a balance payment, then completed once the item changes are applied, or canceled when it ends without changing the order. The completed and canceled statuses never change again. An edit with no balance is created completed. Editing doesn't reopen the order. A paid order stays closed, and its payment_status stays paid. The money that went back shows in refund_status, and the refund the edit created has its own status. New status values can be added later, so treat an unknown one as a state you don't recognize yet.
See Why Flint is orders-first for the model, the Orders reference for every filter, and Order activities for the history of an order.
Payments#
Every payment Flint takes is a payment intent: one payment from a buyer, such as one card charge. A payment intent pays an order, is charged by an invoice or subscription, or stands alone. Its own status, last_payment_error, and supported_actions tell you how the payment went and what you can do next.
A payment attempt is a different object, and you meet it only when an order collects payments together. One POST /v1/orders/{order_id}/pay call runs one attempt across the payment intents you selected; with split tender, each payment intent is one leg of the attempt. A payment intent you confirm directly is its own attempt, so read its fields and skip the attempt object.
status on payment intentRefunds and disputes never change a payment intent's status. Read its refund_status and dispute_status for those. dispute_status is none or one of the dispute statuses described below.
What a payment intent accepts#
A payment intent has three actions: confirm, capture, and cancel. They use the same routes, request bodies, and responses for every payment intent, whoever owns it. supported_actions lists the ones Flint accepts from the payment's stored state and its owner:
| Status | Standalone | Order leg | Invoice payment | Subscription payment |
|---|---|---|---|---|
requires_payment_method, requires_confirmation | confirm, cancel | confirm and cancel while a single leg can pay the order's balance | cancel | none |
requires_action | confirm, cancel | confirm while the order's attempt can continue | cancel | none |
requires_capture | capture, cancel | capture, cancel | none | none |
| Any other status | none | none | none | none |
The owner decides what its payments accept, and it never changes what an action takes or returns:
- An order leg is confirmed as the order's payment. When the order needs several payments together, such as other unpaid legs or selected gift cards,
confirmisn't listed. A direct call returns409 ACTION_NOT_ALLOWEDwith reasonmanaged_by_owner, andremediation.next_actionsnames the order'spay. - An invoice or subscription payment is started by its owner. Confirming it returns
managed_by_ownerand namescollect_invoiceorcreate_subscription_payment_retry, for a start and for a continuation. - A checkout credential still confirms and continues through the order's
payandresume. Buyer responses omitsupported_actions; buyer tasks are inbuyer_actions.
Order legs read the order's stored facts, so supported_actions can change when the order changes, without a new payment intent version. Read the payment intent again before you choose an action. Confirm an order payment covers the request.
Payment attempt statuses#
A payment attempt's status is one of processing, requires_action, requires_capture, succeeded, partially_succeeded, failed, canceled, or expired. Each value points to a different next step:
| Status | What it means | What to do |
|---|---|---|
processing | Flint is collecting the attempt's payments, confirming their outcome, or applying it to the order. | Wait for order.paid or the payment intents' events, or read the attempt again. Don't start another payment. |
requires_action | The buyer must finish a step for at least one payment. | Send them to each action in pending_actions, then continue. |
requires_capture | Every payment is authorized and waiting for capture. | Capture or cancel each payment intent before its authorization_expires_at. |
succeeded | The attempt collected its full amount. | Fulfill from order.paid. |
partially_succeeded | Some payments succeeded and the rest didn't, so part of the balance is outstanding. | Collect only the remainder. |
failed | The attempt collected nothing, and Flint released what it held. | Read last_payment_error or status_reason, then start a new payment. |
expired | A buyer step or an authorization wasn't completed in time. | Start a new payment. |
canceled | The attempt was canceled before it completed. | Start a new payment. |
processing concludes without a merchant resume request. Exceptional unresolved outcomes enter an internal manual_review queue for Flint operators; the public status stays processing until reconciliation concludes. Start another payment only after a final outcome, and collect only the remainder after partially_succeeded. Declines and payment attempts has the full attempt lifecycle and recovery model.
Refunds#
A refund's status summarizes its parts: each entry in payment_refunds and tender_allocations has its own status of pending, requires_action, succeeded, failed, or canceled.
Refund status | Meaning |
|---|---|
pending | At least one part is still in progress. A refund Flint creates (initiated_by flint) goes back to pending with pending_reason manual_review instead of failing if a bank reverses it, because Flint still owes the buyer the money. |
succeeded | Every part succeeded. A bank can still reject one later. |
partially_succeeded | Some parts succeeded and the rest failed or were canceled. |
failed | No money went back, and failure_reason says why. The amount is refundable again, except for a refund with reason payment_returned that failed with payment_disputed: the buyer won a dispute on the charge, so nothing is left to refund. A payment_returned refund that failed with refund_abandoned can't be retried through Flint either: the money is in your balance. Flint hasn't repaid the buyer. Repay them another way if you haven't already. Final. |
POST /v1/refunds returns 201 whenever it creates a refund. When processing finishes during the request, the response reports the outcome, including status: "failed" for a processor rejection. Otherwise it returns pending; read the refund with GET /v1/refunds/{refund_id} or follow refund.* events for its current state. Check status on every create response. A parent status change sends refund.succeeded, refund.partially_succeeded, or refund.failed, and other changes send refund.updated. Refunds covers each status and how to recover from a failure.
Returns#
A return keeps four statuses because the decision, the goods, and the money each move at their own pace.
| Field | Answers |
|---|---|
decision_status | Did you approve the request? |
merchandise_status | Did the goods come back? On the return, this is the least-finished line's value. |
resolution_status | Did the buyer receive their refund, exchange, or store credit? |
status | Is the whole return finished? |
status is requested while the return waits for a decision, open once some quantity is approved, and completed once every blocker clears. declined and canceled are final.
completion_blockers lists what is still owed, and an empty array is the real done signal. Act on return.completed rather than on a refund succeeding: a resolution can settle while merchandise work is still open. Returns has the full value sets and transitions.
Invoices, credit notes, and subscriptions#
| Field | Values |
|---|---|
Invoice status | draft, open, partially_paid, paid, voided, uncollectible, credited |
Invoice refund_status | none, partially_refunded, refunded |
Credit note status | draft, issued, voided |
Subscription status | trialing, active, paused, past_due, canceled, incomplete, scheduled |
paid and credited both mean the invoice's current balance is cleared: paid when collected money cleared it, and credited when applied credit cleared it with no money collected. Either can reopen to open or partially_paid when a payment or credit allocation is reversed, and invoice.reopened reports it. An uncollectible invoice accepts manual recovery payments up to its written-off balance. Partial recovery keeps it uncollectible; full recovery makes it paid. Reversing a payment restores the write-off, including after full recovery. voided is final. A refund changes refund_status without reopening the balance.
For subscriptions, incomplete means the first period's payment is still being collected or is held, so don't provision yet. scheduled means the subscription waits for starts_at and nothing has been charged. At starts_at it becomes active once the first payment succeeds, or past_due if it fails. past_due means a charge failed and Flint is retrying or waiting for a new payment method. Whether a past-due subscriber keeps access is your decision. paused suspends billing, and pause_reason says why.
See Invoicing, Credit notes, and Subscription billing.
Checkout sessions#
A checkout session is open, paid, partially_paid, expired, closed, or invalidated. Every value except open is final, and terminal_reason says why the session ended.
partially_paidmeans a payment collected part of the amount due before the session ended. The order keeps the remaining balance.expiredmeans the session's deadline passed before it completed.invalidatedmeans something outside the session ended it, such as a replacement session, a payment made elsewhere, or an order edit that closed or completed the order. Other order edits keep the session open.
An expired payment-link checkout also closes its order when nothing was paid or authorized, no invoice or other active collection owns the order, and the order isn't linked to a return. The order sends order.closed with closed_reason: checkout_expired. When an existing-order, quick-pay, subscription-plan, or invoice checkout expires, the order stays open. Checkout sessions covers each status.
Fulfillments, shipments, and packages#
A fulfillment's status is exact for its type, so the set is wide: pending, accepted, scheduled, in_progress, preparing, picked, packed, ready, dispatched, on_hold, completed, canceled, failed, and no_show. The last four are final, and terminal_at records when the fulfillment reached one. A missed pickup or appointment reads no_show, with the reason in outcome.
A fulfillment on_hold carries active_hold, whose previous_status is where the work paused. It leaves the hold only forward: POST /v1/fulfillments/{fulfillment_id}/release-hold returns it to previous_status, and any other action that status allows moves it on. Buyer responses never show a hold. They show previous_status instead. Fulfillment and shipping has each status and action.
A package is one parcel, and its status follows the carrier: created, packed, shipped, in_transit, out_for_delivery, delivery_attempted, delivered, exception, returned, or voided. returned and voided are final. A delivered package can still be marked returned, and a package can be voided only before handoff, while it is created or packed. Each merchant package lists the actions it accepts in supported_actions, including void before handoff. Each action has its own route: mark_in_transit calls POST /v1/packages/{package_id}/mark-in-transit with no action field. Repeat that call while the package is in_transit to refresh expected_delivery_at; an unchanged estimate is a no-op. Read buyer tasks from BuyerOrder.buyer_actions.
A shipment's status is read-only and derived from its packages:
- Voided packages don't count. A shipment with no other packages reads
created. - Any package in
exceptionmakes the shipmentexception. - Otherwise the least advanced package sets it, in this order:
created,packed,shipped,in_transit,out_for_delivery,delivery_attempted,delivered,returned. - A shipment reads
voidedonly when you void the whole shipment.
A shipment lists void in supported_actions when it can be voided before handoff.
A shipment also has a direction: outbound sends items to the buyer, and return brings them back to you. Return tracking lives on a return shipment rather than on the return itself.
Disputes and payouts#
A dispute's status is inquiry_needs_response, inquiry_under_review, inquiry_closed, needs_response, under_review, won, lost, prevented, or other.
- The
inquiry_*values are the issuer's questions before any chargeback, and the case may never become one.inquiry_closedcan still become a chargeback. needs_responseandunder_revieware an open chargeback.lostis final. A later provider update can changewonorprevented.otheris a state Flint doesn't recognize yet and isn't final. Treat the dispute as open, don't assume an outcome, and read it again later.
A payout's status is pending until it is sent, in_transit on its way to your bank, then succeeded or failed. canceled means a manual payout was canceled while pending. A succeeded payout can still become failed if the bank returns the deposit. Separately, reversal_status moves from none to reversed when Flint pulls a paid payout back from your bank: a payout_reversal balance transaction returns the money, and status stays succeeded. Read both fields.
Decide what you can do next#
status tells you what happened. To decide whether an action is available now, read supported_actions on resources such as invoices, credit notes, payment intents, fulfillments, packages, returns, return resolutions, subscriptions, and gift cards. This required array lists the lifecycle actions Flint accepts from its stored state, including related records and settings. It is empty when no action applies and never depends on the caller's credential or scopes. Check the user's permissions separately before offering an action; a caller without its scope gets 403 INSUFFICIENT_SCOPE. A transient condition, such as a payment in progress, can still refuse a listed action.
On fulfillments and gift cards, each value names one route: the value with underscores written as hyphens, such as release_hold for POST /v1/fulfillments/{fulfillment_id}/release-hold. A fulfillment lists [] while its order isn't paid, because Flint refuses every fulfillment action until payment. The list never depends on your credential or scopes.
Writes that depend on a resource's state accept the version you read as expected_version, in the body or, for DELETE, as a query parameter. Flint compares it before changing anything.
Read statuses from webhooks#
An event's data.object is a snapshot of the resource when the event happened. Because delivery is at least once and unordered, a later snapshot can arrive before an earlier one.
- Compare versions, not arrival order. Orders, payment intents, refunds, returns, fulfillments, shipments, packages, invoices, credit notes, subscriptions, and checkout sessions carry a
versionthat increases with each change. Skip a snapshot whoseversionis lower than one you already applied. - Read the resource when the next step depends on it. Disputes and payouts have no
version, and aversioncovers only the resource's own fields, not resources expanded inside it. When you are about to ship, refund, or grant access, fetch the current state first. - Money statuses aren't permissions.
past_due,requires_capture, andpartially_paiddescribe the money. What access or service that buys is your decision.
Webhooks covers delivery, retries, and deduplication, and the event payloads list the status each event reports.
What a delete returns#
DELETE takes no request body and returns 200 with the resource in the same shape GET returns. It never returns {"success": true}. Most DELETE routes accept expected_version as a query parameter to delete only if nothing changed since your read.
- Archived resources stay readable. Products, bundles, promotions and promotion codes, payment methods, payout destinations, locations, and most configuration resources return
status: archivedand stay readable by ID. Repeating the delete on an archived product, bundle, promotion, payment method, or delivery configuration resource returns it again unchanged. - Removed resources keep their record. A partner app credential returns
status: removed. - Permanently deleted resources return a final snapshot. A category and a webhook endpoint return
status: deletedand can't be read afterward. A tax registration returnsstatus: removed. A customer address has nostatusand returns the address as it was when Flint deleted it. - Removing a line returns its parent. Deleting an order's line item, charge, or gift card returns the order. Deleting a subscription line item returns the subscription, and deleting a return line item returns the return.
A buyer's saved gift card works the same way. DELETE /v1/me/gift-cards/{gift_card_id} removes only that buyer's saved access and returns the card snapshot with can_remove: false. It returns 404 for cards the buyer owns or lacks current saved access to. Retrying with the original Idempotency-Key replays the first response.