Webhook events and payloads
Most integrations need two or three webhook events: one to fulfill orders, one to reconcile money, and one or two for the lifecycle the integration owns, such as subscriptions or refunds. Start with Choosing the right event, then read the family section for each event you subscribe to.
Every event reports one change to one resource. event_type names the resource and what happened to it, as <resource_type>.<event>, and data.object carries that resource as its GET returns it. Switch on event_type, act on data.object, and use the rest of the envelope for deduplication and routing.
- To register an endpoint and verify signatures, follow Webhooks.
- For headers, every envelope field, and the retry schedule, see Webhook delivery.
- For every event type with its schema and an example payload, see the event catalog.
API keys#
Subscribe to api_key.created, api_key.updated, and api_key.revoked to monitor credential changes, including keys created through the Dashboard or while creating a sandbox. data.object is the API key returned by GET /v1/api-keys/{api_key_id}. It never includes secret_key.
api_key.createdreports a new key, including an install-linked key.api_key.updatedreports a change to the key's name, scopes, access, orexpires_at.api_key.revokedreports explicit revocation, revocation when a linked install or environment grant ends, and revocation when its sandbox is archived. Revoking an already-revoked key sends no event. Revoking a parent key does not revoke its children. Events for a large archived sandbox can arrive after the archive response.
Test-key events go to the key's sandbox endpoints; live-key events go to live endpoints. Partner apps cannot subscribe to this family. Passing expires_at changes no stored status, so it sends no event. Updates to last_used_at also send no event. No historical events are sent for existing keys.
The event envelope#
Every merchant event uses the same envelope. data.object carries the resource, and change events can also carry data.previous_attributes. This is the body of an order.paid delivery:
{
"webhook_event_id": "whev_1kmn0aExample",
"event_type": "order.paid",
"event_source": "merchant",
"payload_version": 2,
"api_version": "2026-09-07",
"mode": "test",
"sandbox_id": "test_1kmn0aExample",
"merchant_id": "mer_1kmn0aExample",
"created_at": "2026-07-03T14:00:00Z",
"test": false,
"request": null,
"data": {
"object": {
"order_id": "ord_1kmn0aExample",
"order_number": "1001",
"status": "closed",
"payment_status": "paid",
"refund_status": "none",
"customer_id": "cus_1kmn0aExample",
"payment_intent_ids": ["pi_1kmn0aExample"],
"line_items": [
{
"order_line_item_id": "li_1kmn0aExample",
"name": "Annual membership",
"quantity": 1,
"unit_price_money": { "amount": 9900, "currency": "USD" },
"total_money": { "amount": 9900, "currency": "USD" }
}
],
"created_at": "2026-07-03T13:58:00Z",
"updated_at": "2026-07-03T14:00:00Z"
}
}
}
The order is abbreviated. A delivery carries the whole order as GET /v1/orders/{order_id} returns it, apart from the fields webhooks leave out.
| Field | Use it to |
|---|---|
webhook_event_id | Deduplicate. Every retry and resend of the event carries the same ID, which also arrives in the webhook-id header. |
event_type | Route the event. Return a 2xx for types you don't handle. |
event_source | Distinguish envelope shapes. Required on every event: merchant, partner_app, or installed_merchants. |
mode | Keep test events away from live side effects. test events come from sandbox keys and data. |
sandbox_id | Identify the public sandbox. Present exactly when mode is test; omitted in live mode. |
test | Recognize synthetic events from the test-events endpoint, which carry true. Every other event carries false. |
request | Find the API call that caused the event: request.id is that call's request_id. It is null when no API request caused the event. |
created_at | Know when Flint recorded the event; the resource's own timestamps say when the change happened. |
data.object | Read the resource the event is about. |
data.previous_attributes | Read the previous whole value of each changed top-level resource field. Optional on change events; absent on created, deleted, notification, and synthetic test events. |
Webhook delivery describes every envelope field, including payload_version and how api_version is chosen for each attempt.
Three delivery rules shape every handler:
- Delivery is at least once. The same event can arrive more than once, so deduplicate on
webhook_event_idbefore any side effect. - A delivery succeeds on a
2xxwithin 10 seconds. Queue slow work and respond first. Failed deliveries retry up to 9 times over about three days, on the retry schedule. - Each object is a snapshot. Flint records
data.objectonce, when it prepares the event. Every retry and resend carries that same snapshot, rendered at the attempt's API version, so the bytes match unless the endpoint'sapi_versionchanged between attempts. Fetch the resource when you need its current state.
Warning: Events arrive in no guaranteed order
Events fan out to each endpoint and retry independently, so a later event can arrive before an earlier one. Don't build a state machine that expects payment_intent.succeeded before order.paid. Handle each event on its own, and fetch the resource before you act on state that may have moved.
Fields webhooks leave out#
A webhook has no caller, so data.object leaves out the few fields that GET computes for whoever is asking, or that would give the receiver authority it shouldn't have. Expandable fields are unexpanded, as on a GET without expand. Read the resource for these fields or for linked state that Flint computes on read.
| Resource | Left out | Why |
|---|---|---|
Payment intent (payment_intent) | processing_fee_money, processing_fee_details, add_on_fees, merchant_net_money, payment_collection, remaining_refundable_money | GET returns verified fees, current refund capacity, and payment collection guidance for the caller's permissions. |
Checkout session (checkout_session) | url, recovery_payment_attempt_id, recovery_expires_at, can_save_payment_method, save_payment_method_types, save_payment_method_requires_verification, pay_to_new_address_requires_verification, can_save_payment_method_with_phone, payment_method_save, customer_prefill, merchant_support, merchant_name, show_flint_mark, merchant_logo, merchant_icon, payment_link_image, platform_fee, customer_account_url | GET returns launch links, buyer-specific details, branding, and the requested platform fee. |
Invoice (invoice) | public_url | The URL carries the invoice access token. |
Order (order) | buyer_actions, active_payment_attempt, payment_collection, setup_collection | Buyer actions depend on the caller. Payment and setup fields carry client authority and depend on who is paying. |
Order edit (order_edit) | note | Internal merchant notes are available through merchant GET requests only. |
Merchant (merchant) | banners, timezone_inferred | GET builds Dashboard notices on each read and reports whether Flint inferred the business time zone for that read. |
Partner app install (partner_app_install) | platform_contact | GET reads the platform's current support contact when you request the install. |
Delivery profile (delivery_profile) | diagnostics, unconfigured_assignment | GET returns diagnostics only with include_diagnostics, and reads bulk assignment progress from the assignment on each GET and list. |
Product (product) | variants, matched_variant, modifier_set | These fields appear only in create or list responses, or with expansions. |
Product variant (product_variant) | modifier_set, inventory_availability | The modifier set appears only with an expansion. Stock availability is computed when a variant is read; read the variant again after inventory_level.updated. |
Bundle (bundle) | modifier_set | The modifier set appears only with an expansion. |
Promotion (promotion) | codes | Only the create response includes codes. |
Promotion code (promotion_code) | promotion | The promotion appears only with an expansion. |
Reader (reader) | active_payment_intent_id | GET reads the payment presented on the reader now; the payment intent's events report it. |
Order and subscription buyer_actions are empty arrays because those actions depend on the caller.
Read the checkout session for the current delivery quote, the order's refunds, and the buyer's gift_card_challenge. Read the payment intent for the last_payment_error.remediation.next_actions available under the caller's permissions.
Choosing the right event#
Find the job your system does, and build it on the event in the middle column.
| Job | Build on | Why |
|---|---|---|
| Fulfill an order | order.paid | Fires when the order becomes fully paid on any surface: checkout session, payment link, invoice, or direct API. One subscription covers them all. Before fulfilling, check that active_payment_review_id is null and check dispute_status; an open review blocks fulfillment. |
| Fulfill added items on a paid-order edit | order_edit.completed, or order_edit.created with status: completed | A pending edit applies only after its balance payment succeeds. The order stays paid and sends no second order.paid. |
| Know a hosted checkout was paid | checkout_session.paid | Fires once for each session that collects its full amount due, including a session for one installment of an order's balance. It means that session was paid, not the order, so don't fulfill from it. |
| Know a hold was placed | payment_intent.requires_capture | The authorization landed, including after 3D Secure. The payment intent carries order_id when it belongs to an order. |
| Know captured money settled | payment_intent.succeeded | A capture arrives as payment_intent.succeeded, with the amount in captured_money. There is no payment_intent.captured. |
| Know a hold is about to expire | payment_intent.authorization_expiring | Capture or release it before authorization_expires_at. |
| Know a hold ended uncaptured | payment_intent.canceled and payment_intent.expired | canceled when you or Flint released the hold, expired when it reached authorization_expires_at. Both put the hold in released_money. |
| Reconcile money movement | balance_transaction.created | One event for each charge, refund, fee, payout, and adjustment that moves your balance. |
| Track refund outcomes | refund.succeeded | Refunds settle asynchronously. Pair it with refund.partially_succeeded and refund.failed, because a bank can still reject a credit after the refund succeeded. |
| Mirror the catalog | product.updated and the other catalog events | One event for each change to a product, variant, bundle, category, modifier group, modifier set, promotion, or promotion code. |
| Respond to disputes | dispute.needs_response | Your evidence is needed and a deadline is running. The outcome events close the case. |
| Grant and revoke subscription access | subscription.activated | Provision on it, warn on subscription.past_due, and revoke on subscription.canceled. |
| Keep subscription shipments moving | subscription.delivery_action_required | A renewal of a plan that ships is held because delivery can't be quoted. Pair it with subscription.delivery_pause_upcoming. |
| Track invoice receivables | invoice.paid | Pair it with invoice.partially_paid, invoice.credited, invoice.reopened, invoice.marked_uncollectible, and invoice.voided. |
| Know a payout reached your bank | payout.succeeded | payout.created means scheduled, not arrived. Pair it with payout.failed, which can follow payout.succeeded if the bank returns the deposit. |
| Honor email opt-outs | customer_email_preferences.updated | Keep your own shipping-update and checkout-reminder suppression list current when a customer changes preferences or email. For guests, look up preferences before each send. |
| Keep card-on-file state current | payment_method.activated | Fires when the method is active and can be charged, not at form submit. Pair it with payment_method.failed and payment_method.archived. |
| React to verification and readiness changes | merchant.readiness_updated | A signal to read readiness again. It also fires when a payout capability changes. |
Pick one primary event for each job and make its handler idempotent. Subscribing several overlapping events to one job is the most common cause of double fulfillment.
Which event means paid#
One successful payment sends events at several levels, so decide once which event your system fulfills or grants from. Every payment sends exactly one payment_intent.succeeded, whoever owns it. The owner's event is the one that says the sale is paid.
| You're building | Fulfill or grant on | One event per successful payment | Not a fulfillment signal |
|---|---|---|---|
| Orders, whichever route paid them, including confirming an order's payment intent | order.paid, or order.partially_paid for staged payments | payment_intent.succeeded | payment_intent.requires_capture |
| Standalone payments | payment_intent.succeeded | payment_intent.succeeded | payment_intent.processing |
| Hosted or embedded checkout and payment links | order.paid. checkout_session.paid is context for the session | payment_intent.succeeded | checkout_session.paid |
| Invoices | invoice.paid, or invoice.partially_paid for each collection | payment_intent.succeeded with invoice_id | payment_intent.processing |
| Subscriptions | subscription.payment_succeeded | payment_intent.succeeded with subscription_id | subscription.updated to active |
payment_intent.processing means Flint is waiting for or confirming the outcome. Keep the order unfulfilled until the success event arrives, and never start another payment meanwhile.
Handle every failed payment in one place#
Handle payment_intent.payment_failed for every owner, then route on the owner links in data.object: order_id, invoice_id, checkout_session_id, or subscription_id. It fires once for each newly recorded failure, with last_payment_error on the payment intent. Read version on the object and skip a snapshot older than the one you already applied.
The owner events that report the same failure, such as invoice_payment_attempt.failed or subscription.past_due, tell you what the owner did next. They are not a second failure handler.
React to a specific field change#
On status, aggregate, condition, and updated events, data.previous_attributes can tell you which fields changed. Check whether it contains the field you care about, then compare its previous value with the new value in data.object. A nested change reports the whole previous top-level value: a change to one item in line_items reports the previous line_items array. A field absent before the change has a previous value of null. previous_attributes is absent when the event reports a new resource.
The member can be absent when Flint didn't record the prior state, including events recorded before their family began recording both states and events from families that haven't moved to that system yet. Synthetic test events never carry it. Don't treat its absence as proof that nothing changed; keep your own previous state if your handler must detect a field change in every event.
previous_attributes excludes bookkeeping (updated_at and version), clock-based values, observation fields, and fields that reflect another resource's current state. It uses the same API version as data.object.
One flow, several events#
One business flow sends events at several levels of the model. A successful payment on a subscription renewal can send all of these:
Subscribe to the level your system owns: payment intent and balance events for ledgers, order events for fulfillment, invoice events for receivables, subscription events for access, and payment method events for cards on file. When the action is about access to a recurring product, prefer the subscription event over the invoice or payment intent event.
Events that are easy to confuse#
invoice.sentreports the email.invoice.issuedmeans the invoice is collectible.invoice.reminder_dueis for sending a reminder yourself. When Flint sends invoice email, followinvoice_delivery_attempt.sent,invoice_delivery_attempt.failed, andinvoice_delivery_attempt.suppressed.invoice.paidandinvoice.creditedaren't final. Reversing a payment or a credit note allocation can reopen the balance and sendinvoice.reopened, so a ledger that treats either as terminal drifts.invoice_payment_attempt.succeededreports one successful attempt, which can leave a balance.invoice.paidmeans the balance is cleared.checkout_session.invalidatedwithsuperseding_checkout_session_idisn't an abandoned sale: the buyer is using a newer session.merchant.readiness_updateduses Flint's readiness vocabulary. Don't infer readiness from processor account flags.
When in doubt, use the highest-level event that matches the action your system takes, and fetch the resource before an irreversible side effect.
Payloads by family#
data.object is the resource named before the dot in event_type: order.paid carries an order, shipment.updated a shipment, and invoice_payment_attempt.failed a payment attempt. Events never add fields of their own inside data.object, so one parser for each resource covers every event about it. Previous values, when available, are in the sibling data.previous_attributes object. The API reference documents every field, and each row below expands to the event's schema and an example.
Subscribe each endpoint with enabled_events, which is required. ["*"] subscribes to every event type, including types added later. Families not covered here, such as payment reviews and fraud warnings, are in the event catalog.
Payment intents#
supported_actions includes stored owner facts when Flint renders the snapshot. It can change without advancing the payment intent version or sending a payment event. Order legs list confirm when a single leg can pay the balance or a holding attempt can continue it. Invoice payments list only cancel; subscription payments list none. Read the payment intent again after an order changes before choosing an action.
Object: the payment intent as the change that sent the event left it. fulfillment_hold is captured with the payment change. risk and last_payment_error.remediation are read when Flint prepares the event, usually seconds later, and applied to both recorded renders when present.
Status events fire once when the stored status changes, and payment_intent.payment_failed fires once for each newly recorded failure; repeated provider observations and replays don't create another event. A later failed attempt sends its own payment_intent.payment_failed, even when its last_payment_error matches the previous one. A change that sends another payment intent event doesn't also send payment_intent.updated.
The object never includes fees. Read them from GET /v1/payment-intents/{payment_intent_id} once verified, or from the payment's balance_transaction.created event; see Processing fees. It also has no current_payment_action, which only the confirm result carries. For a payment intent in requires_action, call POST /v1/payment-intents/{payment_intent_id}/confirm with an empty body ({}) to retrieve the action. This works for a standalone payment and, with merchant credentials, for an order leg.
A refund or dispute never changes a payment intent's status. When one changes its refunded_money, refund_status, or dispute_status, Flint sends payment_intent.updated as well as the refund.* or dispute.* event. A payment intent that belongs to an order carries order_id, so an order-level handler can join on it. If you only need to know when an order is paid, listen at the order level instead.
Orders#
Object: the order. An order sold through a payment link carries payment_link_id, and a subscription cycle's order carries subscription_id and subscription_cycle.
The payment and refund status events report the order's aggregate status, not each payment or refund behind it. They fire only when payment_status or refund_status changes to the named value. A second partial payment that changes the paid amount while leaving payment_status at partially_paid sends order.updated, and so does a second partial refund that leaves refund_status at partially_refunded. A status change sends its status event without order.updated. An order created already paid or closed sends order.paid or order.closed with order.created. Each hold, capture, and refund sends its own payment_intent.* or refund.* event with the amounts of that one payment or refund. A partial capture sends payment_intent.succeeded. If the capture moves the order to partially_paid, it also sends order.partially_paid. See Manual capture.
order.closed fires once per order, on the move from open to closed, and that move doesn't also send order.updated. closed_reason tells a paid sale (paid) from a stopped one: closed_by_merchant, checkout_expired, written_off, superseded, return_resolution_canceled, or other. More values can be added.
order.updated covers any change to the order that no other order event describes: edits to metadata, notes, and external_reference_id, linking a guest order to a verified customer, changes to the order's fulfillments or fulfillment_status (including a fulfillment created after payment), a paid subscription's delivery destination correction, a paid line's expected_ship_date changing to a different value, stock filling a line's backordered units (which lowers its backordered_quantity), paid or refunded amount changes that leave payment_status and refund_status unchanged, such as a reversed manual payment, and a dispute opening, closing, or changing the order's dispute totals. After a failed payment whose delivery selection expired, removing shipping charges or clearing the delivery destination sends it too. Recording the buyer contact at payment start, adopting a customer, and freezing the delivery destination when a manual payment is recorded send it too. An edit after closure sends order.updated, never a second order.closed. Follow payment_intent.* and refund.* for each payment or refund's own progress. Writes and replays that leave the order unchanged send no new order event and keep its version.
Order snapshots record refund totals when Flint updates the order's refund projection. A GET can already reflect a later refund at the same order version, changing refund_status and settlement_amounts before the next order event. Follow refund.* for each refund's current status. GET also resolves provisional delivery against the current checkout selection, so it can differ from an event at the same version.
Linked records can appear on GET at the same order version. checkout_session_ids and payment_link_id follow linked checkout sessions. payment_intent_ids follows linked payment intents. refund_ids and line_items[].refundable follow the order's refunds. Read the order again after checkout_session.created, payment_intent.created, or a refund event, including refund.partially_succeeded.
Some order fields are read from other resources when the event is recorded, so a change to them alone sends no order event. Follow payment_intent.* for supported_actions and authorization_amounts, gift_card.* and gift_card_redemption.* for gift_cards, gift_card_estimate, and line items' purchased_gift_cards, return_resolution.updated for return_credit_settlements, and delivery_selection.committed for governing_delivery_selection_id.
Dispute changes to the order's dispute_status, settlement_amounts.disputed_money, or dispute_lost_money advance its version and send order.updated. When the same commit changes a payment or refund status axis, its axis event replaces order.updated. Follow dispute.* for each case. Those events can precede order.paid; the later order.paid snapshot then carries dispute_status. Check that state before fulfilling.
Order payloads carry each line's backordered_quantity, release_date, and expected_ship_date. Flint updates the order shortly after the stock change that filled its backordered units, so order.updated can arrive after the inventory_level.updated for that change. Read the order's version to tell which snapshot is newer. See Backordered and pre-ordered lines.
The inventory exception events carry the order: inventory_exception_reason keeps the original cause after resolution, and inventory_exception_resolution_message holds the note you sent when resolving, if any.
Order edits#
Object: the order edit, with remove_line_items, charge_refunds, refund_money, and refund_ids.
An edit that refunds money sends refund.created and the other refund.* events for the refund it creates. If Flint can't create the refund while the edit request runs, order_edit.created arrives first and refund.created follows once the refund exists, so don't expect the refund to be in the request's response. A refund from an edit carries order_edit_id. An edit whose units all have a value of zero creates no refund and sends only order_edit.created. Retrying a failed edit refund creates a new refund, which sends refund.created and the other refund.* events.
Fulfillment, shipments, and packages#
Object: the fulfillment, shipment, package, or fulfillment event named in the event type, each as its own GET returns it, with its order_id. See Fulfillment and shipping for the flow these events report.
A fulfillment's status is its exact status when the event was recorded, including accepted, on_hold, and no_show. A held fulfillment carries active_hold with its reason and previous_status, and a no-show carries outcome.
Each status change sends one fulfillment event with the fulfillment after the step. A terminal status sends fulfillment.completed, fulfillment.canceled, or fulfillment.failed instead of fulfillment.updated. A later package change, such as a return to sender, never reopens a completed fulfillment. For transition-specific work, use fulfillment_event.created: its previous_status and current_status use the same values as the fulfillment's status, and a released hold records previous_status: on_hold with the restored status as current_status.
Use shipment and package events to mirror those resources, including edits that leave their status unchanged:
| Event | When it fires |
|---|---|
shipment.created | A shipment is created, including a return shipment. Its snapshot includes the initial package_count. |
shipment.updated | Any persisted shipment revision: metadata, external_system, external_reference_id, package count, or derived progress and timestamps, even when status stays the same. |
package.created | A package is created. |
package.updated | A package's status, tracking, carrier, service, expected delivery time, label, weight, dimensions, external references, metadata, or items change, including clearing a field. |
- Adding a package to an existing shipment sends
package.createdandshipment.updatedwith the newpackage_count. Creating a fulfillment with its initial shipment, package, and items sends only their creation events. - Creating, editing, or deleting a package item advances the package's
versionand sendspackage.updatedwithoutprevious_attributes. The package snapshot doesn't contain items, so listGET /v1/packages/{package_id}/itemsto the last page to mirror contents. An item edit alone doesn't update the shipment or order. - A fulfillment created under a payment hold sends only
fulfillment.created, withstatus: on_hold. supported_actionsis read from other resources when the event is recorded, so a change to it alone sends no event. A fulfillment's followsorder.paid,payment_intent.fulfillment_hold_updated, and its shipments' events. A shipment's or package's follows its fulfillment's events and, for a package,shipment.updated.- Each committed revision sends at most one update of its type, even when revisions happen within one second or restore an earlier value. A package transition can also revise its shipment, fulfillment, and order and send their events. No-op patches, failed operations, and idempotent replays send nothing.
- Your own API calls send these events too. Replace a stored shipment or package only when the snapshot's
versionis higher than the one you hold.
Tracking edits also send fulfillment_event.created. Metadata and package item edits don't add a timeline fact or email the buyer. To send your own mail, choose the buyer moments your integration owns.
Inventory#
Object: the inventory level, reservation, count, transfer, or receipt named in the event type. See the Inventory API for the quantity model these events report, and every inventory event in the catalog.
- Events fire for every qualifying change, including changes your own requests caused. Deduplicate on the event ID rather than telling your changes apart from Flint's.
- Levels, reservations, counts, and transfers carry
version. One inventory command sends at most one event of each type for each resource, with the resource as the command left it, so a retried command sends nothing new. A return request that restocks several lines into one level sends one level update. Keep the snapshot with the higherversion. - A change that raises a level's
shortage_quantitysendsinventory_level.shortage_detectedinstead ofinventory_level.updated. A level's first stock at a Location sendsinventory_level.updatedwithoutdata.previous_attributes. - One reservation expiry can send
inventory_reservation.released,inventory_reservation.hold_expired, and, when no active quantity remains,inventory_reservation.closed. All three carry the same reservation, and their order doesn't matter. inventory_reservation.at_riskfires when stock moving at a level leaves a claim less protected. A reservation'sat_risk_held_quantity,at_risk_committed_quantity, andsupported_actionsfollow the level's stock, so they change without a reservation event of their own; read the reservation again afterinventory_level.updated.inventory_transfer.departedfires for each departure, including later ones while the transfer is in transit.inventory_transfer.closedcan arrive with the event for the transfer's physical step, such asinventory_transfer.received.inventory_reservation.action_requiredcarries the reservation withinventory_action_requiredset, andinventory_level.shortage_detectedcarries the level whoseshortage_quantityrose.inventory_reservation.updated,inventory_count.updated, andinventory_transfer.updatedreport changes without an event of their own: a reservation's newexpires_ator clearedinventory_action_required, a draft count's observations, and a transfer'snote,external_reference_id, or lines, including acancelthat leaves it open. A request that changes nothing keepsversionand sends no event. Creating a count or transfer, and canceling a count, send no event.- Reservation events cover reservations you create. Stock that Flint holds for orders and checkout shows up through level and order events.
- Reading inventory sends no events.
Catalog#
Object: the product, product variant, bundle, price list, category, modifier group or modifier set, promotion, or promotion code named in the event type, as its GET returns it. Each object carries its own ID: product_id, variant_id, bundle_id, price_list_id, category_id, modifier_group_id, modifier_set_id, promotion_id, or promotion_code_id.
Every catalog resource sends created, updated, and archived, except categories, which send deleted because a deleted category can't be read again.
Which write sends which event. created follows a POST, and archived or deleted follows a DELETE. updated follows every other committed change to the resource's own state, including changes Flint makes itself, such as an image moderation result. A bulk delivery profile assignment sends one product_variant.updated for each variant it changed and one bundle.updated for each bundle whose components changed.
Variants and promotion codes send their own events, because they have their own routes:
POST /v1/productssendsproduct.createdand oneproduct_variant.createdfor each variant it creates. A request with twovariantssends three events, and the default variant is one of the two. A simple product sendsproduct.createdand oneproduct_variant.createdfor its default variant.POST /v1/promotionssendspromotion.createdand onepromotion_code.createdfor each code in the request.- A variant or code write sends that resource's event. When it also moves the parent's counts or summaries, the parent sends its own
product.updatedorpromotion.updatedin the same request. A variant write that changes itsname,sku,status, orselected_optionsalso sendsbundle.updatedfor each bundle that contains it. - A product update that adds or reactivates an option with
existing_variant_valuesendsproduct.updatedonce andproduct_variant.updatedfor each active variant that received the value. The product and variant changes commit together, so a failed request sends nothing. - Options and their values, bundle components, a group's modifiers, and a set's groups have no routes of their own. The parent's
GETincludes them, so the parent'supdatedevent covers changes to them. There are no option, component, or modifier events. Orders that already include a bundle keep their own copy of its components, so replacing them changes nothing else.
Archiving a parent archives its children, and each child sends its own event. Archiving a product sends product_variant.archived for each variant it archived, in the same request as product.archived. Archiving a promotion sends promotion_code.archived for each code it archived, shortly after promotion.archived, because a promotion can have any number of codes. A child that was already archived sends nothing again. Archived products, variants, bundles, modifier groups and sets, promotions, and promotion codes stay readable by ID with status: archived. A deleted category doesn't.
Modifier set event objects include every entry's full modifier_group, for reusable and inline groups alike. A shared group change advances each referencing set's version and updated_at and sends its own modifier_set.updated. Product and bundle categories contain only category_id and handle; join category records by category_id for names. A category rename sends category.updated and leaves product and bundle versions unchanged.
Copies of another resource advance the holder. A variant shows its product's option names, its status through is_available_for_sale, and its images, and a bundle shows each component's variant and product. When a change reaches one of those copies, the holder's version and updated_at advance in the same request and the holder sends its own updated event: a product rename sends bundle.updated for each bundle containing its variants, and a product status change sends product_variant.updated for each active variant and bundle.updated for each bundle containing them. A resource sends at most one event per request, and never updated beside archived.
A parent sends its own event when a child changes its summaries. A variant change that moves its product's default_variant, price_range, active_variant_count, variant_count, is_available_for_sale, or delivery_configuration_status sends product.updated in the same request, beside the variant's own event. Bulk delivery assignment (POST /v1/delivery-profiles/{delivery_profile_id}/assign-to-unconfigured) is the exception: it sends these events shortly after its 202 response, one batch of at most 250 variants or bundle components at a time, each batch's events together. Assigning a product or bundle to a category, removing it, or a promotion starting or stopping to reference a category sends category.updated with the new counts. Creating, changing, or archiving a promotion code sends promotion.updated when it changes the promotion's codes_summary.
Fields that change without an event.
| Resource | Fields | Change when |
|---|---|---|
| Promotion | uses_count, available, unavailable_reason, and codes_summary.active_count and newest_active_code | A buyer redeems or releases a use, a code expires or runs out of uses, or a schedule boundary passes. |
| Promotion code | uses_count, available, unavailable_reason | A buyer redeems or releases a use, or its promotion or schedule changes. |
| Category | targeting_reference_count | A return policy or return reason starts or stops referencing it. |
uses_count records buyer usage: redemptions and releases change it without advancing version or updated_at. available, unavailable_reason, codes_summary.active_count, and newest_active_code are evaluated when you read them. An event's object records them once, when Flint records the event. Expanded fields and a variant's inventory_availability aren't in event objects; see Fields webhooks leave out. Redemptions, schedule boundaries, sandbox resets, and copying catalog data between environments send no events.
What the object shows. Flint renders the resource through the same code as GET inside the change's own transaction, so the object is exactly the state that change committed, and a retry or resend delivers that same snapshot. category.deleted carries the category as DELETE returned it. Each event's created_at is the time Flint recorded the event, which can be later than the change.
Every change to a catalog resource, including one that reaches it from another resource, advances its version and sends its event, so keep the copy with the higher version. The fields in the table above are the exceptions, and copying catalog data between environments writes the target environment without events. Keep another system in sync walks through mirroring and backfill.
Gift cards#
Object: the gift card, load, redemption, or notification named in the event type, as its GET returns it, or the transaction as the transaction feed returns it. Snapshots never include full codes or recipient access secrets. Notification snapshots leave out delivery; retrieve the notification for its delivery history.
Each command sends one event set, and each resource sends at most one event in it, with data.previous_attributes on change events. A load, redemption, capture, cancellation, expiry, refund to the card, adjustment, or cash-out changes the card's value, so it sends gift_card.updated beside its child events, plus one gift_card_transaction.created for each posting. A freeze, unfreeze, close, or update sends only gift_card.updated. Creating, sending, or canceling a notification sends only the notification's event. Replacing a code sends gift_card.updated and a gift_card_notification.updated for each unsent notification it cancels. A replayed command sends nothing.
Every change advances the resource's version, so keep the copy with the higher version. A redemption's supported_actions is evaluated when you read it: capture leaves the list when expires_at passes, with no event.
Checkout sessions#
Object: the checkout session, with its type, status, terminal_reason, and the order_id, invoice_id, or payment_link_id it belongs to. A replaced session carries superseding_checkout_session_id, the session that took over.
When Flint clears a buyer's contact under its retention policy, it sends checkout_session.updated without previous_attributes.
A session shows customer_id, subscription_plan_id, custom_field_answers, and payment_intent_ids from its order and the order's payment intents, so a change to them alone sends order.* or payment_intent.created, not a checkout session event.
If you fulfill from order.paid, use checkout_session.paid for checkout-specific work such as analytics or post-purchase messages, not as a second fulfillment trigger. When an invalidated session carries superseding_checkout_session_id, the buyer has a newer session: send them to it instead of treating the sale as lost. See Checkout sessions.
Payment links#
Object: the payment link. Its status, version, and sales counts are recorded when the change is saved. Item names and the hosted url are read when the event is prepared, moments later, so they can reflect a change made in between.
payment_link.created carries platform_fee_rule when set. Setting, replacing, removing, or ending a rule after a revoke advances the link's version. The update includes the prior value in previous_attributes.platform_fee_rule, or null when the link had no rule.
Sales through a link don't send payment_link.updated, even though they change completed_count and total_quantity_sold. Each sale sends order.paid with the order's payment_link_id.
Tickets#
Object: the ticket, one for each ticket an event payment link sold. Every ticket event is a snapshot of the ticket as GET /v1/tickets/{ticket_id} returns it. None carries the admission code.
License keys#
Object: the license key, activation, or pool named in the event type, as its GET returns it. License key snapshots show key_last4, never the full key.
Sales change a pool's quantities without advancing its version. A disabled key keeps its activations, so license_key.disabled sends no activation events.
Refunds#
Object: the refund. status is pending, succeeded, partially_succeeded, or failed, and summarizes the per-payment payment_refunds and tender_allocations, which each have their own status. A refund raised by a Return resolution carries return_id and return_resolution_id, and one raised by a credit note carries credit_note_id and invoice_id.
Abandoning a payment_returned refund sends one refund.failed with failure_reason: refund_abandoned. Its data.object matches the Refund returned by GET; previous_attributes contains the changed status, pending_reason, and failure_reason. It sends no refund.updated or order event.
Creation sends refund.created. If the refund starts in succeeded, partially_succeeded, or failed, creation also sends that status event. Each later change of status sends exactly one lifecycle event, with no refund.updated beside it. A replay with no public change sends nothing. Only failed is final: a bank can reject a credit after the refund succeeded, which sends refund.partially_succeeded or refund.failed. Fetch the refund and act on its current status. The order's order.partially_refunded and order.refunded report its aggregate refund_status, not each refund. See Refunds.
Returns#
Object: the Return, receipt, inspection, disposition, or resolution named in the event type. Return, disposition, and resolution snapshots include the merchant resource's supported_actions when Flint records the event.
return.*reports the Return itself, includingreturn.decision_recorded,return.completed, andreturn.reopened.return_receipt.*,return_inspection.*, andreturn_disposition.*report physical facts about the merchandise, andreturn_resolution.*reports value for the buyer.- Flint publishes one event per resource version, so a retried transition produces one event, and every version that changes a Return gets its own. A request that changes nothing, such as a
PATCHthat repeats the current values, sends no event and keeps theversion. - Each request sends at most one event per resource.
POST /v1/returns/{return_id}/processsends one event for the Return and one for each receipt, inspection, disposition, and resolution it creates or changes. A Return it creates and decides sendsreturn.createdandreturn.decision_recorded. - Verifying receipt lines while creating an inspection sends
return_receipt.verifiedbesidereturn_inspection.created. - A resolution's
supported_actionscan change as its effects progress between events. Read the resolution before taking an action. - A receipt's or inspection's
available_disposition_quantityis read from its dispositions when the event is recorded, so a disposition changes it without a receipt or inspection event. Followreturn_disposition.*. - A superseded receipt or inspection is a recorded correction, not a deletion. The old observation stays readable and the correction arrives as a new one, so treat
.supersededas a signal to read the Return again rather than to discard what you stored. - Resolutions settle through other families. A refund resolution sends ordinary
refund.*events, plusorder.partially_refundedororder.refundedwhen it changes the order'srefund_status. A resolution the buyer pays sends ordinarypayment_intent.*events.
Returns maps these events to buyer portal, point of sale, warehouse, and finance integrations.
Disputes#
Object: the dispute, with its payment_intent_id, order_id, amount_money, status, reason, case_type, and evidence state such as evidence_due_at and is_action_required.
Dispute event identities follow the commit that changed the public dispute, so two changes recorded in the same second remain distinct. Reobserving the same dispute sends nothing. Event created_at is when Flint records the event.
A dispute that opens needing a response sends dispute.created and dispute.needs_response together. After that, one change sends only one of dispute.updated, dispute.needs_response, or an outcome event. A dispute is final after exactly one of dispute.won, dispute.lost, dispute.prevented, or dispute.inquiry_closed. Disputes covers the response queue.
The computed is_action_required, is_evidence_deadline_passed, and supported_actions fields are as of when Flint recorded the snapshot. Once evidence_due_at has passed, reads return is_action_required: false, is_evidence_deadline_passed: true, and no accept action, with no event. Schedule reminders from evidence_due_at. In test mode, dispute.updated with has_evidence: true can follow dispute.needs_response when Flint saves an unsubmitted draft; it doesn't mean someone started or submitted a response.
Subscriptions#
Object: the subscription. An event for a change to the subscription records it at the version the change wrote. That covers its creation, status changes, billing periods and payments, schedule and plan changes, delivery and line item edits, promotion changes, retry dates, and refused resume requests. subscription.created, and subscription.activated for a subscription created active, record the version the creation wrote. subscription.dunning_exhausted records the version of the cancellation or pause that ends the retries. A notice sent ahead of a date, such as subscription.trial_ending or subscription.renewal_upcoming, and a subscription.dunning_exhausted that leaves the subscription past_due change nothing, so they record the version current when Flint sends them. When Flint prepares those events, usually seconds later, it adds the fields it reads from other resources: last_payment_error, outstanding_money, open_renewal_order_id, billing_interval_options, and the delivery's delivery_method and shipping_money. For the subscription.updated sent when Flint detects an upcoming delivery hold or an inventory wait, Flint reads the subscription when it prepares the event, so it can include a change made in between. Events don't record who acted or why: read cancellation_reason, pause_reason, and delivery.updated_by on the subscription.
When subscription.activated fires. A subscription created through the API without a trial sends it with the first subscription.payment_succeeded. One created already paid (from a checkout session, a payment link, or an order with subscribed lines) or imported sends it right after subscription.created. A trial that converts sends it with the first charge's subscription.payment_succeeded; the subscription stays trialing until that charge succeeds. If the charge is declined, the subscription goes straight from trialing to past_due and sends subscription.past_due, and subscription.activated follows when a later payment succeeds.
Cancellation and pause reasons. cancellation_reason is buyer or merchant when that side asked, payment_failed when no one asked, and other for a scheduled cancellation with no recorded requester. pause_reason is delivery_action_required when a delivery hold ran out.
Plan changes. period_end keeps the current plan until the next charged renewal. Scheduling or replacement sends the snapshot event subscription.plan_change_scheduled; explicit PATCH null clear sends the snapshot event subscription.plan_change_canceled. Clearing an already empty field sends nothing. At the charged boundary, Flint records subscription.plan_changed before the payment outcome. Delivery remains at least once and unordered, so deduplicate by webhook_event_id and re-read current state.
next_renewal changes the plan immediately and sends subscription.plan_changed. A successful now sends it with subscription.payment_succeeded for the new period. A successful prorated_now plan change or billed quantity change sends the same events while keeping the period and billing date. A zero net prorated change sends only subscription.plan_changed, with no order or payment attempt. A declined immediate change sends no subscription event. Applying or superseding a pending change, or canceling the subscription, clears it without an extra subscription.plan_change_canceled; the existing specific event shows scheduled_plan_change: null. A change to effective_at alone sends no replacement event. A skip sends only subscription.cycle_skipped. Flint sends no plan change email.
Renewal orders. Each successful cycle creates an order, which sends order.paid and carries subscription_id and subscription_cycle. On a plan that ships, the renewal order also gets a fulfillment and sends fulfillment.*, shipment.*, and package.* events; subscription_cycle lets you spot first shipments. An Order now renewal sends the same events as a scheduled one.
Delivery holds. delivery_hold carries reason (method_unavailable, destination_not_served, or rate_unavailable), fixable_by (buyer or merchant), started_at, and ends_at. During a hold Flint creates no renewal order, and cancels an unpaid renewal order already open for that billing date. A new one is created when the hold clears. When a renewal can't get stock, its invoice sends invoice.collection_blocked, and invoice.collection_block_resolved when stock returns. See Ship physical products.
subscription_delivery_migration.completed carries a delivery method migration, not a subscription, with its status and its moved_count, failed_count, pending_count, and failure_reason_counts. List the subscriptions that failed to move from the migration's failures route.
last_payment_error is linked to the renewal order and its payment intent. It is outside the subscription's version and changes without its own subscription event. Refetch after the renewal order's order.* events, which carry subscription_id, or payment_intent.payment_failed.
Payment retries. A payment retry charges a past-due subscription, started by the buyer from their account or by you through the API. Its events carry the retry, with status, order_id, payment_intent_id, and, once it fails, last_payment_error.
Retry payloads use the same object as the merchant GET. payment_intent_id names the payment the command started; it is omitted before charging starts or when no payment intent was created. Read the payment intent for the payment's status and history.
Use the retry events to report how a retry went, for example in your own dunning email, and keep granting and revoking access from the subscription events. See Subscription billing and Recover a past-due subscription.
Invoices#
Object: the invoice for invoice.* events, the payment attempt for invoice_payment_attempt.*, the manual payment for invoice_manual_payment.*, and the delivery attempt for invoice_delivery_attempt.*. A payment attempt, manual payment, or delivery attempt carries invoice_id; fetch the invoice when you need its state. Every invoice event is in the catalog.
Balance events. invoice.issued means the invoice has its number and billing snapshot and is collectible. invoice_payment_attempt.succeeded means one attempt succeeded, and invoice_payment_attempt.failed leaves the invoice collectible. An ACH debit attempt stays processing until the debit settles or fails. Then the invoice reports its balance:
invoice.partially_paidfires for each collection that leaves a balance: online, gift card, or manual.invoice.paidfires when the balance reaches zero with collected payments applied, whether the last step was a payment, a credit note allocation, or a late fee waiver.invoice.creditedfires when credit note allocations close the invoice with no collected payments remaining.invoice.marked_uncollectiblefires when you write the balance off, andinvoice.voidedwhen you void the invoice.invoice.reopenedfires when reversing a payment or allocation reopens a closed balance, or removes the last collected payment from a partially paid invoice. The invoice is thenopenorpartially_paid.
One change can send several of these events, in no guaranteed order.
Invoice updates. An invoice status or condition event has no companion invoice.updated for the same change. In particular, a scheduled issue failure sends only invoice.issue_failed, and writing off the balance sends only invoice.marked_uncollectible. Applying or reversing a credit note allocation changes the invoice's credit and outstanding amounts and sends invoice.updated unless the invoice sends a status event such as invoice.credited, invoice.paid, or invoice.reopened.
Pausing or resuming reminders and recording the first view send invoice.updated. Repeating the same setting or viewing the invoice again sends no new invoice event.
Platform fee rules. invoice.created carries the rule when set. Setting, replacing, or removing a rule, or ending it after a revoke, advances the version. The event includes the whole previous rule in data.previous_attributes.platform_fee_rule, or null when first set. Flint sends invoice.updated unless the same write triggers a more specific invoice event, which then carries the rule change. Sending the same displayed rule keeps the version and sends no event.
Refunds. Refund status events fire only when refund_status changes to the named value, without invoice.updated. For two partial refunds followed by a final refund, the first sends invoice.partially_refunded, the second sends invoice.updated because refund_status stays partially_refunded, and the final refund sends invoice.refunded. A correction back to none sends invoice.updated too. Refund amount changes behind an unchanged status include later card settlements of a mixed gift card and card refund. Replays that leave the invoice unchanged send no new invoice event. Follow refund.* for each refund's own progress.
Manual payments. invoice_manual_payment.created means you recorded an offline payment, and invoice_manual_payment.reversed means you reversed one in full and its amount returned to the balance. Recording also sends invoice.partially_paid or invoice.paid, and a reversal that changes the invoice's status also sends invoice.reopened.
Reminders and late fees. invoice.reminder_due, invoice.overdue, and invoice.late_fee_due are scheduled from the due date when the invoice is issued, and fire only while a balance remains. invoice.reminder_due is for sending the reminder yourself; the invoice's delivery_mode says whether Flint sends it. invoice.late_fee_assessed and invoice.late_fee_waived follow your calls to the late fee routes, and the fee is in the invoice's late_fees.
Invoice email. Each invoice email, initial send or reminder, is a delivery attempt, as GET /v1/invoices/{invoice_id}/delivery-attempts lists it, with its delivery_type (send or reminder) and the addresses used.
Delivery outcomes lists each reason and what to do. See Invoicing.
Credit notes#
Object: the credit note for credit_note.* events, and the allocation for credit_note_allocation.* events, with its credit_note_id, invoice_id, amount_money, and reversed_at once reversed.
credit_note.issued assigns the credit note number and freezes the lines. Its object is the credit note alone; the invoice and any refund the issue creates send their own events. Issuing without allocation doesn't change the invoice. An allocation does, whether you request it on issue or afterward: credit_note_allocation.created applies credit to the invoice, and credit_note_allocation.reversed returns it to the balance. Both also change the credit note's allocated_money and available_money and send credit_note.updated, except on issue, where credit_note.issued covers the change.
A credit note refund doesn't send a credit note event. The note reads pending_refund_money, refunded_money, latest_refund_status, and the refunded part of available_money from its refunds when you retrieve it, so requesting a refund and each refund outcome change those fields without moving its version. Follow the refund's refund.* events, which carry credit_note_id, and retrieve the note for its current amounts. previous_attributes on credit_note.updated leaves out available_money for the same reason; allocated_money shows the allocation's change.
Issuing with allocation sends credit_note.issued without credit_note.updated, credit_note_allocation.created, and the invoice's status event when its status changes, in no guaranteed order. To know the invoice closed, pair credit_note_allocation.created with invoice.credited or invoice.paid. To know it reopened, pair credit_note_allocation.reversed with invoice.reopened. See Credit notes.
Customers and saved payment methods#
Object: the customer for customer.* events, whether you created it or Flint created it from a buyer's email at checkout, and the payment method for payment_method.* events.
payment_method.activatedfires when the payment method becomesactiveand can be charged, which can be after the buyer left your page. Treat it as the signal that a card on file is usable.payment_method.failedreports a save that didn't complete, so no card on file is usable. It also fires when a buyer who saved a card with a mobile number in checkout doesn't confirm it within 24 hours.payment_method.updatedfires when a card's details change without a status change, such as newlast4or expiry from the card network after the bank reissued the card. A card whose expiry date passes reads asexpiredwith no event, and one the network renews reads asactiveagain withpayment_method.updated, notpayment_method.activated.- A payment method's
is_defaultfollows its customer'sdefault_payment_method_id, so choosing or clearing a default sendscustomer.updatedand no payment method event.
A confirmed staff-started customer email change emits customer.updated with previous_attributes.email.
payment_method.archivedfires when you or the buyer delete a saved payment method, and when Flint archives one itself, such as a card saved with a phone number the customer replaced or a card detached at the processor. Its object hasstatus: "archived"; it stays readable by ID and can't be charged again.customer.updatedfires for each change to the customer's own fields, including a new default address or default payment method, and itsdata.previous_attributesholds the values that changed. A write that changes nothing, such as the samePATCHsent again, sends no event and keeps the customer'sversion. An email change sendscustomer.updatedandcustomer_email_preferences.updated, one for each resource.customer.updatedalso fires when you approve a deletion request, withstatus: "deletion_processing".customer.deletedfires when deletion completes: the customer hasstatus: "deleted", the name "Deleted customer", and no personal data.
The preference version is separate from the customer's version. An unchanged preference sends no event, and neither do guest preference changes, removing the customer's email, or customer deletion. When a customer without an email gets one, the event has no data.previous_attributes. If you send your own shipping updates or checkout reminders, honor false in the corresponding category. Look up guest preferences before each send with POST /v1/email-preferences/lookup; both it and the customer read need customers.read. See Honor unsubscribes in email you send.
See Save a card and charge it later.
Customer deletion#
Object: the deletion request, with its customer_id, status, retention_policy, requested_at, and resolved_at once resolved.
A buyer raises the request from their account, and someone on your side approves or rejects it. Subscribe to customer_deletion_request.created if that decision needs to reach a person or a ticket queue. These events go only to the merchant's own endpoints; partner apps receive customer.deleted when a deletion completes.
Deletion anonymizes the customer but keeps the commerce records Flint must retain, which retention_policy: "retain_required_commerce_records" reports: orders, invoices, credit notes, payments, and refunds stay for accounting, tax, and disputes. If you hold your own copy of the buyer's data, customer.deleted is your signal to delete it. See Customer deletion requests for what each record keeps.
Payouts#
Object: the payout, with its amount_money, status, method, initiated_by, fee fields, and payout_destination_id when set.
A status transition sends its specific event without payout.updated alongside it. A public change without a specific event sends payout.updated. Re-observing the same state sends no new event. A payout created already succeeded, failed, or canceled sends payout.created and that status event.
For the payout lifecycle and how to handle a failure, see Payouts.
Payout destinations and settings#
Object: the payout destination or payout settings that changed.
payout_destination.archived fires when DELETE /v1/payout-destinations/{payout_destination_id} removes a destination, which stays readable by ID with status: archived. payout_destination.disabled fires when your processor disables a destination, never for a DELETE. Reconciliation that restores a stored destination to active sends payout_destination.updated. payout_settings.updated fires when your payout schedule or settings change. See every payout destination event.
Balances#
Object: balance.updated carries the balance as GET /v1/balances returns it, including observed_at, the time Flint observed the amounts. balance_transaction.* carries the balance transaction.
balance_transaction.created is the backbone of reconciliation: one event per ledger entry, and each entry links to its source in related_resource (resource_type and resource_id) when it has one. balance_transaction.updated fires when an entry changes, including becoming available, receiving corrected resource links, or acquiring its payout_id. On a pending entry, available_at is the expected date.
fee_money is the fee on the movement: positive for charges and negative for returned fees. On a payment it matches the payment's processing_fee_money plus its add_on_fees (Processing fees). On a dispute or reversal it includes a processor dispute fee deducted from or returned to your balance. A won dispute alone doesn't return that fee. net_money is amount_money minus fee_money. Refunds, standard payouts, and merchant billing collections have a zero fee.
payout_id names the payout that carried the entry, once that payout's contents are prepared. Assigning it sends balance_transaction.updated for each assigned entry. To read a payout's contents, use GET /v1/balance-transactions?payout_id=...; see What's in a payout.
The first time Flint stores a balance, it sends balance.updated without previous_attributes. Later changes to the balance amounts send balance.updated; changes only to observed_at send no event.
A payout you create moves its amount from available_money to held_money, which balance.updated reports. It adds no balance transaction until the payout debits your balance.
Merchant billing#
Merchant billing is what you owe Flint, not what your customers owe you.
Object: merchant_billing_balance.updated carries the billing balance, with outstanding_money, available_credit_money, and observed_at. The payload is the balance when Flint sends the event. Events carry no previous_attributes, because changes can commit concurrently. merchant_billing_invoice.issued and merchant_billing_invoice.updated carry the invoice Flint issued to you, as GET /v1/merchant-billing-invoices/{merchant_billing_invoice_id} returns it, with its invoice_number, status, money fields, billing period, and line_items. merchant_billing_invoice.issued fires once for each invoice, including one that credit pays in full when Flint issues it. merchant_billing_invoice.updated fires when a collection, a reversed collection, or a write-off changes the invoice, and its previous_attributes holds the values the change replaced.
When Flint collects what you owe from your Flint balance, the collection sends balance_transaction.created with type merchant_billing_collection. A reversed collection sends one with type merchant_billing_collection_reversal, whose related_balance_transaction_ids holds the collection it reverses.
merchant_billing_balance.updated doesn't carry the entries behind the change, and no event fires per entry. List GET /v1/merchant-billing-entries?created_after=... and deduplicate by merchant_billing_entry_id. An entry can be recorded after entries that occurred later, so filter on created_after, not occurred_after. See Merchant billing.
Reports#
Object: the report as GET /v1/reports/{report_id} returns it, with either a download or a failure_reason.
Use report.succeeded and report.failed instead of polling. failure_reason is generation_failed, data_unavailable, or limit_exceeded. The download URL in a report.succeeded event expires 24 hours later, so download on receipt rather than storing the URL. Report events go only to the merchant's own endpoints, because report routes refuse partner app tokens. See Reports.
Merchant profile#
Object: the merchant, as GET /v1/merchant returns it in the event's mode, including readiness.
The profile is shared by every environment, so one change sends merchant.updated to each active environment. The event carries data.previous_attributes with the profile fields the change replaced. Readiness changes alone send merchant.readiness_updated instead, and readiness never appears in previous_attributes. When one change updates the profile and publishes readiness, you get both events. Compare version with the merchant you stored and keep the higher one.
Merchant readiness#
Object: the merchant, as GET /v1/merchant returns it in the event's mode, with its readiness: the payments and payouts axes, every entry of capabilities, the requirements lists, and observed_at.
merchant.readiness_updated fires when published payment, payout, or onboarding readiness changes in that environment, for example after a verification or account change, newly scheduled requirements (requirements.upcoming_due or upcoming_due_at changed), a payment or payout capability activation or loss, or a processing pause or resumption. Scheduling, canceling, or starting a review pause each triggers a readiness update, even if the published readiness is unchanged. Use the scheduled review pause fields to tell when the pause will take effect. While Flint's review pauses the account, readiness.payments.status_reason is platform_review. While a past-due Flint balance holds payouts, readiness.payouts.status_reason is billing_suspended and payments stay ready. Sandbox processor transitions follow the same rule, so you can rehearse the flow before going live.
The event includes blocked_since on blocked payments, payouts, and capabilities when Flint knows when the current block began. The timestamp stays the same when the reason changes during that block.
Use the event as a prompt to read readiness again. A review-pause event carries the current readiness when Flint publishes it, so a delayed schedule event can carry readiness from after cancellation or start. A timestamp change alone sends no event. The first publication after this change sends an event even if readiness is unchanged, and unchanged readiness can arrive again during rollout. Deliveries can repeat. On receipt, read GET /v1/merchant and act on that response; compare readiness.observed_at to order two reads. It includes the time a review pause was scheduled, canceled, or started early. During onboarding, the event speeds up the polling described in After the owner exits.
Custom domains#
Object: the custom domain after the change, as GET /v1/custom-domains/{custom_domain_id} returns it.
A new last_checked_at alone sends no event, and neither does a new active_payment_attempt_count, which counts payment intents you already receive events for. When the status isn't active, status_reason says what to fix, such as dns_record_missing or caa_record_blocks_certificate. On archived, status_reason is null, redirect_expires_at says when the hostname's redirects end, and dns_records lists the records you can delete. active_payment_attempt_count is null for a customer account domain. status and status_reason can gain values, so treat a value you don't recognize as needing attention. Match events by custom_domain_id: a replacement hostname is a new domain with its own ID. See Custom domains.
Delivery configuration#
Object: the delivery profile, zone, location set, method, or rate callback named in the event type, as its GET returns it, or the delivery revocation.
Each write sends at most one event for each resource it changed, and only when it advances the resource's version:
createdfollows a create, andarchivedfollows an archive. Methods and rate callbacks also sendactivatedanddeactivatedwhen theirstatuschanges. A status change never also sendsupdated.updatedfollows any other change, with the earlier values indata.previous_attributes. APATCHthat carries a revision field always publishes a new revision and sendsupdated, even when the values are unchanged.- Changing a rate callback's
signing_methods, alone or with other fields in the samePATCH, orrotate-secretissuing its first secret (which addshmac), sends onedelivery_rate_callback.updatedwith the earlier values, includingsigning_methods, indata.previous_attributes. Rotating a secret that already exists changes nothing the callback shows and sends no event. - Making a profile the catalog default sends
delivery_profile.updatedfor it and for the profile that stops being the default, which changes theiris_default. - Revoking a method's or rate callback's current revision sends
delivery_revocation.createdand that resource'supdated, because itsdelivery_revocation_idandversionchange. Revoking an older revision, a signing key, or a Location geography sends onlydelivery_revocation.created. - A
PATCHwhose values match the stored ones, including asigning_methodsset equal to the current one, or a status change to the current status, changes nothing. It keeps theversionand sends no event.
A method's subscription_counts is read from its subscriptions, so a subscription change sends subscription.*, not delivery_method.updated. A rate callback's circuit_state and circuit_failure_count follow Flint's recent calls to it and send no event; read the callback when you need them.
Tax connection#
Object: the tax connection after the change, as GET /v1/tax-connection returns it.
tax_connection.updated fires on every committed change to the connection's public state or its registrations: when the connection starts, when the first registration is added or the last is deleted, when a connect succeeds or ends in attention_required, when a disconnect finishes, and when Flint support disables the connection. A registration create, edit, activation, or deletion counts as a change. A write that records only Flint's internal provisioning progress leaves version as it was and sends nothing, so every new version arrives as an event. Compare version with the connection you stored and keep the higher one.
The read-time states business_details_changed and temporarily_unavailable send no event. A registration's status can also change without an event, when a start or end date passes. Read GET /v1/tax-connection when automatic tax fails. Registrations have no events of their own: list tax registrations again after a connection event.
Partner apps#
Object: the partner app after the change, as GET /v1/partner-apps/{partner_app_id} returns it, including platform.
These events go to the owning merchant's own live endpoints, not to the app's partner endpoints, and never include a client secret. platform.limits.usage and the owning merchant's readiness change without an event; the merchant receives merchant.readiness_updated for its readiness. Compare version with the app you stored and keep the higher one. See Become an approved platform.
Payment splits#
Source: merchant, collecting merchant only. Kind: snapshot.
Object: the payment split as GET /v1/payment-splits/{payment_split_id} returns it, including its reversals.
These events go to the collecting merchant's endpoints in the payment's mode. Sellers learn of received funds through balance_transaction.created on their own ledger, with related_resource naming the split. A split change sends no payment_intent.updated event. Compare a split's version with the version you stored and keep the higher one.
Platform fees#
Object: the platform fee after the change, as GET /v1/platform-fees/{platform_fee_id} returns it.
These events go to the endpoints of the merchant that owns the partner app, in the fee's mode, not to the app's partner endpoints or to the installed merchant. A fee Flint records already canceled sends platform_fee.created and then platform_fee.canceled. Compare version with the fee you stored and keep the higher one.
Test clocks#
Object: the test clock after the change, as GET /v1/test-clocks/{test_clock_id} returns it.
Test clocks exist only in sandboxes, so these events come only from sandboxes. Flint records test_clock.ready after every event the advance caused, such as the renewals and notices of the clock's subscriptions, and those events carry test_clock_id. Deliveries can still arrive in any order, but once the clock is ready, GET /v1/webhook-events lists them all. Compare version with the clock you stored and keep the higher one. See Test clocks.
Event sequences by scenario#
These sequences show the order in which the events typically arrive. Delivery order isn't guaranteed, so handle each event on its own.
Hosted checkout payment#
A buyer pays on a checkout session or payment link. checkout_session.created arrived earlier, when the session was created.
To fulfill from an event other than order.paid, first confirm the order's payment_status is paid. A session can collect one installment of an order's balance, so fulfilling from checkout_session.paid can ship an order before it is paid.
Manual capture#
You place a hold now and capture later. See Manual capture.
Refund#
Check status on the create response. It reports the outcome when processing finishes during the request; otherwise it returns pending. Follow a pending refund with GET /v1/refunds/{refund_id} or refund.* events. Keep handling events after succeeded, because a bank rejection can still move the refund to partially_succeeded or failed. A refund with processed_by: "merchant" skips all of this: it sends refund.created and refund.succeeded in one step, moves no balance, sends no balance_transaction.created, and stays succeeded. Its invoice and order each send one event for the refund: invoice.partially_refunded or invoice.refunded when refund_status changes, otherwise invoice.updated, and the same pattern for order.*.
Return#
A buyer returns merchandise and is refunded for it. Steps vary by flow: an in-store return records receipt, decision, and resolution in one call, so its events arrive together.
When a job needs every obligation cleared, act on return.completed, not on the resolution: a resolution can settle while merchandise work is still open. return.updated fires throughout as line-level progress changes, so treat it as a prompt to read the Return again, not as a stage.
Dispute#
Subscription billing#
Provision access on subscription.activated, warn on subscription.past_due, and revoke on subscription.canceled. If access depends on the plan, read subscription_plan_id again on subscription.plan_changed.
Catalog sync#
A product with two variants is created, repriced, and retired. Promotions and their codes follow the same pattern.
Payout cycle#
How event types are named#
Every event type is <resource_type>.<event>, with exactly one dot. The part before the dot is the public resource_type of data.object, the same value resource references, timelines, and the resource_type filter on GET /v1/webhook-events use. The part after the dot is one of these:
- A generic verb.
created,updated,archivedwhen aDELETEleaves the resource readable withstatus: archived(payout_destination.archived), ordeletedwhen it can no longer be read (category.deleted). - A status the resource declares.
payout.succeeded,dispute.won,refund.failed. The name can use the status's verb form (activebecomesactivated,inactivebecomesdeactivated,openbecomesopenedorreopened) or the past tense of the action that enters the status (invoice.issuedentersopen,invoice.marked_uncollectibleentersuncollectible). - A condition about the resource.
payment_intent.payment_failed,invoice.late_fee_assessed,subscription.renewal_upcoming.
Names never use a synonym for a status, such as completed for paid: checkout_session.paid reports the session's paid status, and payment_method.activated reports active. Names never use status_changed. Renaming an event is a breaking change that Flint announces in the changelog, and stored events keep reading under the new name (see Previous names).
One change, one event per resource#
Each change belongs to the resource that changed. A child resource with its own resource_type sends its own events, and its object carries its parent's ID: a new shipment sends shipment.created with fulfillment_id and order_id. When the same change also moves the parent's own fields, the parent sends its own event too. A refund changes a payment intent's refunded_money and refund_status, so it sends payment_intent.updated beside the refund.* event.
Contents that have no routes of their own belong to the parent and send the parent's events. An invoice's late fees, a product's options, a package's items, and a tax connection's registrations work this way. Adding an item to a package sends package.updated.
A new version always arrives as an event. A change sends one event for each status the resource entered and each condition that occurred, and otherwise one <resource_type>.updated. It never sends updated beside another event for the same resource. Flint confirming a state it already recorded, such as a processor confirming a payment that already succeeded, sends nothing.
A few cases differ:
- A condition can repeat without a public change. A second
payment_intent.payment_failedfor a different payment attempt can leave the payment intent looking the same as after the first. Each occurrence still sends its own event. - A resource can be born in a status. A refund that succeeds in the request that creates it sends
refund.createdandrefund.succeeded. A resource created in its normal starting status sends only.created. - No event carries
previous_attributeswhen the change creates the resource, because there is no earlier value to compare. This includes a status event sent beside.created. - Merchant readiness is its own observation.
merchant.readiness_updatedreports what Flint learned from the payment provider. It doesn't replacemerchant.updated: a change that updates the profile and publishes readiness sends both. - Billing balance events omit
previous_attributes.merchant_billing_balance.updatedcarries the balance when Flint sends the event, because changes to what you owe can commit at the same time.
A few fields change without an event because the resource doesn't record them: values that show another resource's current state when you read it, values computed from the clock, and times when Flint last checked something. Fields that change without an event lists them with the events that tell you to read again.
Payments follow the same rule. A hold, capture, cancellation, or expiry is a payment intent event, and the payment intent carries order_id; the order sends no event for it. A refund's lifecycle is refund.*, and the refund carries order_id and payment_intent_id. The order reports only its own aggregate statuses.
Aggregate status events#
Orders and invoices report their own aggregate status fields:
| Event | Reports |
|---|---|
order.partially_paid, order.paid | The order's payment_status |
order.partially_refunded, order.refunded | The order's refund_status |
invoice.partially_paid, invoice.paid | The invoice's status |
invoice.partially_refunded, invoice.refunded | The invoice's refund_status |
The order events fire when the field changes, rather than once for each payment or refund behind it. invoice.partially_paid also fires for each new collection while the invoice stays partially paid.
Status coverage#
Each status of a resource with events is reported in one of three ways: its own status event, the state a created event reports, or an updated event. These statuses are the exceptions. A change into one sends no event:
- Statuses a resource starts in, when it has no
createdevent. Payment methods startpending. Invoice delivery attempts startpending, and invoice payment attempts startopen. Reports startpending. Subscription delivery migrations startpending. Inventory counts and transfers startdraft. Delivery selections startselected. Read the resource by ID when you need to know one exists. - Working states that last seconds to minutes. Payment reviews and subscription payment retries use
resolvingandprocessingwhile Flint works, and subscription delivery migrations useprocessing. A canceled inventory count sends nothing, and a delivery selection locked for payment, replaced, expired, or released sends nothing. The next status that sends an event tells you how the work ended. A change into one of these states sends noupdatedeither. - States computed when you read. A saved payment method's
expiredstatus comes from the card's dates, so nothing is written when the card expires.
Some resources send no updated event at all. Immutable records capture the whole fact when they are created: fulfillment events, gift card transactions, inventory receipts, and delivery revocations. Return receipts and inspections change only through their named events. Test clocks change only through their status events.
These resources send events for their statuses and named conditions without a generic updated event: credit note allocations, customer deletion requests, delivery selections, environment grants, invoice delivery attempts, invoice manual payments, invoice payment attempts, payment reviews, platform fee payouts, reports, subscription delivery migrations, subscription payment retries, and test clocks. Completed order edits, delivery revocations, fulfillment events, gift card transactions, and inventory receipts keep their captured facts and have no generic updated event. Return receipts and return inspections publish their named decisions and supersession. Their status events report the result. Working states such as processing on subscription delivery migrations and payment retries send no event (FLI-1639). Later checkout states on delivery selections send no event; the order reports the outcome (FLI-1704).
When a status or change you need has no event, read the resource. Fields that change without an event lists the computed fields.
Fields that change without an event#
These fields can change while the resource sends no event, because the resource doesn't record the change. A copy built only from webhooks can hold an old value for them. Read the resource when you need the current value. For a field that shows another resource's state, the events in the last column tell you to read it again.
<!-- BEGIN GENERATED FIELDS WITHOUT EVENTS -->
| Resource | Field | Kind of value | Why it changes | Read again after |
|---|---|---|---|---|
API key (api_key) | last_used_at | Flint's latest observation | When the key was last used to authenticate a request. | None |
API key (api_key) | status | Computed from the clock | A non-revoked key reads expired once expires_at passes; passing the deadline sends no event. | None |
Balance (balance) | observed_at | Flint's latest observation | When Flint last read the balance. | None |
Checkout session (checkout_session) | can_apply_promotion_code | Another resource's current state, computed from the clock | Entry follows current merchant promotion policy and active code promotions in the session's environment. Entry follows promotion schedules and session expiry at read time. | promotion.created, promotion.updated, promotion.archived |
Checkout session (checkout_session) | custom_field_answers | Another resource's current state | Read from the session's order, which records the answers when the payment link is resolved. | order.created |
Checkout session (checkout_session) | customer_id | Another resource's current state | Read from the session's order. | order.created, order.updated |
Checkout session (checkout_session) | subscription_plan_id | Another resource's current state | Read from the session's order. | order.created, order.updated |
Checkout session (checkout_session) | delivery_selection_required | Another resource's current state | Whether the order still needs a delivery selection follows the order's line items and fulfillment. | order.updated, fulfillment.created, fulfillment.updated |
Checkout session (checkout_session) | payment_intent_ids | Another resource's current state | Read from the payment intents of the session's order. | payment_intent.created |
Credit note (credit_note) | supported_actions | Another resource's current state | Issue eligibility depends on whether the parent invoice is draft or voided. Void eligibility follows the totals of the credit note's refunds. | invoice.issued, invoice.voided, refund.created, refund.updated, refund.partially_succeeded, refund.succeeded, refund.failed |
Credit note (credit_note) | pending_refund_money | Another resource's current state | Refund progress follows the credit note's refunds. | refund.created, refund.updated, refund.partially_succeeded, refund.succeeded, refund.failed |
Credit note (credit_note) | refunded_money | Another resource's current state | Refund progress follows the credit note's refunds. | refund.created, refund.updated, refund.partially_succeeded, refund.succeeded, refund.failed |
Credit note (credit_note) | latest_refund_status | Another resource's current state | Refund progress follows the credit note's refunds. | refund.created, refund.updated, refund.partially_succeeded, refund.succeeded, refund.failed |
Credit note (credit_note) | available_money | Another resource's current state | Refund progress follows the credit note's refunds. | refund.created, refund.updated, refund.partially_succeeded, refund.succeeded, refund.failed |
Custom domain (custom_domain) | last_checked_at | Flint's latest observation | When Flint last checked the domain. | None |
Custom domain (custom_domain) | active_payment_attempt_count | Another resource's current state | The number of payments in progress on the domain. Payment intent events report those payments. | payment_intent.created, payment_intent.requires_action, payment_intent.requires_capture, payment_intent.processing, payment_intent.succeeded, payment_intent.payment_failed, payment_intent.canceled, payment_intent.expired, payment_intent.updated |
Customer deletion request (customer_deletion_request) | blocking_resources | Another resource's current state | These fields read the customer's current subscriptions and saved payment methods. Read the pending request again after those resources change. | subscription.created, subscription.canceled, payment_method.activated, payment_method.archived, payment_method.failed, payment_method.updated |
Customer deletion request (customer_deletion_request) | blocking_resource_count | Another resource's current state | These fields read the customer's current subscriptions and saved payment methods. Read the pending request again after those resources change. | subscription.created, subscription.canceled, payment_method.activated, payment_method.archived, payment_method.failed, payment_method.updated |
Customer deletion request (customer_deletion_request) | canceled_subscription_ids | Flint's latest observation | Flint records completed cancellations and card removals as deletion progresses. Poll the request with GET; customer_deletion_request.completed or customer_deletion_request.failed includes the completed IDs. | None |
Customer deletion request (customer_deletion_request) | removed_payment_method_ids | Flint's latest observation | Flint records completed cancellations and card removals as deletion progresses. Poll the request with GET; customer_deletion_request.completed or customer_deletion_request.failed includes the completed IDs. | None |
Delivery method (delivery_method) | subscription_counts | Another resource's current state | Counts the subscriptions that use the method when you read it. | subscription.created, subscription.activated, subscription.paused, subscription.resumed, subscription.past_due, subscription.canceled, subscription.delivery_updated |
Delivery profile (delivery_profile) | unconfigured_assignment | Flint's latest observation | Flint's own progress through the profile's latest bulk assignment. | None |
Delivery rate callback (delivery_rate_callback) | circuit_state | Flint's latest observation, computed from the clock | Flint's own recent callback outcomes for the current revision. An open circuit reads half_open once its probe delay passes. | None |
Delivery rate callback (delivery_rate_callback) | circuit_failure_count | Flint's latest observation | Flint's own recent callback outcomes for the current revision. | None |
Dispute (dispute) | is_action_required | Computed from the clock | Computed from the evidence deadline and the current time. | None |
Dispute (dispute) | supported_actions | Computed from the clock | Computed from the evidence deadline and the current time. | None |
Dispute (dispute) | is_evidence_deadline_passed | Computed from the clock | Computed from the evidence deadline and the current time. | None |
Fulfillment (fulfillment) | supported_actions | Another resource's current state | Action availability follows the order's payment status and payment fulfillment holds, the fulfillment's active shipments, and the merchant's approval setting. | order.paid, payment_intent.fulfillment_hold_updated, shipment.created, shipment.updated |
Gift card redemption (gift_card_redemption) | supported_actions | Computed from the clock | Capture eligibility compares a manual reservation's expires_at with the current time. | None |
Inventory count (inventory_count) | lines.*.physical_version | Another resource's current state | A draft count shows the level's current quantities as its expected quantities. | inventory_level.updated |
Inventory count (inventory_count) | lines.*.expected_on_hand_quantity | Another resource's current state | A draft count shows the level's current quantities as its expected quantities. | inventory_level.updated |
Inventory count (inventory_count) | lines.*.expected_quality_control_quantity | Another resource's current state | A draft count shows the level's current quantities as its expected quantities. | inventory_level.updated |
Inventory count (inventory_count) | lines.*.expected_damaged_quantity | Another resource's current state | A draft count shows the level's current quantities as its expected quantities. | inventory_level.updated |
Inventory count (inventory_count) | lines.*.expected_quarantined_quantity | Another resource's current state | A draft count shows the level's current quantities as its expected quantities. | inventory_level.updated |
Inventory reservation (inventory_reservation) | lines.*.at_risk_held_quantity | Another resource's current state | Flint recomputes protection from the level's sellable stock and the claims ahead of this one when stock moves. | inventory_level.updated, inventory_level.shortage_detected, inventory_reservation.at_risk |
Inventory reservation (inventory_reservation) | lines.*.at_risk_committed_quantity | Another resource's current state | Flint recomputes protection from the level's sellable stock and the claims ahead of this one when stock moves. | inventory_level.updated, inventory_level.shortage_detected, inventory_reservation.at_risk |
Inventory reservation (inventory_reservation) | supported_actions | Another resource's current state, computed from the clock | Flint recomputes protection from the level's sellable stock and the claims ahead of this one when stock moves. Commit availability compares the hold deadline with the current time. | inventory_level.updated, inventory_level.shortage_detected, inventory_reservation.at_risk |
Invoice (invoice) | supported_actions | Another resource's current state, computed from the clock | Void eligibility depends on whether another credit note is issued, including unallocated notes. Collect eligibility follows currently_due_money, which comes from the schedule's due dates and timezone. Reaching the start of a due window sends no event. | credit_note.issued, credit_note.voided |
Invoice (invoice) | late_fees.*.supported_actions | Another resource's current state | A late fee's waive eligibility follows the invoice's status. Late fees have no events of their own. | invoice.issued, invoice.partially_paid, invoice.paid, invoice.credited, invoice.marked_uncollectible, invoice.voided, invoice.reopened |
Invoice manual payment (invoice_manual_payment) | supported_actions | Another resource's current state | Action eligibility follows the parent invoice's status. | invoice.issued, invoice.partially_paid, invoice.paid, invoice.credited, invoice.marked_uncollectible, invoice.voided, invoice.reopened |
License key (license_key) | active_activation_count | Flint's latest observation | The number of active installations changes as the key is activated and released. | None |
License key (license_key) | customer_id | Another resource's current state | Follows the customer of the order or subscription. | order.updated, subscription.updated |
License key activation (license_key_activation) | last_validated_at | Flint's latest observation | Validation checks update last_validated_at without an activation event. | None |
Merchant (merchant) | readiness | Flint's latest observation | Reflects the payment provider's account checks and Flint's capability checks, which change without an update to the merchant. | merchant.readiness_updated |
Merchant (merchant) | api_version_previous | Computed from the clock | The previous API version and its rollback deadline are shown only until the 72-hour rollback window ends. | None |
Merchant (merchant) | api_version_rollback_expires_at | Computed from the clock | The previous API version and its rollback deadline are shown only until the 72-hour rollback window ends. | None |
Merchant billing balance (merchant_billing_balance) | observed_at | Flint's latest observation | When Flint last read the balance. | None |
Order (order) | gift_card_tender_enabled | Another resource's current state | Gift card entry follows whether the merchant has any card that is not closed in this environment. | gift_card.created, gift_card.updated |
Order (order) | supported_actions | Another resource's current state, computed from the clock | Action availability follows the order's payment intents, its open payment attempt, and its collection authority. Action availability compares each payment intent's authorization expiry with the current time. | payment_intent.created, payment_intent.requires_action, payment_intent.requires_capture, payment_intent.processing, payment_intent.succeeded, payment_intent.payment_failed, payment_intent.canceled, payment_intent.expired, payment_intent.updated |
Order (order) | authorization_amounts | Another resource's current state, computed from the clock | Sums the order's payment intents that are waiting for capture. An authorization drops out once its authorization_expires_at passes. | payment_intent.requires_capture, payment_intent.succeeded, payment_intent.canceled, payment_intent.expired, payment_intent.updated |
Order (order) | active_payment_attempt | Another resource's current state | The active attempt's legs follow their payment intents. Changes to them, such as a blocked leg becoming payment_returned, are reported by payment_intent.updated, not order.updated. | payment_intent.created, payment_intent.requires_action, payment_intent.requires_capture, payment_intent.processing, payment_intent.succeeded, payment_intent.payment_failed, payment_intent.canceled, payment_intent.expired, payment_intent.updated |
Order (order) | line_items.*.purchased_gift_cards | Another resource's current state | An invoice manual payment or its reversal can issue or take back purchased gift cards without changing the order. | gift_card.created, gift_card.updated |
Order (order) | return_credit_settlements | Another resource's current state | A return credit settles on the replacement order through the return, without changing the order. | return_resolution.updated |
Order (order) | gift_cards | Another resource's current state | Gift card selections show each card's current available balance. | gift_card.updated, gift_card_redemption.created, gift_card_redemption.updated |
Order (order) | gift_card_estimate | Another resource's current state | Gift card selections show each card's current available balance. | gift_card.updated, gift_card_redemption.created, gift_card_redemption.updated |
Order (order) | governing_delivery_selection_id | Another resource's current state, computed from the clock | An open unpaid order shows the checkout delivery selection that currently governs it. A delivery selection stops governing the order when its quote expires. | delivery_selection.committed |
Order (order) | fulfillments.*.supported_actions | Another resource's current state | Each fulfillment's action availability follows its active shipments, payment fulfillment holds, and the merchant's approval setting. | shipment.created, shipment.updated, payment_intent.fulfillment_hold_updated |
Order edit (order_edit) | refund_ids | Another resource's current state | Refund IDs, unrefunded money, and retry availability follow the edit's refunds as Flint creates and processes them. | refund.created, refund.succeeded, refund.failed, payment_intent.updated, payment_intent.succeeded |
Order edit (order_edit) | unrefunded_money | Another resource's current state | Refund IDs, unrefunded money, and retry availability follow the edit's refunds as Flint creates and processes them. | refund.created, refund.succeeded, refund.failed, payment_intent.updated, payment_intent.succeeded |
Order edit (order_edit) | supported_actions | Another resource's current state | Refund IDs, unrefunded money, and retry availability follow the edit's refunds as Flint creates and processes them. | refund.created, refund.succeeded, refund.failed, payment_intent.updated, payment_intent.succeeded |
Package (package) | supported_actions | Another resource's current state | Action availability follows the parent fulfillment's status and the shipment's status. | shipment.updated, fulfillment.updated, fulfillment.completed, fulfillment.canceled, fulfillment.failed |
Partner app (partner_app) | platform.limits.usage | Flint's latest observation | Payments and onboarding calls update usage without changing the app. | None |
Partner app (partner_app) | client_secret_last_used_at | Flint's latest observation | When Flint last saw the client secret used. | None |
Partner app (partner_app) | api_version_previous | Computed from the clock | The rollback offer and the previous secret show only until their windows end. | None |
Partner app (partner_app) | api_version_rollback_expires_at | Computed from the clock | The rollback offer and the previous secret show only until their windows end. | None |
Partner app (partner_app) | previous_secret_expires_at | Computed from the clock | The rollback offer and the previous secret show only until their windows end. | None |
Partner app (partner_app) | platform.requirements | Another resource's current state | Follows the owner merchant's current readiness. A readiness change alone sends merchant.readiness_updated. | merchant.readiness_updated |
Payment intent (payment_intent) | failed_attempt_count | Flint's latest observation | Flint reads retained failed attempts when it prepares the delivery. They can include attempts recorded after the event's payment intent version. | None |
Payment intent (payment_intent) | failed_attempts | Flint's latest observation | Flint reads retained failed attempts when it prepares the delivery. They can include attempts recorded after the event's payment intent version. | None |
Payment intent (payment_intent) | supported_actions | Another resource's current state | Supported actions follow stored order facts and holding attempts without advancing the payment intent version. | order.updated, order.paid, order.partially_paid, payment_intent.created, payment_intent.updated, payment_intent.succeeded, payment_intent.canceled, payment_intent.expired |
Payment intent (payment_intent) | splits | Another resource's current state | Current split children are read independently of the payment snapshot; their state never advances the payment version. | payment_split.created, payment_split.succeeded, payment_split.failed, payment_split.canceled, payment_split.updated |
Payment intent (payment_intent) | risk | Another resource's current state | Flint reads the current risk from the payment's reviews and fraud warnings. | payment_review.opened, payment_review.closed, payment_review.reopened, fraud_warning.created, fraud_warning.updated |
Payment intent (payment_intent) | refund_expires_at | Another resource's current state | Read from the settlement time the refund refusal uses. The capture that starts the window sends payment_intent.succeeded. | payment_intent.succeeded |
Payment intent (payment_intent) | platform_fee | Another resource's current state | Read from the payment's platform fee record. Flint can lower the fee at confirm and capture, and settles it in the commit that sends payment_intent.succeeded or payment_intent.canceled. | payment_intent.succeeded, payment_intent.canceled, payment_intent.expired |
Payment link (payment_link) | url | Another resource's current state | The payment link address follows the merchant's current checkout hostname. | custom_domain.updated, custom_domain.archived |
Payment link (payment_link) | line_items.*.product_id | Another resource's current state | Line item display follows the current products, variants, and bundles. | product.updated, product_variant.updated, product_variant.archived, bundle.updated, bundle.archived |
Payment link (payment_link) | line_items.*.resolved_name | Another resource's current state | Line item display follows the current products, variants, and bundles. | product.updated, product_variant.updated, product_variant.archived, bundle.updated, bundle.archived |
Payment link (payment_link) | line_items.*.resolved_unit_price_money | Another resource's current state | Line item display follows the current products, variants, and bundles. | product.updated, product_variant.updated, product_variant.archived, bundle.updated, bundle.archived |
Payment link (payment_link) | line_items.*.resolved_price_range | Another resource's current state | Line item display follows the current products, variants, and bundles. | product.updated, product_variant.updated, product_variant.archived, bundle.updated, bundle.archived |
Payment link (payment_link) | line_items.*.is_catalog_item_unavailable | Another resource's current state | Line item display follows the current products, variants, and bundles. | product.updated, product_variant.updated, product_variant.archived, bundle.updated, bundle.archived |
Payment link (payment_link) | completed_count | Flint's latest observation | Sales through the link update the count without changing the link. | None |
Payment link (payment_link) | total_quantity_sold | Flint's latest observation | Sales through the link update the count without changing the link. | None |
Payment method (payment_method) | status | Computed from the clock | A card's status reads expired once its expiry date passes. | None |
Payment method (payment_method) | is_default | Another resource's current state | Follows the customer's default_payment_method_id. | customer.updated |
Platform fee payout (platform_fee_payout) | balance_transaction_id | Another resource's current state | The credit is linked once Flint observes it on your merchant ledger. | balance_transaction.created |
Product variant (product_variant) | inventory_availability | Another resource's current state | Flint checks current inventory levels and holds using the merchant's default routing source or the active Location in the current environment that has had inventory allocation enabled the longest when no default is set. Webhooks omit this field. | inventory_level.updated |
Promotion (promotion) | available | Computed from the clock | Flint works out availability when you read it, from the status, schedule, and use limits. | None |
Promotion (promotion) | unavailable_reason | Computed from the clock | Flint works out availability when you read it, from the status, schedule, and use limits. | None |
Promotion (promotion) | uses_count | Flint's latest observation | Redemptions update the count without changing the resource. | None |
Promotion code (promotion_code) | available | Computed from the clock | Flint works out availability when you read it, from the status, schedule, and use limits. | None |
Promotion code (promotion_code) | unavailable_reason | Computed from the clock | Flint works out availability when you read it, from the status, schedule, and use limits. | None |
Promotion code (promotion_code) | uses_count | Flint's latest observation | Redemptions update the count without changing the resource. | None |
Reader (reader) | connectivity | Flint's latest observation | What Flint last observed of the reader's connection to Stripe. | None |
Reader (reader) | active_payment_intent_id | Another resource's current state | Follows the payment presented on the reader. The payment intent's events report its changes. | payment_intent.processing, payment_intent.requires_action, payment_intent.requires_capture, payment_intent.succeeded, payment_intent.payment_failed, payment_intent.canceled |
Return inspection (return_inspection) | line_items.*.available_disposition_quantity | Another resource's current state | Disposition capacity follows the dispositions recorded against the receipt or inspection. | return_disposition.created, return_disposition.updated |
Return receipt (return_receipt) | line_items.*.available_disposition_quantity | Another resource's current state | Disposition capacity follows the dispositions recorded against the receipt or inspection. | return_disposition.created, return_disposition.updated |
Return resolution (return_resolution) | supported_actions | Another resource's current state | Actions follow the parent Return's status and the progress of the resolution's effects. | return.updated, return.completed, return.canceled, return.reopened |
Shipment (shipment) | supported_actions | Another resource's current state | Action availability follows the parent fulfillment's status and the shipment's packages. | package.created, package.updated, fulfillment.updated, fulfillment.completed, fulfillment.canceled, fulfillment.failed |
Shop (shop) | url | Another resource's current state | The shop address follows the merchant's current checkout hostname. | custom_domain.updated, custom_domain.archived |
Subscription (subscription) | upcoming_delivery_hold | Flint's latest observation | Flint checks delivery availability before renewal. Read the subscription again for the latest forecast; a delivery hold sends subscription.delivery_action_required. | None |
Subscription (subscription) | inventory_wait | Flint's latest observation | Flint records the latest inventory wait while preparing a renewal. Read the subscription again for current details; a change to the subscription's status still sends an event. | None |
Subscription (subscription) | scheduled_plan_change.effective_at | Computed from the clock | The new plan takes effect at the next charged renewal, so this date follows the renewal schedule. | None |
Subscription (subscription) | last_payment_error | Another resource's current state | Read from the renewal's order and payment intent. | order.updated, order.paid, order.partially_paid, payment_intent.payment_failed, payment_intent.succeeded |
Subscription (subscription) | outstanding_money | Another resource's current state | Read from the renewal's order and payment intent. | order.updated, order.paid, order.partially_paid, payment_intent.payment_failed, payment_intent.succeeded |
Subscription (subscription) | open_renewal_order_id | Another resource's current state | Read from the paid renewal order that hasn't shipped yet. | order.paid, order.updated, fulfillment.completed, fulfillment.canceled |
Subscription (subscription) | billing_interval_options | Another resource's current state | Flint reads these from the current plan. Plan edits send no event. | subscription.plan_changed |
Subscription (subscription) | delivery.delivery_method | Another resource's current state | Flint quotes the method summary and shipping estimate from the current delivery settings. | delivery_method.updated, delivery_method.deactivated, delivery_zone.updated, delivery_profile.updated, order.paid |
Subscription (subscription) | delivery.shipping_money | Another resource's current state | Flint quotes the method summary and shipping estimate from the current delivery settings. | delivery_method.updated, delivery_method.deactivated, delivery_zone.updated, delivery_profile.updated, order.paid |
Subscription (subscription) | promotions.*.remaining_cycles | Another resource's current state | Counted when Flint records the renewal payment, just before the change that completes the cycle. | order.paid |
Subscription delivery migration (subscription_delivery_migration) | moved_count | Flint's latest observation | Flint records progress as subscriptions are checked and moved. Poll the migration with GET for current counts and failures; subscription_delivery_migration.completed reports the final result. | None |
Subscription delivery migration (subscription_delivery_migration) | failed_count | Flint's latest observation | Flint records progress as subscriptions are checked and moved. Poll the migration with GET for current counts and failures; subscription_delivery_migration.completed reports the final result. | None |
Subscription delivery migration (subscription_delivery_migration) | pending_count | Flint's latest observation | Flint records progress as subscriptions are checked and moved. Poll the migration with GET for current counts and failures; subscription_delivery_migration.completed reports the final result. | None |
Subscription delivery migration (subscription_delivery_migration) | failure_reason_counts | Flint's latest observation | Flint records progress as subscriptions are checked and moved. Poll the migration with GET for current counts and failures; subscription_delivery_migration.completed reports the final result. | None |
Subscription payment retry (subscription_payment_retry) | started_at | Flint's latest observation | Flint records these details as the retry progresses. Poll the retry with GET; subscription_payment_retry.succeeded or subscription_payment_retry.failed reports the result. | None |
Subscription payment retry (subscription_payment_retry) | order_id | Flint's latest observation | Flint records these details as the retry progresses. Poll the retry with GET; subscription_payment_retry.succeeded or subscription_payment_retry.failed reports the result. | None |
Subscription payment retry (subscription_payment_retry) | payment_intent_id | Flint's latest observation | Flint records these details as the retry progresses. Poll the retry with GET; subscription_payment_retry.succeeded or subscription_payment_retry.failed reports the result. | None |
Tax calculation callback (tax_calculation_callback) | circuit_state | Flint's latest observation | The results of Flint's recent requests to your callback. They change without an update to the callback. | None |
Tax calculation callback (tax_calculation_callback) | circuit_failure_count | Flint's latest observation | The results of Flint's recent requests to your callback. They change without an update to the callback. | None |
<!-- END GENERATED FIELDS WITHOUT EVENTS -->
updated_at and version change only with a change that sends an event, so they aren't listed.
Snapshot and notification events#
Every event type has a kind. The catalog endpoint returns it as kind, each OpenAPI webhooks entry publishes it as x-flint-event-kind, and the event catalog shows it on every event.
| Kind | What data.object means |
|---|---|
snapshot | The resource state recorded for the event. Every retry and resend delivers the same snapshot, rendered at each attempt's API version. |
notification | A reminder that a condition came due, such as a due date. The object is the resource when the condition came due, so read the resource before acting. |
These event types are notifications. Every other type is a snapshot.
Discovering events at runtime#
GET /v1/webhook-event-types returns every merchant and partner event type, ordered by event_type. Use it to validate your endpoint configuration in CI, or to build tooling that stays current as Flint adds events.
curl "https://api.withflintpay.com/v1/webhook-event-types" \
-H "Authorization: Bearer YOUR_API_KEY"
{
"data": [
{
"event_type": "invoice.overdue",
"resource_type": "invoice",
"kind": "notification",
"previous_names": [],
"description": "An invoice passed its payment due date with an outstanding balance.",
"event_sources": ["merchant", "installed_merchants"]
},
{
"event_type": "payment_review.closed",
"resource_type": "payment_review",
"kind": "snapshot",
"previous_names": ["review.closed"],
"description": "A payment review was resolved or closed by a payment lifecycle change.",
"event_sources": ["merchant", "installed_merchants"]
}
],
"next_page_token": "eyJ2IjoxfQ",
"request_id": "req_01KWM6CV8HCQ8FGRPMSN416WB7"
}
| Field | Meaning |
|---|---|
event_type | The current name, exactly what enabled_events, test-event requests, and the event_type filter on GET /v1/webhook-events accept. |
resource_type | The resource type of data.object, the part of the name before the dot. |
kind | snapshot or notification; see Snapshot and notification events. |
previous_names | Names the type had before a rename. Always an array, empty when the type was never renamed. |
description | What the event reports. |
event_sources | Which endpoint sources can receive it: merchant, partner_app, or installed_merchants. |
page_size defaults to 100, which is also the maximum, and the catalog has 308 types, so follow next_page_token until a response arrives without one.
To send your endpoint a synthetic event of a type it can receive, use the test-events endpoint described in Send a test event. Its data.object is the catalog's example resource, with placeholder IDs that don't exist in your account, so use sandbox activity to exercise your business logic.
OpenAPI webhook schemas#
Each typed entry in OpenAPI's webhooks map fixes event_type with a string const, without x-flint-enum-kind. Each envelope branch also fixes event_source with a const. When an event can come from two sources, its oneOf uses event_source as the discriminator, with an explicit mapping to the source branches. Shared envelope components keep the full extensible event_type enum.
Each entry publishes x-flint-previous-names, the same array as the catalog's previous_names, or [] when the event was never renamed. Tools can use it to suggest the current name without calling the catalog API.
Previous names#
Inputs accept only current names. enabled_events, test-event requests, and the event_type filter on GET /v1/webhook-events reject a previous name with 400 INVALID_REQUEST, whose detail has code INVALID_VALUE and a param naming the input. Replace it with the current event_type from the catalog.
payout.succeeded lists payout.paid in previous_names. Use payout.succeeded in subscriptions, test-event requests, event filters, and handlers.
Reads map previous names permanently:
- An endpoint subscribed under a previous name reads back with the current name in
enabled_eventsand receives events under the current name. - Stored events recorded under a previous name read back with the current
event_type, and filtering by a current name also matches events recorded under its previous names. - Deliveries send the current name, including retries and resends of events recorded before the rename.
Some types were removed with no replacement. A stored subscription to a removed type is dropped when the endpoint is read, and pending deliveries of a removed type stop. If every entry was removed, the endpoint reads back with "enabled_events": [] and receives nothing until you PATCH it with current names. A stored delivery_rate.created subscription is the exception: it reads back as delivery_method.created plus delivery_method.updated.
| Removed type | Subscribe to instead |
|---|---|
subscription.payment_failed | subscription.past_due and subscription_payment_retry.failed |
invoice.delivery_succeeded, invoice.delivery_failed | invoice_delivery_attempt.sent, invoice_delivery_attempt.failed, and invoice_delivery_attempt.suppressed |
fulfillment.status_changed | fulfillment.updated and the terminal fulfillment events |
order.payment_authorized, order.payment_captured, order.payment_authorization_canceled, order.payment_authorization_expired | payment_intent.requires_capture, payment_intent.succeeded, payment_intent.canceled, and payment_intent.expired |
delivery_profile.activated, delivery_profile.deactivated, delivery_zone.activated, delivery_zone.deactivated, delivery_location_set.activated, delivery_location_set.deactivated | Nothing: these resources are only active or archived, so no write sent these types. Use created, updated, and archived. |
Stored subscriptions to these types are dropped, not converted, so add the replacements yourself. See the changelog entry.
Partner app events#
Partner app endpoints receive events in a partner envelope. It has partner_app_id instead of mode, merchant_id, and request, and a source object that says which merchant and install the event concerns. The required top-level event_source is partner_app or installed_merchants. data.object is identical to what a merchant endpoint receives.
{
"webhook_event_id": "whev_1kmn0aExample",
"event_type": "partner_app_install.created",
"event_source": "partner_app",
"payload_version": 2,
"api_version": "2026-09-07",
"partner_app_id": "papp_1kmn0aExample",
"created_at": "2026-07-03T14:00:00Z",
"test": false,
"source": {
"merchant_id": "mer_1kmn0aExample",
"partner_app_install_id": "pinst_1kmn0aExample"
},
"data": {
"object": {
"partner_app_install_id": "pinst_1kmn0aExample",
"partner_app_id": "papp_1kmn0aExample",
"merchant_id": "mer_1kmn0aExample",
"status": "active",
"environment_grants": [
{
"environment_grant_id": "egrt_1kmn0aExample",
"mode": "live",
"status": "active",
"granted_scopes": ["commerce.orders.read"],
"created_at": "2026-07-03T14:00:00Z",
"updated_at": "2026-07-03T14:00:00Z"
}
],
"created_at": "2026-07-03T14:00:00Z",
"updated_at": "2026-07-03T14:00:00Z"
}
}
}
Your app's own lifecycle events, partner_app_install.* and environment_grant.*, come from the partner_app source and carry top-level "event_source": "partner_app". Events about the app itself, partner_app.*, go instead to the owning merchant's own endpoints with "event_source": "merchant". Initial authorization and adding a mode send no event: the code exchange creates the install and grant, sending partner_app_install.created and environment_grant.created (a second mode's exchange sends partner_app_install.updated with its environment_grant.created). environment_grant.updated reports changes to a grant's permissions, approved platform fee cap, or split approval, with data.previous_attributes for changed fields. Re-authorizing a pending grant sends it when the requested permissions or cap change. Lowering or removing a cap also reports changes to revoked grants. Revoking an install before its exchange sends none; revoking a pending grant on an active install sends no grant event, and the install sends partner_app_install.updated.
Resource events from merchants that installed your app come from the installed_merchants source. They carry top-level "event_source": "installed_merchants", with source.mode and source.environment_grant_id identifying the environment and grant that authorize the delivery, and source.sandbox_id in test mode. Flint forwards an event only while the install's grant for that mode is active and holds the event's read scope, such as commerce.orders.read for order, fulfillment, shipment, and package events. merchant.readiness_updated and merchant.updated require merchants.profile.read. Dispute events require payments.disputes.read, payout events money_movement.payouts.read, payout destination and payout settings events money_movement.payout_settings.read, balance.updated money_movement.balances.read, and balance transaction events money_movement.balance_transactions.read. Flint forwards an event type only when a route that reads the event's resource accepts the partner app token with the event's scope, and data.object is what that route returns to the install.
Some families go only to the merchant's own endpoints: merchant billing balances and invoices, reports, customer deletion requests, custom domains, tax connection, tax calculation callbacks, test clocks, and partner apps. The catalog's event_sources says which types an installed-merchant endpoint can receive.
Receive webhooks covers creating partner endpoints, what each lifecycle event means, and the scope every installed-merchant event requires.
Common mistakes#
- Fulfilling from the wrong event, or from two.
payment_intent.succeeded,order.paid, andcheckout_session.paidall fire for one hosted payment, but onlyorder.paidmeans the whole order is paid. The other two can fire for one installment of a larger balance. Fulfill fromorder.paid, checkdispute_statusfirst, and deduplicate onwebhook_event_id. - Assuming arrival order. Deliveries fan out and retry independently, so a later event can arrive first. Handle each event on its own.
- Waiting for events that don't exist. There is no
payment_intent.captured: a capture arrives aspayment_intent.succeeded. There are noproduct.deleted,product_variant.deleted, option, component, or modifier events. An archived product's variants and an archived promotion's codes each send their ownarchivedevent. - Reading an outcome from
updated.refund.updatednever reports a refund's outcome; that isrefund.succeeded,refund.partially_succeeded, orrefund.failed. An expired hold ispayment_intent.expired, not a cancellation. - Treating the payload as current state.
data.objectis a snapshot from when the event was prepared, and a retry can deliver it days later. Fetch the resource before acting on fields that may have moved. - Rejecting unknown event types. Flint adds event types over time, and endpoints subscribed with
["*"]receive them right away. Return a2xxfor types you don't handle; an error response uses up retries on events you never wanted.
Next steps#
WebhooksEvent catalogTestingStatuses and supported actionsPlatform fee payouts#
Payout events go to the partner app owner's merchant endpoints in the payout's mode. Their object matches GET /v1/platform-fee-payouts/{platform_fee_payout_id}. Linking the observed merchant credit changes no payout version and sends no payout event.