Webhooks
Flint sends signed webhook events when payments, orders, subscriptions, refunds, and invoices change. New endpoints default to signing_methods: ["jwt"]: verify each delivery's JWT with Flint's public JWKS and your endpoint ID as the audience, with no shared secret to store.
The Webhooks API registers the URLs Flint delivers to and keeps a record of every event and delivery attempt. Use it to send test events, find and redeliver what your server missed, and stream events to a process that has no public URL. To build a receiver, start with the Webhooks guide. Webhook delivery is the contract for each request Flint sends, and the event catalog lists every event type and its payload.
How the objects fit together#
| Object | ID | What it records |
|---|---|---|
| Endpoint | whep_... | A URL, the event types it receives, how its deliveries are signed, and the API version its payloads use. A merchant endpoint belongs to the creating key's environment; a partner-source endpoint is global app configuration. |
| Event | whev_... | One thing that happened, recorded once with the affected resource in data.object. Its ID is the webhook-id header and your deduplication key. |
| Delivery | wdel_... | One event on its way to one endpoint, with its status and retry state. An event has at most one delivery per endpoint. |
| Attempt | watt_... | One request Flint sent for a delivery: what your server answered, how long it took, and why it failed. |
| Event type | order.paid | A catalog entry: the resource it's about, whether it's a snapshot or a notification, and which endpoints can receive it. |
Reads need the webhooks.read scope, and everything that changes an endpoint or sends a request to it needs webhooks.write. An event's data and an attempt's response details also require read access to the resource the event is about. Flint keeps event payloads and attempt response details for 14 days, and the records themselves for 90 days; Retention lists what each record keeps after that.
Webhook endpoints#
Create an endpoint with an HTTPS url and enabled_events. Sandbox endpoints may point at a host that isn't live yet; live endpoints must resolve to public addresses when you register or change them. HTTPS, localhost, and private IP checks still apply in sandboxes. Flint checks DNS and rejects private addresses before every delivery attempt.
enabled_eventsneeds at least one current event type name.["*"]subscribes to every type the endpoint's sources deliver, including types added later;*must be the only entry. APATCHreplaces the whole list, so send the merged list, guarded byexpected_version. When an event type is renamed, stored subscriptions follow the new name; see Previous names.api_versionisdefault, which follows the merchant's default version at each attempt, or a dated version that pins the endpoint. Omission on create pins the version the request is served at:Flint-Version, or the merchant default when the header is absent. Send"default"explicitly to follow later default changes. A delivery never uses a newer version than the one its event was recorded at. Upgrade with two endpoints moves a handler to a new version with a rollback path.statusstarts asactiveunless you create the endpointinactive.partner_app_install_idoptionally links a merchant endpoint to a connected app's install at creation. The field is immutable. Every endpoint resource includes it, withnullfor an unlinked endpoint. Omit it on create to leave the endpoint unlinked; sendingnullreturns400 INVALID_REQUESTwith detailINVALID_VALUE.
status on webhook endpointactiveEvery new event the endpoint subscribes to gets a delivery.inactiveNothing is delivered. Setting it suppresses the endpoint's pending deliveries in the same update, withsuppression_reasonendpoint_inactive, and events that happen meanwhile create no deliveries. Settingactiveagain resumes with new events only; recover the rest.deletedFinalReturned only in theDELETEresponse. Pending deliveries are suppressed withendpoint_deleted, the endpoint can't be read afterward, and its past deliveries keep itswebhook_endpoint_id.
Link an endpoint to a connected app#
Set partner_app_install_id on POST /v1/webhook-endpoints with a live credential or a Dashboard session. The install must belong to your merchant, be active, and have an active grant for the endpoint's environment: live, or the same sandbox as its test grant. Test credentials can't explicitly set the field and get 403 FORBIDDEN with reason live_mode_required. An endpoint created by a linked key inherits the key's install when you omit the field. A linked live key may repeat its own install ID, but can't name another install; a linked test key must omit it.
Only merchant event endpoints can be linked. Combining the field with partner_app_id, or with event_sources containing partner_app or installed_merchants, returns 400 INVALID_REQUEST with detail NOT_ALLOWED.
An install can have up to 25 linked endpoints per environment, separately from its API key limit. Another endpoint returns 409 LIMIT_REACHED with reason partner_app_install_links and limit 25. Delete an unused endpoint before creating another. The link errors for API keys also apply to an endpoint's install reference and grant.
Filter GET /v1/webhook-endpoints with a single partner_app_install_id for an exact match, within the caller's environment. A malformed ID returns 400 INVALID_REQUEST; a well-formed unknown ID returns an empty list. Combining it with a partner event source also returns an empty list. Keep the filter unchanged when following next_page_token.
Revoking the install deletes its linked endpoints in every environment; revoking one grant deletes only that environment's linked endpoints. Sandbox endpoints stop receiving events immediately and are normally deleted within seconds. Before deletion, a stopped delivery records suppression_reason partner_app_install_revoked; after deletion it records endpoint_deleted. An attempt already in flight may still arrive. Moving the test grant to another sandbox during code exchange or archiving the sandbox also ends the old sandbox's links. Resetting the sandbox keeps links, and reinstalling the app doesn't restore deleted endpoints.
Updating an endpoint or rotating its signing secret keeps the link. PATCH doesn't accept partner_app_install_id and returns 400 INVALID_REQUEST with detail UNKNOWN_FIELD if you send it. Unlinked endpoints keep working until separately deleted. What revoking an install ends describes the revoke result and platform cleanup.
Event sources#
event_sources decides whose events an endpoint receives. Merchant endpoints use the default; partner apps add partner_app_id and choose their sources:
event_sources | Receives |
|---|---|
merchant (default) | The events of the merchant and environment the API key belongs to |
partner_app | Your partner app's lifecycle events, such as partner_app_install.created |
installed_merchants | Events from merchants that installed your app, in the modes you list in installed_merchant_modes, which this source requires. ["*"] isn't available with it. |
Endpoints with either partner source are global configuration for the named app. They don't belong to a sandbox, even when installed_merchant_modes is only ["test"]. The modes select which installed-merchant events the endpoint receives; they don't grant configuration access.
Partner-source authorization#
Use the app owner's live-mode credential with webhooks.write, or an authorized Dashboard session, to create, update, or delete a partner-source endpoint, rotate its secret, or send a test event. The same authority is required to resend one of its deliveries or create a delivery from a partner-source event. Partner app tokens can't perform these mutations. Authorization is checked on idempotent replays too.
Sandbox endpoint, event, and delivery lists omit all partner-source records. A filter selecting only partner sources returns an empty collection. A direct read of a partner-source endpoint, event, delivery, or its attempts returns 404 RESOURCE_NOT_FOUND, as does a list filter naming one of these records by ID. Use live context for these reads, with the required read scopes. Merchant sandbox webhooks remain scoped to their own sandbox.
- StatusHTTP 403CodeFORBIDDENWhat to doReason
live_mode_required: a test-mode credential tried to mutate partner-source configuration, events, or deliveries. Use a live-mode credential from the app owner's account or an authorized Dashboard session, even for a test event or an endpoint subscribed only to test-mode events - StatusHTTP 404What to doThe referenced endpoint, event, or delivery isn't visible in the caller's context. Sandbox reads can't access partner-source records
Each entry in GET /v1/webhook-event-types lists the event_sources that can receive it. Partner app events covers the partner envelope and install permissions.
Signing methods#
signing_methods is always present on an endpoint and holds jwt, hmac, or both:
signing_methods | Each delivery carries | You keep |
|---|---|---|
["jwt"] (default) | Authorization: Bearer <JWT>, signed with Flint's private key | Your endpoint IDs. No secret exists. |
["hmac"] | A Standard Webhooks webhook-signature header | The endpoint's whsec_... secret |
["jwt", "hmac"] | Both headers | Both, while you migrate a receiver |
Rules that span create, update, and rotation:
- A secret is returned once. The create response includes
secretonly when the request includeshmac, androtate-secretreturns the new one. APATCHthat first enableshmacalso returns the first secret once. Later updates, reads, and lists omit it. PATCHreplaces the set, and needsexpected_version. Addinghmacwhen no secret exists issues the first secret and returns it once indata.secret.POST /v1/webhook-endpoints/{webhook_endpoint_id}/rotate-secretonly rotates an existing secret.- Removing
hmacdeletes the current and previous secrets. To move an HMAC endpoint to JWT, enable both, deploy JWT verification, then removehmac, as Change signing methods shows. - Rotation overlaps. The replaced secret keeps signing alongside the new one until
previous_secret_expires_at: 24 hours by default, or theexpire_previous_secret_atyou send, up to 7 days ahead. A time at or before now ends it immediately. Rotating again during an overlap ends the older secret at once. See Rotate your signing secret. - The URL can't contain a username or password while
jwtis enabled. - Changes apply to the next attempt, including retries already scheduled. An attempt Flint had already started signing can still carry the earlier signatures.
The JWT claims and verification steps are in JWT signing.
Change an endpoint safely#
Every endpoint has a version that increases with each change to its configuration: an update, a secret rotation, or a status change. Deliveries, attempts, test events, and resends leave it unchanged, so a busy endpoint doesn't conflict with your edits. Send the version you read as expected_version, and Flint refuses the write if someone changed the endpoint since:
| Request | expected_version |
|---|---|
PATCH that sends enabled_events, event_sources, installed_merchant_modes, or signing_methods, even as an empty array | Required |
PATCH that changes only url, description, status, or api_version | Optional |
POST .../rotate-secret | Optional, in the body |
DELETE | Optional, as a query parameter |
expected_api_version is a separate guard on api_version for a PATCH that also sends api_version. When you send both guards, both must match.
To add refund.failed to an endpoint at version 3, send the full list:
curl -X PATCH https://api.withflintpay.com/v1/webhook-endpoints/whep_1kmn0aExample \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: webhook-add-refund-failed-v3" \
-d '{
"expected_version": 3,
"enabled_events": ["order.paid", "refund.succeeded", "refund.failed"]
}'
{
"data": {
"webhook_endpoint_id": "whep_1kmn0aExample",
"url": "https://example.com/webhooks/flint",
"description": "Fulfillment and refund sync",
"enabled_events": ["order.paid", "refund.succeeded", "refund.failed"],
"event_sources": ["merchant"],
"partner_app_install_id": null,
"signing_methods": ["jwt"],
"api_version": "2026-09-07",
"status": "active",
"version": 4,
"created_at": "2026-10-01T14:53:12Z",
"updated_at": "2026-10-28T17:02:40Z"
},
"request_id": "req_01KWM6WAHG3N9Q8T2V5XRZ7C4D"
}
- StatusHTTP 409What to doThe endpoint changed after you read it, and nothing was updated.
paramisexpected_versionanddetails[0].current_versionis the current version, orparamisexpected_api_versionwhenapi_versionchanged. Read the endpoint again, rebuild the change from its current state, and send it with a newIdempotency-Key - StatusHTTP 400CodeINVALID_
REQUEST What to doDetailREQUIREDwithparam: "expected_version": a list field was sent without it. DetailREQUIREDwithparam: "body": the body has onlyexpected_versionorexpected_api_version, and nothing to change. DetailINVALID_VALUE:signing_methodsis empty or has an unknown or repeated value - StatusHTTP 409What to doReason
secret_not_issued:rotate-secretwas called on an endpoint withouthmac. PATCHsigning_methodsto includehmac; the response returns the first secret
Events and event types#
GET /v1/webhook-events and GET /v1/webhook-events/{webhook_event_id} return the events Flint recorded, with the same field names as the delivery envelope, plus event_source, resource_type, resource_id, and api_request_log_id. Merchant events have mode, merchant_id, and request; partner app events have partner_app_id and source instead.
created_atis when Flint first recorded the event, which can be later than the resource change. Retries and resends keep it. The resource's own timestamps describe its business times. Older events may carry the resource change or observation time.datacomes only from the detail read, while the payload is retained and when your key can read the event's resource. List items never include it. The detail read also adds the originating request'sidempotency_keyunder the same conditions.- After 14 days an event keeps its metadata and drops
data,payload_version,source, andrequest.idempotency_key. An event withoutpayload_versioncan no longer be delivered. - Synthetic test events are included by default. Use
test=falseto exclude them ortest=trueto return only synthetic events, on both the event list and stream. The delivery list includes their deliveries. - Filters answer common questions.
delivery_status=failedfinds events that exhausted their retries, which is worth an alert.resource_idshows everything that happened to one resource, andrequest_idthe events one API request caused.
GET /v1/webhook-event-types is the catalog of every event type, ordered by event_type. Its page_size defaults to 100, which is also the maximum, and the catalog has more than 100 types, so follow next_page_token until a page arrives without one. Each entry has event_type, description, and event_sources, plus:
| Field | Meaning |
|---|---|
resource_type | The public type of the event's data.object: the part of event_type before the dot. |
kind | snapshot: data.object is the resource as recorded for the event, the same recorded snapshot on every retry and resend, rendered at each attempt's API version. notification: the event reports a condition, such as a due date arriving, and you fetch the resource for its current state. The OpenAPI webhooks entries publish the same value as x-flint-event-kind. |
previous_names | Names the type had before a rename, kept permanently so stored events and subscriptions read back with the current name. Always an array, empty for a type that was never renamed. enabled_events, test events, and event filters accept only the current event_type. |
Snapshot and notification events explains how to handle each kind.
Deliveries, resends, and test events#
Each event gets one delivery for each active endpoint subscribed to its type, and the delivery moves through pending, delivered, failed, or suppressed as described in Delivery status. GET /v1/webhook-deliveries/{webhook_delivery_id}/attempts lists every request Flint made for it, oldest first, with your server's response and a recommended_action when one failed.
Attempts use pending (scheduled or in flight), delivered (the endpoint answered 2xx), or failed (a non-2xx response, timeout, or connection failure). These values belong to the extensible message_attempt_status vocabulary; handle unknown values. The same vocabulary applies to attempt_status in action responses and status in webhook attempt timeline entries. WebhookDelivery.status uses the closed message_status vocabulary. The delivery_status in action responses uses the same closed message_status vocabulary and the same values.
Three calls send a request to your endpoint on demand. Each runs the attempt before it responds and requires the endpoint to be active:
| To | Call | Also requires |
|---|---|---|
| Send an existing delivery again | POST /v1/webhook-deliveries/{webhook_delivery_id}/resend | The event's payload is retained. Any delivery status works, including pending. |
| Deliver an event to an endpoint that has no delivery for it, such as one published while the endpoint was inactive | POST /v1/webhook-deliveries | The payload is retained, and the endpoint subscribes to the event's type now |
| Check your receiver end to end | POST /v1/webhook-endpoints/{webhook_endpoint_id}/test-events | A type the endpoint's sources can receive. The event is synthetic, with "test": true, and gets one attempt with no retries. |
Manual attempts don't use up the automatic schedule. A resend of a pending delivery leaves next_retry_at as it was, and a created delivery whose first attempt fails starts the schedule; Retry schedule has the details. Resend and create accept an optional reason_message to record why you sent it: the resend response and its attempt echo it, and a created delivery records it on its first attempt. Monitor, debug, and resend walks through a recovery with each call's errors.
Stream events without an endpoint#
GET /v1/webhook-events/stream sends a merchant's events as server-sent events over one long-lived connection, so a process with no public URL can follow them. The Flint CLI's flint listen uses it to forward events to localhost. Without a cursor, the stream starts after the newest event at the moment you connect. To resume, send the last frame id you received as the Last-Event-ID header, or as after_event_id; when you send both, they must match. Filter with event_type.
event: ready
data: {"cursor":"whev_1kmn0aExample"}
id: whev_1kmn0bExample
event: webhook.event
data: {"webhook_event_id":"whev_1kmn0bExample","event_type":"order.paid","api_version":"2026-09-07","test":false,"created_at":"2026-10-28T17:05:11Z","data":{"object":{"order_id":"ord_1kmn0aExample"}}}
: heartbeat 1793207126
| Frame | Sent when |
|---|---|
ready | The stream connects. cursor is the position it starts from. |
webhook.event | An event, in the same shape as GET /v1/webhook-events/{webhook_event_id}. |
withheld | An event whose payload your key can't read. The frame names the event, and reason and required_scopes say why. |
gap | Events can't be replayed. cursor_unavailable: the cursor you sent isn't available, because it's older than 90 days or belongs to another environment. The stream restarts from resume_cursor, the newest event, so every event between your cursor and that one is skipped; read current state to fill the gap. payload_expired: this event's payload is past the 14-day retention, and the stream moves on to the next event. |
disconnect | Flint is closing the stream, for reason ttl after 30 minutes, authorization_changed, server_error, backpressure, or sandbox_reset when the sandbox is reset. After backpressure, resume from resume_cursor; after sandbox_reset, reconnect without a cursor; otherwise, resume from the last id you received. |
A partner app token streams the events of the merchant named in Flint-Merchant-Id, in the environment its grant for the token's mode covers, with payloads only for events Flint forwards to installed-merchant endpoints; see Catch up on missed installed-merchant events.
Flint sends a heartbeat comment every 15 seconds. An environment can have up to five streams open at once, and each partner app install up to five more of its own. A sixth connection returns 409 LIMIT_REACHED with reason webhook_event_streams and limit 5, and no resets_at, because a stream ending frees the slot, not the clock. Close another stream, or wait for one to end, then connect again as a new request. If a Flint server is at its own connection capacity, the connection returns 503 SERVICE_UNAVAILABLE with a short Retry-After; send the same request again after it. The stream doesn't create deliveries or retry, so production processing belongs on an endpoint.
Related#
Webhooks guideRegister an endpoint, verify deliveries, send a test event, and recover missed events.Webhook deliveryHeaders, JWT and HMAC signing, the envelope, retries, diagnostics, and retention.Event catalogEvery event type Flint sends, with its payload.Monitor API keys#
Subscribe to api_key.created, api_key.updated, and api_key.revoked to monitor credential changes. The payload is the API key's GET representation and never includes its secret. Test-key events go to that sandbox's endpoints, and live-key events go to live endpoints. Passing expires_at and updates to last_used_at send no event. This family is unavailable to partner apps. See API key events.
The Webhook endpoint object#
A merchant webhook endpoint belongs to the live mode or sandbox of the credential that created it and receives only that environment's events. Partner endpoints select sources with event_sources and installed_merchant_modes.
Returned by GET /v1/webhook-endpoints/{webhook_endpoint_id} and carried by the endpoints below.
Attributes
api_versionstringRequiredA dated API version pins this endpoint. The value default follows the endpoint owner's merchant default at delivery time, including retries. Deliveries never use a newer version than the event's recorded version.
api_version_changed_atstringWhen api_version last changed.
api_version_previousstringVersion this endpoint used before its last upgrade. Present while a rollback is available. To roll back, send it as api_version.
api_version_rollback_expires_atstringWhen the rollback offer for api_version_previous ends. You can still set any supported version afterward.
created_atstringRequiredRFC3339 timestamp.
created_byobjectThe API key, user, partner app, or workload identity that created this endpoint. An API key creator can belong to another mode, such as a live key that creates a sandbox endpoint. Absent when the creator is unavailable, including endpoints created before attribution was recorded.
descriptionstringYour description of this endpoint. Omitted when none is set.
enabled_eventsarray of stringRequiredSubscribed event types. ["*"] includes every type the endpoint's event_sources deliver, including types added later; * is not available with installed_merchants. Stored subscriptions map previous names permanently and drop removed names on read. Empty when no current subscriptions remain. See the [changelog](/changelog).
event_sourcesarray of enumEvent sources this endpoint receives. Defaults to merchant. Use partner_app for app lifecycle events and installed_merchants for events from merchants that installed the partner app.
merchantpartner_appinstalled_merchants
installed_merchant_modesarray of enumModes of installed-merchant events this endpoint receives. Required when event_sources includes installed_merchants and omitted otherwise. Partner app lifecycle events are delivered regardless of these modes.
testlive
partner_app_idstringPartner app that owns partner_app or installed_merchants event sources.
partner_app_install_idstring or nullRequiredThe connected app install this endpoint is linked to. The endpoint is deleted when that install is revoked or loses its grant for this endpoint's environment. Null when the endpoint is not linked to a connected app. Never changes.
previous_secret_expires_atstringWhen the replaced signing secret stops signing deliveries. Present only during a rotation overlap. Until then each delivery carries a signature from both secrets.
signing_methodsarray of enumRequiredMethods Flint uses to sign deliveries to this endpoint.
jwthmac
statusenumRequiredAvailability of this endpoint. Deleted is returned only by DELETE.
activeinactivedeleted
updated_atstringRequiredRFC3339 timestamp.
urlstringRequiredPublic HTTPS URL that receives webhook deliveries.
versionintegerRequiredCurrent version of this resource's owned state. Send it as `expected_version` when changing the resource to reject a stale write.
webhook_endpoint_idstringRequiredUnique identifier for this webhook endpoint, prefixed `whep_`.
{
"api_version": "2026-09-07",
"created_at": "2026-03-17T14:30:00Z",
"description": "Primary production endpoint",
"enabled_events": [
"order.paid",
"payment_intent.succeeded"
],
"event_sources": [
"merchant"
],
"partner_app_install_id": null,
"signing_methods": [
"jwt"
],
"status": "active",
"updated_at": "2026-03-17T14:30:00Z",
"url": "https://example.com/webhooks/flint",
"version": 1,
"webhook_endpoint_id": "whep_01KEZF7C00940MBDY86SCZ1NW9"
}The Webhook delivery object#
An attempt to deliver an event to a webhook endpoint.
Returned by GET /v1/webhook-deliveries/{webhook_delivery_id} and carried by the endpoints below.
Attributes
automatic_attempt_countintegerRequiredAttempts made by Flint's automatic schedule. Manual resends and the first attempt of a delivery you create don't count.
created_atstringRequiredWhen the delivery was created: when Flint prepared the event, or when you created it.
delivered_atstringRFC3339 timestamp.
error_categoryenumThe kind of failure on the most recent failed attempt. Absent before any attempt, and when delivered or suppressed.
webhook_timeoutwebhook_dnswebhook_tlswebhook_connectionwebhook_blocked_targetwebhook_requestwebhook_redirectwebhook_http_4xxwebhook_http_5xxwebhook_payload_renderwebhook_delivery
error_summarystringA concise explanation of the failed attempt. Absent before any attempt, and when delivered or suppressed.
last_response_codeintegerHTTP status returned by the receiver on the latest recorded attempt. Omitted when no HTTP response was received.
max_attemptsintegerRequiredMaximum automatic attempts.
next_retry_atstringRFC3339 timestamp.
recommended_actionstringThe next step to resolve the failed delivery attempt.
retryablebooleanWhether sending this delivery again without changing your endpoint is likely to succeed. While the delivery is pending, Flint retries automatically either way.
statusenumRequiredCurrent state of this endpoint delivery and its automatic retry schedule.
pendingdeliveredfailedsuppressed
suppression_reasonenumWhy this delivery was suppressed. Present exactly when status is suppressed. Suppressed deliveries have no failure explanation.
endpoint_inactiveendpoint_deletedauthorization_revokedscope_missingevent_not_allowedpartner_app_install_revokedsandbox_reset
updated_atstringRequiredRFC3339 timestamp.
webhook_delivery_idstringRequiredUnique identifier for this webhook delivery, prefixed `wdel_`.
webhook_endpoint_idstringRequiredID of the receiving endpoint, retained even after the endpoint is deleted.
webhook_event_idstringRequiredID of the event this delivery sends.
{
"automatic_attempt_count": 1,
"created_at": "2026-03-17T14:30:00Z",
"delivered_at": "2026-03-17T14:30:02Z",
"last_response_code": 200,
"max_attempts": 9,
"status": "delivered",
"updated_at": "2026-03-17T14:30:02Z",
"webhook_delivery_id": "wdel_01KEZF7C009Q5YXV9EMB35BQ13",
"webhook_endpoint_id": "whep_01KEZF7C00940MBDY86SCZ1NW9",
"webhook_event_id": "whev_01KEZF7C00BW7XQJ98PQ8EHA81"
}The Webhook event object#
An event prepared for delivery to webhook endpoints.
Returned by GET /v1/webhook-events/{webhook_event_id} and carried by the endpoints below.
Attributes
api_request_log_idstringID of the API request log associated with the event. Omitted when none is associated.
api_versionstringRequiredAPI version of the event data. Stored data follows the same versioning rules as webhook deliveries.
created_atstringRequiredRFC3339 timestamp.
dataobjectThe delivered envelope's data, including its payload-version-specific shape. Omitted from list responses and from detail responses when the caller lacks read access to the attributed resource or the payload has expired after 14 days.
event_sourceenumEnvelope discriminator identifying merchant events, partner app lifecycle events, or events forwarded from installed merchants.
merchantpartner_appinstalled_merchants
event_typeenumRequiredType of event Flint recorded, using the current event type name.
api_key.createdapi_key.revokedapi_key.updatedbalance.updatedbalance_transaction.createdbalance_transaction.updatedbundle.archivedbundle.createdbundle.updatedcategory.createdcategory.deletedcategory.updatedcheckout_session.closedcheckout_session.createdcheckout_session.expiredcheckout_session.invalidatedcheckout_session.paidcheckout_session.partially_paidcheckout_session.updatedcredit_note.createdcredit_note.issuedcredit_note.updatedcredit_note.voidedcredit_note_allocation.createdcredit_note_allocation.reversedcustom_domain.archivedcustom_domain.updatedcustomer.createdcustomer.deletedcustomer.updatedcustomer_deletion_request.completedcustomer_deletion_request.createdcustomer_deletion_request.failedcustomer_deletion_request.processingcustomer_deletion_request.rejectedcustomer_email_preferences.updateddelivery_location_set.archiveddelivery_location_set.createddelivery_location_set.updateddelivery_method.activateddelivery_method.archiveddelivery_method.createddelivery_method.deactivateddelivery_method.updateddelivery_profile.archiveddelivery_profile.createddelivery_profile.updateddelivery_rate_callback.activateddelivery_rate_callback.archiveddelivery_rate_callback.createddelivery_rate_callback.deactivateddelivery_rate_callback.updateddelivery_revocation.createddelivery_selection.committeddelivery_zone.archiveddelivery_zone.createddelivery_zone.updateddispute.createddispute.inquiry_closeddispute.lostdispute.needs_responsedispute.preventeddispute.updateddispute.wonenvironment_grant.createdenvironment_grant.revokedenvironment_grant.updatedfraud_warning.createdfraud_warning.updatedfulfillment.canceledfulfillment.completedfulfillment.createdfulfillment.failedfulfillment.updatedfulfillment_event.createdgift_card.createdgift_card.updatedgift_card_load.createdgift_card_load.updatedgift_card_notification.createdgift_card_notification.updatedgift_card_redemption.createdgift_card_redemption.updatedgift_card_transaction.createdinventory_count.appliedinventory_count.updatedinventory_level.shortage_detectedinventory_level.updatedinventory_receipt.createdinventory_reservation.action_requiredinventory_reservation.at_riskinventory_reservation.closedinventory_reservation.committedinventory_reservation.consumedinventory_reservation.createdinventory_reservation.hold_expiredinventory_reservation.releasedinventory_reservation.updatedinventory_transfer.closedinventory_transfer.departedinventory_transfer.lostinventory_transfer.receivedinventory_transfer.returnedinventory_transfer.updatedinvoice.collection_block_resolvedinvoice.collection_blockedinvoice.createdinvoice.creditedinvoice.issue_failedinvoice.issuedinvoice.late_fee_assessedinvoice.late_fee_dueinvoice.late_fee_waivedinvoice.marked_uncollectibleinvoice.overdueinvoice.paidinvoice.partially_paidinvoice.partially_refundedinvoice.refundedinvoice.reminder_dueinvoice.reopenedinvoice.sentinvoice.updatedinvoice.voidedinvoice_delivery_attempt.failedinvoice_delivery_attempt.sentinvoice_delivery_attempt.suppressedinvoice_manual_payment.createdinvoice_manual_payment.reversedinvoice_payment_attempt.canceledinvoice_payment_attempt.expiredinvoice_payment_attempt.failedinvoice_payment_attempt.processinginvoice_payment_attempt.succeededlicense_key.createdlicense_key.disabledlicense_key.expiredlicense_key.updatedlicense_key_activation.createdlicense_key_activation.releasedlicense_key_pool.archivedlicense_key_pool.createdlicense_key_pool.low_stocklicense_key_pool.out_of_stocklicense_key_pool.updatedmerchant.readiness_updatedmerchant.updatedmerchant_billing_balance.updatedmerchant_billing_invoice.issuedmerchant_billing_invoice.updatedmodifier_group.archivedmodifier_group.createdmodifier_group.updatedmodifier_set.archivedmodifier_set.createdmodifier_set.updatedorder.closedorder.createdorder.inventory_exception_createdorder.inventory_exception_resolvedorder.paidorder.partially_paidorder.partially_refundedorder.refundedorder.updatedorder_edit.canceledorder_edit.completedorder_edit.createdorder_edit.updatedpackage.createdpackage.updatedpartner_app.platform_approvedpartner_app.platform_limitedpartner_app.platform_rejectedpartner_app.updatedpartner_app_install.createdpartner_app_install.permissions_updatedpartner_app_install.revokedpartner_app_install.updatedpayment_intent.authorization_expiringpayment_intent.canceledpayment_intent.createdpayment_intent.expiredpayment_intent.fulfillment_hold_updatedpayment_intent.payment_failedpayment_intent.processingpayment_intent.requires_actionpayment_intent.requires_capturepayment_intent.succeededpayment_intent.updatedpayment_link.createdpayment_link.updatedpayment_method.activatedpayment_method.archivedpayment_method.failedpayment_method.updatedpayment_review.closedpayment_review.openedpayment_review.reopenedpayment_split.canceledpayment_split.createdpayment_split.failedpayment_split.succeededpayment_split.updatedpayout.canceledpayout.createdpayout.failedpayout.reversedpayout.succeededpayout.updatedpayout_destination.archivedpayout_destination.createdpayout_destination.disabledpayout_destination.updatedpayout_settings.updatedplatform_fee.canceledplatform_fee.createdplatform_fee.succeededplatform_fee.updatedplatform_fee_payout.createdplatform_fee_payout.failedplatform_fee_payout.succeededprice_list.archivedprice_list.createdprice_list.updatedproduct.archivedproduct.createdproduct.updatedproduct_variant.archivedproduct_variant.createdproduct_variant.updatedpromotion.archivedpromotion.createdpromotion.updatedpromotion_code.archivedpromotion_code.createdpromotion_code.updatedreader.archivedreader.createdreader.updatedrefund.createdrefund.failedrefund.partially_succeededrefund.succeededrefund.updatedreport.failedreport.succeededreturn.canceledreturn.completedreturn.createdreturn.decision_recordedreturn.reopenedreturn.updatedreturn_disposition.createdreturn_disposition.updatedreturn_inspection.acceptance_decidedreturn_inspection.createdreturn_inspection.supersededreturn_receipt.createdreturn_receipt.supersededreturn_receipt.verifiedreturn_resolution.createdreturn_resolution.updatedshipment.createdshipment.updatedshop.archivedshop.createdshop.updatedsubscription.activatedsubscription.canceledsubscription.cancellation_scheduledsubscription.createdsubscription.cycle_skippedsubscription.delivery_action_requiredsubscription.delivery_pause_upcomingsubscription.delivery_updatedsubscription.dunning_exhaustedsubscription.end_upcomingsubscription.past_duesubscription.pausedsubscription.payment_succeededsubscription.plan_change_canceledsubscription.plan_change_scheduledsubscription.plan_changedsubscription.reactivatedsubscription.renewal_upcomingsubscription.resumedsubscription.trial_endingsubscription.updatedsubscription_delivery_migration.completedsubscription_payment_retry.createdsubscription_payment_retry.failedsubscription_payment_retry.succeededtax_calculation_callback.activatedtax_calculation_callback.archivedtax_calculation_callback.createdtax_calculation_callback.deactivatedtax_calculation_callback.updatedtax_connection.updatedtest_clock.advancingtest_clock.archivedtest_clock.createdtest_clock.failedtest_clock.readyticket.checked_inticket.createdticket.updatedticket.voided
merchant_idstringID of the merchant this resource belongs to.
modeenumEnvironment used for this resource or request.
testlive
partner_app_idstringID of the partner app that owns this partner event. Omitted for merchant events.
payload_versionenumEnvelope payload version. Present only while the stored payload is retained.
12
requestobject or nullOriginating request. `null` when the event is synthetic or no originating request ID is recorded. The idempotency key is included only on an authorized detail read while the payload is retained. Omitted for partner events.
resource_idstringID of the resource affected by the event. Omitted when no resource ID is attributed.
resource_typeenumPublic resource type affected by the event. Omitted when no public resource type is attributed.
api_keyapi_request_logbalancebalance_transactionbundlebundle_componentcategorycheckout_sessioncheckout_session_customer_verificationcredit_notecredit_note_allocationcustom_domaincustomercustomer_addresscustomer_deletion_requestcustomer_email_preferencescustomer_sessioncustomer_tax_exemptioncustomer_verificationdelivery_choice_groupdelivery_location_setdelivery_methoddelivery_profiledelivery_quotedelivery_ratedelivery_rate_callbackdelivery_revocationdelivery_selectiondelivery_zonedemo_sessiondevicediscountdisputeemail_change_requestenvironment_grantfileflint_walletflint_wallet_cardfraud_warningfulfillmentfulfillment_eventfulfillment_notificationgift_cardgift_card_funding_dispositiongift_card_loadgift_card_notificationgift_card_redemptiongift_card_transactionimageinventory_adjustmentinventory_allocation_policyinventory_allocation_policy_revisioninventory_countinventory_iteminventory_levelinventory_movementinventory_receiptinventory_reservationinventory_reservation_lineinventory_transferinventory_transfer_lineinvoiceinvoice_delivery_attemptinvoice_late_feeinvoice_line_iteminvoice_manual_paymentinvoice_payment_attemptinvoice_payment_termlicense_keylicense_key_activationlicense_key_poollicense_key_pool_keylocationmerchantmerchant_billing_balancemerchant_billing_entrymerchant_billing_invoicemerchant_signupmodifiermodifier_groupmodifier_setorderorder_chargeorder_editorder_line_itemorder_line_item_modifierorder_payment_attemptpackagepackage_itempartner_apppartner_app_credentialpartner_app_installpayment_attemptpayment_intentpayment_linkpayment_link_custom_fieldpayment_link_line_itempayment_methodpayment_method_domainpayment_reviewpayment_splitpayoutpayout_destinationpayout_settingsplatform_feeplatform_fee_balance_transactionplatform_fee_payoutprice_listprice_list_priceproductproduct_optionproduct_option_valueproduct_variantpromotionpromotion_codepurchase_refund_allocationreaderrefundrefund_allocationrefund_line_item_adjustmentremembered_buyerreportreport_downloadreturnreturn_activityreturn_dispositionreturn_inspectionreturn_inspection_line_itemreturn_line_itemreturn_policyreturn_policy_revisionreturn_reasonreturn_receiptreturn_receipt_line_itemreturn_resolutionrisk_listrisk_list_itemrisk_rulesandboxsettingsshipmentshopshop_listingsubscriptionsubscription_delivery_migrationsubscription_line_itemsubscription_offersubscription_payment_retrysubscription_plansubscription_plan_line_itemtax_calculation_callbacktax_connectiontax_registrationtest_clockticketuserwebhook_deliverywebhook_endpointwebhook_eventworkload_identity
sandbox_idstringPublic sandbox ID for this event. Present exactly when mode is test; omitted in live mode.
sourceobjectPartner envelope source. Present only for partner events while the stored payload is retained.
testbooleanRequiredWhether this is a synthetic event created to test an endpoint; independent of live or test mode.
webhook_event_idstringRequiredUnique identifier for this webhook event, prefixed `whev_`.
{
"api_request_log_id": "rlog_01KEZF7C00SMPBXVMJEG4SRRD2",
"api_version": "2026-09-07",
"created_at": "2026-03-17T14:30:00Z",
"data": {
"object": {
"order_id": "ord_01KEZF7C00JBKMARG3P06Z224B",
"payment_status": "paid",
"status": "closed"
}
},
"event_source": "merchant",
"event_type": "order.paid",
"merchant_id": "mer_01KEZF7C00MPP0T9S0KH5BB4CC",
"mode": "live",
"payload_version": 2,
"request": {
"id": "req_01KWM6ACYNETFVATDT9F46D2XA"
},
"resource_id": "ord_01KEZF7C00JBKMARG3P06Z224B",
"resource_type": "order",
"test": false,
"webhook_event_id": "whev_01KEZF7C00BW7XQJ98PQ8EHA81"
}List webhook deliveries#
/v1/webhook-deliveriesRequires scope webhooks.read or webhooks.write
Rate limit: read
Returns webhook deliveries, newest first (`created_at` descending, then `webhook_delivery_id`). Includes deliveries of synthetic test events. Sandbox reads omit global partner-source records. Default order: created_at descending, then webhook_delivery_id descending.
Query parameters
webhook_event_idstringFilter by an exact webhook event ID. Returns an empty page when no visible deliveries match.
webhook_endpoint_idstringFilter by an exact webhook endpoint ID, including deleted endpoints. Returns an empty page when no visible deliveries match.
statusarray of enumFilter by delivery status. Values are trimmed and deduplicated in first-seen order; empty or unknown entries are rejected. Values within this filter are ORed; separate filters are ANDed.
pendingdeliveredfailedsuppressed
created_afterstringInclusive lower bound on created_at.
created_beforestringExclusive upper bound on created_at.
page_sizeintegerMaximum number of results to return, from 1 to 100. Defaults to 20.
page_tokenstringOpaque, signed next_page_token from the previous response, bound to the list and caller. Omit on the first request. You may change `page_size` between pages. Reuse it with the same endpoint, filters, sort, and request context. Do not parse or construct tokens. An altered, invalid, expired, or mismatched token returns a validation error.
Response · 200
Webhook deliveries matching the filters.
dataarray of objectRequiredResource, collection, or operation result returned by this request.
metaobjectAdditional information about this response.
next_page_tokenstringOpaque token to send as `page_token` to retrieve the next page. Omitted when there is no next page.
request_idstringRequiredIdentifier of this API request, used to correlate logs and support requests.
curl https://api.withflintpay.com/v1/webhook-deliveries \
-H "Flint-Version: 2026-09-07" \
-H "Authorization: Bearer YOUR_API_KEY"Webhook deliveries matching the filters.
{
"data": [
{
"automatic_attempt_count": 1,
"created_at": "2026-03-17T14:30:00Z",
"delivered_at": "2026-03-17T14:30:02Z",
"last_response_code": 200,
"max_attempts": 9,
"status": "delivered",
"updated_at": "2026-03-17T14:30:02Z",
"webhook_delivery_id": "wdel_01KEZF7C009Q5YXV9EMB35BQ13",
"webhook_endpoint_id": "whep_01KEZF7C00940MBDY86SCZ1NW9",
"webhook_event_id": "whev_01KEZF7C00BW7XQJ98PQ8EHA81"
}
],
"meta": {
"api_version": "2026-09-07"
},
"next_page_token": "example",
"request_id": "req_01KWM6BG8ZT3QNJNJ304H55X4N"
}Create webhook delivery#
/v1/webhook-deliveriesIdempotentRequires scope webhooks.write
Rate limit: write
Creates a delivery for a retained event and an outbound endpoint that currently subscribes to it, then attempts delivery now. The CLI-managed sandbox listener endpoint receives events only through the stream. A failed attempt starts the automatic retry schedule. Each event and endpoint pair can have only one delivery. Partner-source endpoints are global configuration. Changes to them or their events and deliveries require a live-mode credential or a Dashboard session, including test events and endpoints subscribed only to test installed-merchant events. Test credentials fail with `FORBIDDEN` and reason `live_mode_required`, including on idempotent replay.
Request body
reason_messagestringYour note explaining this action.
webhook_endpoint_idstringRequiredActive endpoint that currently subscribes to the event.
webhook_event_idstringRequiredRetained webhook event to deliver.
Response · 201
The created webhook delivery.
dataobjectRequiredResource, collection, or operation result returned by this request.
metaobjectAdditional information about this response.
request_idstringRequiredIdentifier of this API request, used to correlate logs and support requests.
curl -X POST https://api.withflintpay.com/v1/webhook-deliveries \
-H "Flint-Version: 2026-09-07" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: a-unique-key" \
-d '{
"reason_message": "Recovering after an endpoint outage",
"webhook_endpoint_id": "whep_01KEZF7C00940MBDY86SCZ1NW9",
"webhook_event_id": "whev_01KEZF7C00BW7XQJ98PQ8EHA81"
}'Get webhook delivery#
/v1/webhook-deliveries/{webhook_delivery_id}Requires scope webhooks.read or webhooks.write
Rate limit: read
Returns one endpoint delivery and its current retry state. Global partner-source records are invisible in sandbox mode; a direct reference returns 404 RESOURCE_NOT_FOUND.
Path parameters
webhook_delivery_idstringRequiredFlint webhook delivery ID. Must be a valid ID with prefix wdel_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.
curl https://api.withflintpay.com/v1/webhook-deliveries/wdel_01KEZF7C001DWSNDCDZHCTBN0A \
-H "Flint-Version: 2026-09-07" \
-H "Authorization: Bearer YOUR_API_KEY"The selected webhook delivery.
{
"data": {
"automatic_attempt_count": 1,
"created_at": "2026-03-17T14:30:00Z",
"delivered_at": "2026-03-17T14:30:02Z",
"last_response_code": 200,
"max_attempts": 9,
"status": "delivered",
"updated_at": "2026-03-17T14:30:02Z",
"webhook_delivery_id": "wdel_01KEZF7C009Q5YXV9EMB35BQ13",
"webhook_endpoint_id": "whep_01KEZF7C00940MBDY86SCZ1NW9",
"webhook_event_id": "whev_01KEZF7C00BW7XQJ98PQ8EHA81"
},
"meta": {
"api_version": "2026-09-07"
},
"request_id": "req_01KWM62AH8KXGN79DHFGGVQKD2"
}List webhook delivery attempts#
/v1/webhook-deliveries/{webhook_delivery_id}/attemptsRequires scope webhooks.read or webhooks.write
Rate limit: read
Returns the attempts recorded for a specific webhook delivery. Global partner-source records are invisible in sandbox mode; a direct reference returns 404 RESOURCE_NOT_FOUND. Default order: attempt_number ascending; this key uniquely orders the results.
Path parameters
webhook_delivery_idstringRequiredFlint webhook delivery ID. Must be a valid ID with prefix wdel_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.
Query parameters
page_sizeintegerMaximum number of results to return, from 1 to 100. Defaults to 20.
page_tokenstringOpaque, signed next_page_token from the previous response, bound to the list and caller. Omit on the first request. You may change `page_size` between pages. Reuse it with the same endpoint, filters, sort, and request context. Do not parse or construct tokens. An altered, invalid, expired, or mismatched token returns a validation error.
Response · 200
Attempts for the selected delivery.
dataarray of objectRequiredResource, collection, or operation result returned by this request.
metaobjectAdditional information about this response.
next_page_tokenstringOpaque token to send as `page_token` to retrieve the next page. Omitted when there is no next page.
request_idstringRequiredIdentifier of this API request, used to correlate logs and support requests.
curl https://api.withflintpay.com/v1/webhook-deliveries/wdel_01KEZF7C001DWSNDCDZHCTBN0A/attempts \
-H "Flint-Version: 2026-09-07" \
-H "Authorization: Bearer YOUR_API_KEY"Attempts for the selected delivery.
{
"data": [
{
"api_version": "2026-09-07",
"attempt_number": 1,
"completed_at": "2026-03-17T14:30:02Z",
"delivery_trigger": "automatic_delivery",
"duration_milliseconds": 982,
"error_category": "webhook_http_5xx",
"error_summary": "The webhook endpoint returned a server error.",
"recommended_action": "Inspect the endpoint logs for this delivery, fix the handler, then resend the webhook event.",
"response_body_excerpt": "{\"error\":\"bad gateway\",\"api_token\":\"[REDACTED]\"}",
"response_content_type": "application/json",
"response_headers": {
"content-type": "application/json",
"x-api-token": "[REDACTED]"
},
"retryable": true,
"started_at": "2026-03-17T14:30:01Z",
"status": "failed",
"status_code": 502,
"webhook_delivery_attempt_id": "watt_01KEZF7C00DT9B86AS1BFP23QQ",
"webhook_delivery_id": "wdel_01KEZF7C009Q5YXV9EMB35BQ13",
"webhook_event_id": "whev_01KEZF7C00BW7XQJ98PQ8EHA81"
}
],
"meta": {
"api_version": "2026-09-07"
},
"next_page_token": "example",
"request_id": "req_01KWM62PDZ50FZJK9ZMA16BZBQ"
}Resend webhook delivery#
/v1/webhook-deliveries/{webhook_delivery_id}/resendIdempotentRequires scope webhooks.write
Rate limit: write
Sends the event to the delivery's endpoint now, including while automatic retries are pending. A failed resend doesn't change the automatic schedule. Partner-source endpoints are global configuration. Changes to them or their events and deliveries require a live-mode credential or a Dashboard session, including test events and endpoints subscribed only to test installed-merchant events. Test credentials fail with `FORBIDDEN` and reason `live_mode_required`, including on idempotent replay.
Path parameters
webhook_delivery_idstringRequiredFlint webhook delivery ID. Must be a valid ID with prefix wdel_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.
Request body
reason_messagestringYour note explaining this action.
Response · 200
The manual webhook delivery action.
dataobjectRequiredResource, collection, or operation result returned by this request.
metaobjectAdditional information about this response.
request_idstringRequiredIdentifier of this API request, used to correlate logs and support requests.
curl -X POST https://api.withflintpay.com/v1/webhook-deliveries/wdel_01KEZF7C001DWSNDCDZHCTBN0A/resend \
-H "Flint-Version: 2026-09-07" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: a-unique-key" \
-d '{
"reason_message": "Endpoint was fixed after returning 500s."
}'List webhook endpoints#
/v1/webhook-endpointsRequires scope webhooks.read or webhooks.write
Rate limit: read
Returns a page of webhook endpoints for the authenticated merchant. Sandbox reads omit global partner-source records. Filters selecting only partner_app or installed_merchants return an empty collection. Direct resource reads of partner-source records return 404 RESOURCE_NOT_FOUND in sandbox mode; exact-ID list filters return an empty collection when no visible records match. Default order: created_at descending, then webhook_endpoint_id descending.
Query parameters
created_bystringFilter by the exact ID of the API key, user, partner app, or workload identity that created the endpoint. Unknown IDs return an empty list.
page_sizeintegerMaximum number of results to return, from 1 to 100. Defaults to 20.
page_tokenstringOpaque, signed next_page_token from the previous response, bound to the list and caller. Omit on the first request. You may change `page_size` between pages. Reuse it with the same endpoint, filters, sort, and request context. Do not parse or construct tokens. An altered, invalid, expired, or mismatched token returns a validation error.
statusarray of enumFilter by status. Omitted, the list leaves out deleted rows; name deleted to include them. Values are trimmed and deduplicated in first-seen order; empty or unknown entries are rejected. Values within this filter are ORed; separate filters are ANDed.
activeinactivedeleted
event_sourcesarray of enumFilter by webhook endpoint event sources. Values are trimmed and deduplicated in first-seen order; empty or unknown entries are rejected. Values within this filter are ORed; separate filters are ANDed.
merchantpartner_appinstalled_merchants
partner_app_idstringFilter by partner app ID for partner-source webhook endpoints.
partner_app_install_idstringExact-match filter on partner_app_install_id.
Response · 200
A page of webhook endpoints for the authenticated merchant.
dataarray of objectRequiredResource, collection, or operation result returned by this request.
metaobjectAdditional information about this response.
next_page_tokenstringOpaque token to send as `page_token` to retrieve the next page. Omitted when there is no next page.
request_idstringRequiredIdentifier of this API request, used to correlate logs and support requests.
curl https://api.withflintpay.com/v1/webhook-endpoints \
-H "Flint-Version: 2026-09-07" \
-H "Authorization: Bearer YOUR_API_KEY"A page of webhook endpoints for the authenticated merchant.
{
"data": [
{
"api_version": "2026-09-07",
"created_at": "2026-03-17T14:30:00Z",
"description": "Primary production endpoint",
"enabled_events": [
"order.paid",
"payment_intent.succeeded"
],
"event_sources": [
"merchant"
],
"partner_app_install_id": null,
"signing_methods": [
"jwt"
],
"status": "active",
"updated_at": "2026-03-17T14:30:00Z",
"url": "https://example.com/webhooks/flint",
"version": 1,
"webhook_endpoint_id": "whep_01KEZF7C00940MBDY86SCZ1NW9"
}
],
"meta": {
"api_version": "2026-09-07"
},
"next_page_token": "example",
"request_id": "req_01KWM6JHJBP3R89PWB98RCWEMK"
}Create webhook endpoint#
/v1/webhook-endpointsIdempotentRequires scope webhooks.write
Rate limit: sensitive_write
Creates a webhook endpoint. signing_methods defaults to ["jwt"]. A shared secret is issued and returned once only when hmac is included. Partner-source endpoints are global configuration. Changes to them or their events and deliveries require a live-mode credential or a Dashboard session, including test events and endpoints subscribed only to test installed-merchant events. Test credentials fail with `FORBIDDEN` and reason `live_mode_required`, including on idempotent replay.
Request body
api_versionstringSet default to follow the merchant default, or a supported YYYY-MM-DD version to pin this endpoint. Omission pins the API version this create request is served at (Flint-Version, or the merchant default when the header is absent). Null is not accepted.
descriptionstringYour description of this endpoint. `null` is the same as omitting the field.
enabled_eventsarray of stringRequiredEvent types to deliver. Send ["*"] for every type the endpoint's event_sources deliver, including types added later; * must be the only entry and is not available with installed_merchants. At least one entry is required. Use only current event type names; previous and removed names are rejected. Stored subscriptions map previous names permanently and drop removed names on read. See the [changelog](/changelog).
event_sourcesarray of enumEvent sources this endpoint receives. Defaults to merchant. Use partner_app for app lifecycle events and installed_merchants for events from merchants that installed the partner app.
merchantpartner_appinstalled_merchants
installed_merchant_modesarray of enumModes of installed-merchant events this endpoint receives. Required when event_sources includes installed_merchants and omitted otherwise. Partner app lifecycle events are delivered regardless of these modes.
testlive
partner_app_idstringPartner app that owns partner_app or installed_merchants event sources.
partner_app_install_idstringLinks this endpoint to a connected app's install. Revoking the install, or its grant for this endpoint's environment, deletes the endpoint. The install must be active and authorized for this environment. Set only at creation; it never changes. Omit for an endpoint not tied to an app. Endpoints created by a linked key are linked to the same install. At most 25 endpoints may link to one install in each environment.
signing_methodsarray of enumMethods Flint uses to sign deliveries. Defaults to jwt. Including hmac issues a shared secret returned once.
jwthmac
statusenumWhether this endpoint receives events. Defaults to active.
activeinactive
urlstringRequiredPublic HTTPS URL to receive webhook deliveries.
Response · 201
The created webhook endpoint. secret is present only when hmac is enabled.
dataobjectRequiredResource, collection, or operation result returned by this request.
metaobjectAdditional information about this response.
request_idstringRequiredIdentifier of this API request, used to correlate logs and support requests.
curl -X POST https://api.withflintpay.com/v1/webhook-endpoints \
-H "Flint-Version: 2026-09-07" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: a-unique-key" \
-d '{
"description": "Primary production endpoint",
"enabled_events": [
"order.paid",
"payment_intent.succeeded"
],
"event_sources": [
"merchant"
],
"status": "active",
"url": "https://example.com/webhooks/flint"
}'Get webhook endpoint#
/v1/webhook-endpoints/{webhook_endpoint_id}Requires scope webhooks.read or webhooks.write
Rate limit: read
Returns a single webhook endpoint by ID. The signing secret is omitted after creation. Global partner-source records are invisible in sandbox mode; a direct reference returns 404 RESOURCE_NOT_FOUND.
Path parameters
webhook_endpoint_idstringRequiredFlint webhook endpoint ID. Must be a valid ID with prefix whep_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.
Response · 200
The requested webhook endpoint.
dataobjectRequiredResource, collection, or operation result returned by this request.
metaobjectAdditional information about this response.
request_idstringRequiredIdentifier of this API request, used to correlate logs and support requests.
curl https://api.withflintpay.com/v1/webhook-endpoints/whep_01KEZF7C006FXYTAJRZCGCBJTN \
-H "Flint-Version: 2026-09-07" \
-H "Authorization: Bearer YOUR_API_KEY"The requested webhook endpoint.
{
"data": {
"api_version": "2026-09-07",
"created_at": "2026-03-17T14:30:00Z",
"description": "Primary production endpoint",
"enabled_events": [
"order.paid",
"payment_intent.succeeded"
],
"event_sources": [
"merchant"
],
"partner_app_install_id": null,
"signing_methods": [
"jwt"
],
"status": "active",
"updated_at": "2026-03-17T14:30:00Z",
"url": "https://example.com/webhooks/flint",
"version": 1,
"webhook_endpoint_id": "whep_01KEZF7C00940MBDY86SCZ1NW9"
},
"meta": {
"api_version": "2026-09-07"
},
"request_id": "req_01KWM63NWRCK7JDCNZEYA5JW4Y"
}Update webhook endpoint#
/v1/webhook-endpoints/{webhook_endpoint_id}IdempotentRequires scope webhooks.write
Rate limit: sensitive_write
Updates a webhook endpoint's URL, description, status, subscribed events, event sources, signing methods, or pinned API version. Only the fields you send change. Sending `enabled_events`, `event_sources`, `installed_merchant_modes`, or `signing_methods` replaces that whole list and requires `expected_version`; a stale version fails with `VERSION_CONFLICT`. Adding `hmac` when no secret exists issues the first secret and returns it once. Removing `hmac` deletes all shared secrets. Partner-source endpoints are global configuration. Changes to them or their events and deliveries require a live-mode credential or a Dashboard session, including test events and endpoints subscribed only to test installed-merchant events. Test credentials fail with `FORBIDDEN` and reason `live_mode_required`, including on idempotent replay.
Path parameters
webhook_endpoint_idstringRequiredFlint webhook endpoint ID. Must be a valid ID with prefix whep_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.
Request body
api_versionstringSet default to follow the merchant default, or a supported YYYY-MM-DD version to pin this endpoint. Omit to leave unchanged. Null is not accepted. Switching between a pin and default clears the rollback offer.
descriptionstring or nullEndpoint description. Omit to leave unchanged; null clears it. Send null to clear it.
enabled_eventsarray of stringEvent types to deliver. Send ["*"] for every type the endpoint's event_sources deliver, including types added later; * must be the only entry and is not available with installed_merchants. At least one entry is required. Use only current event type names; previous and removed names are rejected. Stored subscriptions map previous names permanently and drop removed names on read. See the [changelog](/changelog).
event_sourcesarray of enumEvent sources this endpoint receives. Defaults to merchant. Use partner_app for app lifecycle events and installed_merchants for events from merchants that installed the partner app.
merchantpartner_appinstalled_merchants
expected_api_versionstringApply api_version only if this matches the resource's current api_version. A mismatch returns HTTP 409. Requires api_version; null is not accepted.
expected_versionintegerResource version last read by the caller. Required when enabled_events, event_sources, installed_merchant_modes, or signing_methods is present, including an empty array. Optional for scalar updates.
installed_merchant_modesarray of enumModes of installed-merchant events this endpoint receives. Required when event_sources includes installed_merchants and omitted otherwise. Partner app lifecycle events are delivered regardless of these modes.
testlive
partner_app_idstringPartner app that owns partner_app or installed_merchants event sources.
signing_methodsarray of enumReplaces the signing methods. Removing hmac deletes all shared secrets. Adding hmac when no secret exists issues the first secret and returns it once in this response. Omit to leave unchanged.
jwthmac
statusenumWhether this endpoint receives events. Setting inactive suppresses pending deliveries. Omit to leave unchanged.
activeinactive
urlstringPublic HTTPS URL to receive webhook deliveries. Omit to leave unchanged.
Response · 200
The updated webhook endpoint. secret is present only when this update first enables hmac.
Same response as Create webhook endpoint.
curl -X PATCH https://api.withflintpay.com/v1/webhook-endpoints/whep_01KEZF7C006FXYTAJRZCGCBJTN \
-H "Flint-Version: 2026-09-07" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: a-unique-key" \
-d '{
"description": "Updated production endpoint",
"expected_version": 1,
"status": "active"
}'Delete webhook endpoint#
/v1/webhook-endpoints/{webhook_endpoint_id}IdempotentRequires scope webhooks.write
Rate limit: sensitive_write
Permanently deletes the webhook endpoint and returns it with status deleted. Its pending deliveries are suppressed. The endpoint cannot be retrieved afterward, and its past deliveries keep its webhook_endpoint_id. Partner-source endpoints are global configuration. Changes to them or their events and deliveries require a live-mode credential or a Dashboard session, including test events and endpoints subscribed only to test installed-merchant events. Test credentials fail with `FORBIDDEN` and reason `live_mode_required`, including on idempotent replay.
Path parameters
webhook_endpoint_idstringRequiredFlint webhook endpoint ID. Must be a valid ID with prefix whep_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.
Query parameters
expected_versionintegerOptional configuration version last read by the caller.
curl -X DELETE https://api.withflintpay.com/v1/webhook-endpoints/whep_01KEZF7C006FXYTAJRZCGCBJTN \
-H "Flint-Version: 2026-09-07" \
-H "Authorization: Bearer YOUR_API_KEY"Rotate webhook secret#
/v1/webhook-endpoints/{webhook_endpoint_id}/rotate-secretIdempotentRequires scope webhooks.write
Rate limit: sensitive_write
Rotates an existing shared secret. An endpoint without hmac returns ACTION_NOT_ALLOWED with reason secret_not_issued; PATCH signing_methods to include hmac to issue the first secret. The secret is returned once. The replaced secret keeps signing deliveries until previous_secret_expires_at: 24 hours by default, or expire_previous_secret_at, up to 7 days. Send a time at or before now to stop the replaced secret immediately, for example when it leaked. Rotating again during an overlap ends the older secret at once. Partner-source endpoints are global configuration. Changes to them or their events and deliveries require a live-mode credential or a Dashboard session, including test events and endpoints subscribed only to test installed-merchant events. Test credentials fail with `FORBIDDEN` and reason `live_mode_required`, including on idempotent replay.
Path parameters
webhook_endpoint_idstringRequiredFlint webhook endpoint ID. Must be a valid ID with prefix whep_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.
Request body
expected_versionintegerVersion last read from the resource returned in `data` (the primary resource for a result object). The write fails with `VERSION_CONFLICT` if it has changed. Requiredness depends on the operation and fields being changed.
expire_previous_secret_atstringWhen the replaced secret stops signing. Omit for a 24-hour overlap; send a time at or before now to stop it immediately. Must be no later than 7 days from now. Null is not accepted.
curl -X POST https://api.withflintpay.com/v1/webhook-endpoints/whep_01KEZF7C006FXYTAJRZCGCBJTN/rotate-secret \
-H "Flint-Version: 2026-09-07" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: a-unique-key" \
-d '{
"expire_previous_secret_at": "2026-03-18T14:30:00Z"
}'Sign a sandbox webhook delivery#
/v1/webhook-endpoints/{webhook_endpoint_id}/sign-deliveryRequires scope webhooks.write
Rate limit: webhook_signing
Sandbox only. Returns the exact delivery body and headers for an authorized sandbox endpoint without dispatching it. Requires webhooks.write and permission to read the event's resource. JWT signing must be enabled. Each call reauthorizes and creates a fresh five-minute bearer frame; receivers deduplicate webhook-id. Each endpoint can sign one delivery every 200 ms and 10,000 per UTC day. Requests also count against webhook-signing API quotas. Flint can wait up to 200 ms for the next signing slot. If the slot is still unavailable, the endpoint returns 429 with Retry-After-Ms for the remaining delay in milliseconds and a whole-second Retry-After fallback. Daily exhaustion returns 409 LIMIT_REACHED with limit and resets_at and no Retry-After. Signing fails closed if the shared quota store is unavailable. Responses are not cached or retained for idempotency. Previously issued JWTs remain usable until expiry after endpoint changes.
Path parameters
webhook_endpoint_idstringRequiredThe caller's own merchant event-delivery endpoint in the selected sandbox. Must be a valid ID with prefix whep_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.
Request body
webhook_event_idstringRequiredRetained merchant event in the endpoint's sandbox. The endpoint must subscribe to its event type.
Response · 200
Exact signed delivery. Forward body bytes and application headers unchanged.
dataobjectRequiredResource, collection, or operation result returned by this request.
metaobjectAdditional information about this response.
request_idstringRequiredIdentifier of this API request, used to correlate logs and support requests.
curl -X POST https://api.withflintpay.com/v1/webhook-endpoints/whep_01KEZF7C006FXYTAJRZCGCBJTN/sign-delivery \
-H "Flint-Version: 2026-09-07" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"webhook_event_id": "whev_01KEZF7C00BW7XQJ98PQ8EHA81"
}'Create webhook test event#
/v1/webhook-endpoints/{webhook_endpoint_id}/test-eventsIdempotentRequires scope webhooks.write
Rate limit: external_provider_action
Creates a synthetic test webhook event for one active webhook endpoint. For an ordinary endpoint, returns the HTTP delivery attempt. For a flint listen endpoint, publishes to the webhook event stream and returns the event ID and delivery_method: listener_stream. Safe to retry with the same idempotency key. Partner-source endpoints are global configuration. Changes to them or their events and deliveries require a live-mode credential or a Dashboard session, including test events and endpoints subscribed only to test installed-merchant events. Test credentials fail with `FORBIDDEN` and reason `live_mode_required`, including on idempotent replay.
Path parameters
webhook_endpoint_idstringRequiredFlint webhook endpoint ID. Must be a valid ID with prefix whep_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.
Request body
event_typeenumRequiredCurrent event type to send. merchant delivers merchant events; partner_app delivers partner lifecycle events; installed_merchants delivers merchant events permitted by the install read scopes. The event catalog lists event_sources for each type.
api_key.createdapi_key.revokedapi_key.updatedbalance.updatedbalance_transaction.createdbalance_transaction.updatedbundle.archivedbundle.createdbundle.updatedcategory.createdcategory.deletedcategory.updatedcheckout_session.closedcheckout_session.createdcheckout_session.expiredcheckout_session.invalidatedcheckout_session.paidcheckout_session.partially_paidcheckout_session.updatedcredit_note.createdcredit_note.issuedcredit_note.updatedcredit_note.voidedcredit_note_allocation.createdcredit_note_allocation.reversedcustom_domain.archivedcustom_domain.updatedcustomer.createdcustomer.deletedcustomer.updatedcustomer_deletion_request.completedcustomer_deletion_request.createdcustomer_deletion_request.failedcustomer_deletion_request.processingcustomer_deletion_request.rejectedcustomer_email_preferences.updateddelivery_location_set.archiveddelivery_location_set.createddelivery_location_set.updateddelivery_method.activateddelivery_method.archiveddelivery_method.createddelivery_method.deactivateddelivery_method.updateddelivery_profile.archiveddelivery_profile.createddelivery_profile.updateddelivery_rate_callback.activateddelivery_rate_callback.archiveddelivery_rate_callback.createddelivery_rate_callback.deactivateddelivery_rate_callback.updateddelivery_revocation.createddelivery_selection.committeddelivery_zone.archiveddelivery_zone.createddelivery_zone.updateddispute.createddispute.inquiry_closeddispute.lostdispute.needs_responsedispute.preventeddispute.updateddispute.wonenvironment_grant.createdenvironment_grant.revokedenvironment_grant.updatedfraud_warning.createdfraud_warning.updatedfulfillment.canceledfulfillment.completedfulfillment.createdfulfillment.failedfulfillment.updatedfulfillment_event.createdgift_card.createdgift_card.updatedgift_card_load.createdgift_card_load.updatedgift_card_notification.createdgift_card_notification.updatedgift_card_redemption.createdgift_card_redemption.updatedgift_card_transaction.createdinventory_count.appliedinventory_count.updatedinventory_level.shortage_detectedinventory_level.updatedinventory_receipt.createdinventory_reservation.action_requiredinventory_reservation.at_riskinventory_reservation.closedinventory_reservation.committedinventory_reservation.consumedinventory_reservation.createdinventory_reservation.hold_expiredinventory_reservation.releasedinventory_reservation.updatedinventory_transfer.closedinventory_transfer.departedinventory_transfer.lostinventory_transfer.receivedinventory_transfer.returnedinventory_transfer.updatedinvoice.collection_block_resolvedinvoice.collection_blockedinvoice.createdinvoice.creditedinvoice.issue_failedinvoice.issuedinvoice.late_fee_assessedinvoice.late_fee_dueinvoice.late_fee_waivedinvoice.marked_uncollectibleinvoice.overdueinvoice.paidinvoice.partially_paidinvoice.partially_refundedinvoice.refundedinvoice.reminder_dueinvoice.reopenedinvoice.sentinvoice.updatedinvoice.voidedinvoice_delivery_attempt.failedinvoice_delivery_attempt.sentinvoice_delivery_attempt.suppressedinvoice_manual_payment.createdinvoice_manual_payment.reversedinvoice_payment_attempt.canceledinvoice_payment_attempt.expiredinvoice_payment_attempt.failedinvoice_payment_attempt.processinginvoice_payment_attempt.succeededlicense_key.createdlicense_key.disabledlicense_key.expiredlicense_key.updatedlicense_key_activation.createdlicense_key_activation.releasedlicense_key_pool.archivedlicense_key_pool.createdlicense_key_pool.low_stocklicense_key_pool.out_of_stocklicense_key_pool.updatedmerchant.readiness_updatedmerchant.updatedmerchant_billing_balance.updatedmerchant_billing_invoice.issuedmerchant_billing_invoice.updatedmodifier_group.archivedmodifier_group.createdmodifier_group.updatedmodifier_set.archivedmodifier_set.createdmodifier_set.updatedorder.closedorder.createdorder.inventory_exception_createdorder.inventory_exception_resolvedorder.paidorder.partially_paidorder.partially_refundedorder.refundedorder.updatedorder_edit.canceledorder_edit.completedorder_edit.createdorder_edit.updatedpackage.createdpackage.updatedpartner_app.platform_approvedpartner_app.platform_limitedpartner_app.platform_rejectedpartner_app.updatedpartner_app_install.createdpartner_app_install.permissions_updatedpartner_app_install.revokedpartner_app_install.updatedpayment_intent.authorization_expiringpayment_intent.canceledpayment_intent.createdpayment_intent.expiredpayment_intent.fulfillment_hold_updatedpayment_intent.payment_failedpayment_intent.processingpayment_intent.requires_actionpayment_intent.requires_capturepayment_intent.succeededpayment_intent.updatedpayment_link.createdpayment_link.updatedpayment_method.activatedpayment_method.archivedpayment_method.failedpayment_method.updatedpayment_review.closedpayment_review.openedpayment_review.reopenedpayment_split.canceledpayment_split.createdpayment_split.failedpayment_split.succeededpayment_split.updatedpayout.canceledpayout.createdpayout.failedpayout.reversedpayout.succeededpayout.updatedpayout_destination.archivedpayout_destination.createdpayout_destination.disabledpayout_destination.updatedpayout_settings.updatedplatform_fee.canceledplatform_fee.createdplatform_fee.succeededplatform_fee.updatedplatform_fee_payout.createdplatform_fee_payout.failedplatform_fee_payout.succeededprice_list.archivedprice_list.createdprice_list.updatedproduct.archivedproduct.createdproduct.updatedproduct_variant.archivedproduct_variant.createdproduct_variant.updatedpromotion.archivedpromotion.createdpromotion.updatedpromotion_code.archivedpromotion_code.createdpromotion_code.updatedreader.archivedreader.createdreader.updatedrefund.createdrefund.failedrefund.partially_succeededrefund.succeededrefund.updatedreport.failedreport.succeededreturn.canceledreturn.completedreturn.createdreturn.decision_recordedreturn.reopenedreturn.updatedreturn_disposition.createdreturn_disposition.updatedreturn_inspection.acceptance_decidedreturn_inspection.createdreturn_inspection.supersededreturn_receipt.createdreturn_receipt.supersededreturn_receipt.verifiedreturn_resolution.createdreturn_resolution.updatedshipment.createdshipment.updatedshop.archivedshop.createdshop.updatedsubscription.activatedsubscription.canceledsubscription.cancellation_scheduledsubscription.createdsubscription.cycle_skippedsubscription.delivery_action_requiredsubscription.delivery_pause_upcomingsubscription.delivery_updatedsubscription.dunning_exhaustedsubscription.end_upcomingsubscription.past_duesubscription.pausedsubscription.payment_succeededsubscription.plan_change_canceledsubscription.plan_change_scheduledsubscription.plan_changedsubscription.reactivatedsubscription.renewal_upcomingsubscription.resumedsubscription.trial_endingsubscription.updatedsubscription_delivery_migration.completedsubscription_payment_retry.createdsubscription_payment_retry.failedsubscription_payment_retry.succeededtax_calculation_callback.activatedtax_calculation_callback.archivedtax_calculation_callback.createdtax_calculation_callback.deactivatedtax_calculation_callback.updatedtax_connection.updatedtest_clock.advancingtest_clock.archivedtest_clock.createdtest_clock.failedtest_clock.readyticket.checked_inticket.createdticket.updatedticket.voided
Response · 201
The synthetic event publication or HTTP delivery attempt.
dataone ofRequiredResource, collection, or operation result returned by this request.
metaobjectAdditional information about this response.
request_idstringRequiredIdentifier of this API request, used to correlate logs and support requests.
curl -X POST https://api.withflintpay.com/v1/webhook-endpoints/whep_01KEZF7C006FXYTAJRZCGCBJTN/test-events \
-H "Flint-Version: 2026-09-07" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: a-unique-key" \
-d '{
"event_type": "payment_intent.succeeded"
}'List webhook event types#
/v1/webhook-event-typesRequires scope webhooks.read or webhooks.write
Rate limit: read
Returns every webhook event type you can use in enabled_events and event filters, with the event sources each type is valid for. Default order: event_type ascending; this key uniquely orders the results.
Query parameters
page_sizeintegerMaximum number of results to return, from 1 to 100. Defaults to 100.
page_tokenstringOpaque, signed next_page_token from the previous response, bound to the list and caller. Omit on the first request. You may change `page_size` between pages. Reuse it with the same endpoint, filters, sort, and request context. Do not parse or construct tokens. An altered, invalid, expired, or mismatched token returns a validation error.
Response · 200
Webhook event types supported by the public API.
dataarray of objectRequiredResource, collection, or operation result returned by this request.
metaobjectAdditional information about this response.
next_page_tokenstringOpaque token to send as `page_token` to retrieve the next page. Omitted when there is no next page.
request_idstringRequiredIdentifier of this API request, used to correlate logs and support requests.
curl https://api.withflintpay.com/v1/webhook-event-types \
-H "Flint-Version: 2026-09-07" \
-H "Authorization: Bearer YOUR_API_KEY"Webhook event types supported by the public API.
{
"data": [
{
"description": "An order became fully paid, including by a manual payment on its invoice. Use payment_intent.succeeded for each successful online payment.",
"event_sources": [
"merchant",
"installed_merchants"
],
"event_type": "order.paid",
"kind": "snapshot",
"previous_names": [],
"resource_type": "order"
},
{
"description": "A partner app install was created.",
"event_sources": [
"partner_app"
],
"event_type": "partner_app_install.created",
"kind": "snapshot",
"previous_names": [],
"resource_type": "partner_app_install"
}
],
"meta": {
"api_version": "2026-09-07"
},
"next_page_token": "example",
"request_id": "req_01KWM6NTGK772FXYVW71VTDACP"
}List webhook events#
/v1/webhook-eventsRequires scope webhooks.read or webhooks.write
Rate limit: read
Returns recent canonical webhook events for the authenticated merchant. Sandbox reads omit global partner-source records. Filters selecting only partner_app or installed_merchants return an empty collection. Direct resource reads of partner-source records return 404 RESOURCE_NOT_FOUND in sandbox mode; exact-ID list filters return an empty collection when no visible records match. Default order: created_at descending, then webhook_event_id descending.
Query parameters
page_sizeintegerMaximum number of results to return, from 1 to 100. Defaults to 20.
page_tokenstringOpaque, signed next_page_token from the previous response, bound to the list and caller. Omit on the first request. You may change `page_size` between pages. Reuse it with the same endpoint, filters, sort, and request context. Do not parse or construct tokens. An altered, invalid, expired, or mismatched token returns a validation error.
webhook_endpoint_idstringFilter to events that have a delivery for this webhook endpoint.
delivery_statusarray of enumFilter to events that have a delivery with this status. Values are trimmed and deduplicated in first-seen order; empty or unknown entries are rejected. Values within this filter are ORed; separate filters are ANDed.
pendingdeliveredfailedsuppressed
event_sourcearray of enumFilter by webhook event source. Values are trimmed and deduplicated in first-seen order; empty or unknown entries are rejected. Values within this filter are ORed; separate filters are ANDed.
merchantpartner_appinstalled_merchants
partner_app_idstringFilter by partner app ID for partner-source webhook events.
event_typearray of enumFilter by webhook event type. Values are trimmed and deduplicated in first-seen order; empty or unknown entries are rejected. Values within this filter are ORed; separate filters are ANDed.
api_key.createdapi_key.revokedapi_key.updatedbalance.updatedbalance_transaction.createdbalance_transaction.updatedbundle.archivedbundle.createdbundle.updatedcategory.createdcategory.deletedcategory.updatedcheckout_session.closedcheckout_session.createdcheckout_session.expiredcheckout_session.invalidatedcheckout_session.paidcheckout_session.partially_paidcheckout_session.updatedcredit_note.createdcredit_note.issuedcredit_note.updatedcredit_note.voidedcredit_note_allocation.createdcredit_note_allocation.reversedcustom_domain.archivedcustom_domain.updatedcustomer.createdcustomer.deletedcustomer.updatedcustomer_deletion_request.completedcustomer_deletion_request.createdcustomer_deletion_request.failedcustomer_deletion_request.processingcustomer_deletion_request.rejectedcustomer_email_preferences.updateddelivery_location_set.archiveddelivery_location_set.createddelivery_location_set.updateddelivery_method.activateddelivery_method.archiveddelivery_method.createddelivery_method.deactivateddelivery_method.updateddelivery_profile.archiveddelivery_profile.createddelivery_profile.updateddelivery_rate_callback.activateddelivery_rate_callback.archiveddelivery_rate_callback.createddelivery_rate_callback.deactivateddelivery_rate_callback.updateddelivery_revocation.createddelivery_selection.committeddelivery_zone.archiveddelivery_zone.createddelivery_zone.updateddispute.createddispute.inquiry_closeddispute.lostdispute.needs_responsedispute.preventeddispute.updateddispute.wonenvironment_grant.createdenvironment_grant.revokedenvironment_grant.updatedfraud_warning.createdfraud_warning.updatedfulfillment.canceledfulfillment.completedfulfillment.createdfulfillment.failedfulfillment.updatedfulfillment_event.createdgift_card.createdgift_card.updatedgift_card_load.createdgift_card_load.updatedgift_card_notification.createdgift_card_notification.updatedgift_card_redemption.createdgift_card_redemption.updatedgift_card_transaction.createdinventory_count.appliedinventory_count.updatedinventory_level.shortage_detectedinventory_level.updatedinventory_receipt.createdinventory_reservation.action_requiredinventory_reservation.at_riskinventory_reservation.closedinventory_reservation.committedinventory_reservation.consumedinventory_reservation.createdinventory_reservation.hold_expiredinventory_reservation.releasedinventory_reservation.updatedinventory_transfer.closedinventory_transfer.departedinventory_transfer.lostinventory_transfer.receivedinventory_transfer.returnedinventory_transfer.updatedinvoice.collection_block_resolvedinvoice.collection_blockedinvoice.createdinvoice.creditedinvoice.issue_failedinvoice.issuedinvoice.late_fee_assessedinvoice.late_fee_dueinvoice.late_fee_waivedinvoice.marked_uncollectibleinvoice.overdueinvoice.paidinvoice.partially_paidinvoice.partially_refundedinvoice.refundedinvoice.reminder_dueinvoice.reopenedinvoice.sentinvoice.updatedinvoice.voidedinvoice_delivery_attempt.failedinvoice_delivery_attempt.sentinvoice_delivery_attempt.suppressedinvoice_manual_payment.createdinvoice_manual_payment.reversedinvoice_payment_attempt.canceledinvoice_payment_attempt.expiredinvoice_payment_attempt.failedinvoice_payment_attempt.processinginvoice_payment_attempt.succeededlicense_key.createdlicense_key.disabledlicense_key.expiredlicense_key.updatedlicense_key_activation.createdlicense_key_activation.releasedlicense_key_pool.archivedlicense_key_pool.createdlicense_key_pool.low_stocklicense_key_pool.out_of_stocklicense_key_pool.updatedmerchant.readiness_updatedmerchant.updatedmerchant_billing_balance.updatedmerchant_billing_invoice.issuedmerchant_billing_invoice.updatedmodifier_group.archivedmodifier_group.createdmodifier_group.updatedmodifier_set.archivedmodifier_set.createdmodifier_set.updatedorder.closedorder.createdorder.inventory_exception_createdorder.inventory_exception_resolvedorder.paidorder.partially_paidorder.partially_refundedorder.refundedorder.updatedorder_edit.canceledorder_edit.completedorder_edit.createdorder_edit.updatedpackage.createdpackage.updatedpartner_app.platform_approvedpartner_app.platform_limitedpartner_app.platform_rejectedpartner_app.updatedpartner_app_install.createdpartner_app_install.permissions_updatedpartner_app_install.revokedpartner_app_install.updatedpayment_intent.authorization_expiringpayment_intent.canceledpayment_intent.createdpayment_intent.expiredpayment_intent.fulfillment_hold_updatedpayment_intent.payment_failedpayment_intent.processingpayment_intent.requires_actionpayment_intent.requires_capturepayment_intent.succeededpayment_intent.updatedpayment_link.createdpayment_link.updatedpayment_method.activatedpayment_method.archivedpayment_method.failedpayment_method.updatedpayment_review.closedpayment_review.openedpayment_review.reopenedpayment_split.canceledpayment_split.createdpayment_split.failedpayment_split.succeededpayment_split.updatedpayout.canceledpayout.createdpayout.failedpayout.reversedpayout.succeededpayout.updatedpayout_destination.archivedpayout_destination.createdpayout_destination.disabledpayout_destination.updatedpayout_settings.updatedplatform_fee.canceledplatform_fee.createdplatform_fee.succeededplatform_fee.updatedplatform_fee_payout.createdplatform_fee_payout.failedplatform_fee_payout.succeededprice_list.archivedprice_list.createdprice_list.updatedproduct.archivedproduct.createdproduct.updatedproduct_variant.archivedproduct_variant.createdproduct_variant.updatedpromotion.archivedpromotion.createdpromotion.updatedpromotion_code.archivedpromotion_code.createdpromotion_code.updatedreader.archivedreader.createdreader.updatedrefund.createdrefund.failedrefund.partially_succeededrefund.succeededrefund.updatedreport.failedreport.succeededreturn.canceledreturn.completedreturn.createdreturn.decision_recordedreturn.reopenedreturn.updatedreturn_disposition.createdreturn_disposition.updatedreturn_inspection.acceptance_decidedreturn_inspection.createdreturn_inspection.supersededreturn_receipt.createdreturn_receipt.supersededreturn_receipt.verifiedreturn_resolution.createdreturn_resolution.updatedshipment.createdshipment.updatedshop.archivedshop.createdshop.updatedsubscription.activatedsubscription.canceledsubscription.cancellation_scheduledsubscription.createdsubscription.cycle_skippedsubscription.delivery_action_requiredsubscription.delivery_pause_upcomingsubscription.delivery_updatedsubscription.dunning_exhaustedsubscription.end_upcomingsubscription.past_duesubscription.pausedsubscription.payment_succeededsubscription.plan_change_canceledsubscription.plan_change_scheduledsubscription.plan_changedsubscription.reactivatedsubscription.renewal_upcomingsubscription.resumedsubscription.trial_endingsubscription.updatedsubscription_delivery_migration.completedsubscription_payment_retry.createdsubscription_payment_retry.failedsubscription_payment_retry.succeededtax_calculation_callback.activatedtax_calculation_callback.archivedtax_calculation_callback.createdtax_calculation_callback.deactivatedtax_calculation_callback.updatedtax_connection.updatedtest_clock.advancingtest_clock.archivedtest_clock.createdtest_clock.failedtest_clock.readyticket.checked_inticket.createdticket.updatedticket.voided
resource_typearray of enumFilter by affected resource type. Values are trimmed and deduplicated in first-seen order; empty or unknown entries are rejected. Values within this filter are ORed; separate filters are ANDed.
api_keybalancebalance_transactionbundlecategorycheckout_sessioncredit_notecredit_note_allocationcustom_domaincustomercustomer_deletion_requestcustomer_email_preferencesdelivery_location_setdelivery_methoddelivery_profiledelivery_rate_callbackdelivery_revocationdelivery_selectiondelivery_zonedisputeenvironment_grantfraud_warningfulfillmentfulfillment_eventgift_cardgift_card_loadgift_card_notificationgift_card_redemptiongift_card_transactioninventory_countinventory_levelinventory_receiptinventory_reservationinventory_transferinvoiceinvoice_delivery_attemptinvoice_manual_paymentinvoice_payment_attemptlicense_keylicense_key_activationlicense_key_poolmerchantmerchant_billing_balancemerchant_billing_invoicemodifier_groupmodifier_setorderorder_editpackagepartner_apppartner_app_installpayment_intentpayment_linkpayment_methodpayment_reviewpayment_splitpayoutpayout_destinationpayout_settingsplatform_feeplatform_fee_payoutprice_listproductproduct_variantpromotionpromotion_codereaderrefundreportreturnreturn_dispositionreturn_inspectionreturn_receiptreturn_resolutionshipmentshopsubscriptionsubscription_delivery_migrationsubscription_payment_retrytax_calculation_callbacktax_connectiontest_clockticket
resource_idstringFilter by affected resource ID.
api_request_log_idstringFilter by API request log ID associated with the event.
request_idstringFilter by request ID associated with the event.
created_afterstringInclusive lower bound on created_at.
created_beforestringExclusive upper bound on created_at.
testbooleanFilter by whether the event is synthetic: true returns only synthetic test events, false excludes them. Omit to return all events.
Response · 200
A page of webhook events.
dataarray of objectRequiredResource, collection, or operation result returned by this request.
metaobjectAdditional information about this response.
next_page_tokenstringOpaque token to send as `page_token` to retrieve the next page. Omitted when there is no next page.
request_idstringRequiredIdentifier of this API request, used to correlate logs and support requests.
curl https://api.withflintpay.com/v1/webhook-events \
-H "Flint-Version: 2026-09-07" \
-H "Authorization: Bearer YOUR_API_KEY"A page of webhook events.
{
"data": [
{
"api_request_log_id": "rlog_01KEZF7C00SMPBXVMJEG4SRRD2",
"api_version": "2026-09-07",
"created_at": "2026-03-17T14:30:00Z",
"event_source": "merchant",
"event_type": "order.paid",
"merchant_id": "mer_01KEZF7C00MPP0T9S0KH5BB4CC",
"mode": "live",
"payload_version": 2,
"request": {
"id": "req_01KWM6ACYNETFVATDT9F46D2XA"
},
"resource_id": "ord_01KEZF7C00JBKMARG3P06Z224B",
"resource_type": "order",
"test": false,
"webhook_event_id": "whev_01KEZF7C00BW7XQJ98PQ8EHA81"
}
],
"meta": {
"api_version": "2026-09-07"
},
"next_page_token": "example",
"request_id": "req_01KWM6J4QCYWZ0R3N6DQSE8DNV"
}Get webhook event#
/v1/webhook-events/{webhook_event_id}Requires scope webhooks.read or webhooks.write
Rate limit: read
Returns a specific webhook event for the authenticated merchant. Global partner-source records are invisible in sandbox mode; a direct reference returns 404 RESOURCE_NOT_FOUND.
Path parameters
webhook_event_idstringRequiredFlint webhook event ID. Must be a valid ID with prefix whev_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.
Response · 200
The selected webhook event.
dataobjectRequiredResource, collection, or operation result returned by this request.
metaobjectAdditional information about this response.
request_idstringRequiredIdentifier of this API request, used to correlate logs and support requests.
curl https://api.withflintpay.com/v1/webhook-events/whev_01KEZF7C00362MS3HV970TRZGS \
-H "Flint-Version: 2026-09-07" \
-H "Authorization: Bearer YOUR_API_KEY"The selected webhook event.
{
"data": {
"api_request_log_id": "rlog_01KEZF7C00SMPBXVMJEG4SRRD2",
"api_version": "2026-09-07",
"created_at": "2026-03-17T14:30:00Z",
"data": {
"object": {
"order_id": "ord_01KEZF7C00JBKMARG3P06Z224B",
"payment_status": "paid",
"status": "closed"
}
},
"event_source": "merchant",
"event_type": "order.paid",
"merchant_id": "mer_01KEZF7C00MPP0T9S0KH5BB4CC",
"mode": "live",
"payload_version": 2,
"request": {
"id": "req_01KWM6ACYNETFVATDT9F46D2XA"
},
"resource_id": "ord_01KEZF7C00JBKMARG3P06Z224B",
"resource_type": "order",
"test": false,
"webhook_event_id": "whev_01KEZF7C00BW7XQJ98PQ8EHA81"
},
"meta": {
"api_version": "2026-09-07"
},
"request_id": "req_01KWM62M331M5W0YEKMCFQP22S"
}Stream webhook events#
/v1/webhook-events/streamRequires scope webhooks.read or webhooks.write
Rate limit: read
Streams canonical merchant webhook events created after the connection opens or after the supplied event ID. SSE event IDs are resumable webhook event IDs. Control records include ready, gap, withheld, and disconnect. Gap records indicate cursor_unavailable or payload_expired; withheld records hide payloads the caller cannot read. Backpressure emits disconnect with reason backpressure and resume_cursor identifying the last sent event, so clients can reconnect without losing events. A partner app token streams the installed merchant's events in the environment its grant covers, and sees a payload only for an event Flint forwards to installed-merchant endpoints whose read scope the grant holds; every other event is a withheld record.
Query parameters
event_typearray of enumFilter by canonical merchant webhook event type. Values are trimmed and deduplicated in first-seen order; empty or unknown entries are rejected. Values within this filter are ORed; separate filters are ANDed.
api_key.createdapi_key.revokedapi_key.updatedbalance.updatedbalance_transaction.createdbalance_transaction.updatedbundle.archivedbundle.createdbundle.updatedcategory.createdcategory.deletedcategory.updatedcheckout_session.closedcheckout_session.createdcheckout_session.expiredcheckout_session.invalidatedcheckout_session.paidcheckout_session.partially_paidcheckout_session.updatedcredit_note.createdcredit_note.issuedcredit_note.updatedcredit_note.voidedcredit_note_allocation.createdcredit_note_allocation.reversedcustom_domain.archivedcustom_domain.updatedcustomer.createdcustomer.deletedcustomer.updatedcustomer_deletion_request.completedcustomer_deletion_request.createdcustomer_deletion_request.failedcustomer_deletion_request.processingcustomer_deletion_request.rejectedcustomer_email_preferences.updateddelivery_location_set.archiveddelivery_location_set.createddelivery_location_set.updateddelivery_method.activateddelivery_method.archiveddelivery_method.createddelivery_method.deactivateddelivery_method.updateddelivery_profile.archiveddelivery_profile.createddelivery_profile.updateddelivery_rate_callback.activateddelivery_rate_callback.archiveddelivery_rate_callback.createddelivery_rate_callback.deactivateddelivery_rate_callback.updateddelivery_revocation.createddelivery_selection.committeddelivery_zone.archiveddelivery_zone.createddelivery_zone.updateddispute.createddispute.inquiry_closeddispute.lostdispute.needs_responsedispute.preventeddispute.updateddispute.wonfraud_warning.createdfraud_warning.updatedfulfillment.canceledfulfillment.completedfulfillment.createdfulfillment.failedfulfillment.updatedfulfillment_event.createdgift_card.createdgift_card.updatedgift_card_load.createdgift_card_load.updatedgift_card_notification.createdgift_card_notification.updatedgift_card_redemption.createdgift_card_redemption.updatedgift_card_transaction.createdinventory_count.appliedinventory_count.updatedinventory_level.shortage_detectedinventory_level.updatedinventory_receipt.createdinventory_reservation.action_requiredinventory_reservation.at_riskinventory_reservation.closedinventory_reservation.committedinventory_reservation.consumedinventory_reservation.createdinventory_reservation.hold_expiredinventory_reservation.releasedinventory_reservation.updatedinventory_transfer.closedinventory_transfer.departedinventory_transfer.lostinventory_transfer.receivedinventory_transfer.returnedinventory_transfer.updatedinvoice.collection_block_resolvedinvoice.collection_blockedinvoice.createdinvoice.creditedinvoice.issue_failedinvoice.issuedinvoice.late_fee_assessedinvoice.late_fee_dueinvoice.late_fee_waivedinvoice.marked_uncollectibleinvoice.overdueinvoice.paidinvoice.partially_paidinvoice.partially_refundedinvoice.refundedinvoice.reminder_dueinvoice.reopenedinvoice.sentinvoice.updatedinvoice.voidedinvoice_delivery_attempt.failedinvoice_delivery_attempt.sentinvoice_delivery_attempt.suppressedinvoice_manual_payment.createdinvoice_manual_payment.reversedinvoice_payment_attempt.canceledinvoice_payment_attempt.expiredinvoice_payment_attempt.failedinvoice_payment_attempt.processinginvoice_payment_attempt.succeededlicense_key.createdlicense_key.disabledlicense_key.expiredlicense_key.updatedlicense_key_activation.createdlicense_key_activation.releasedlicense_key_pool.archivedlicense_key_pool.createdlicense_key_pool.low_stocklicense_key_pool.out_of_stocklicense_key_pool.updatedmerchant.readiness_updatedmerchant.updatedmerchant_billing_balance.updatedmerchant_billing_invoice.issuedmerchant_billing_invoice.updatedmodifier_group.archivedmodifier_group.createdmodifier_group.updatedmodifier_set.archivedmodifier_set.createdmodifier_set.updatedorder.closedorder.createdorder.inventory_exception_createdorder.inventory_exception_resolvedorder.paidorder.partially_paidorder.partially_refundedorder.refundedorder.updatedorder_edit.canceledorder_edit.completedorder_edit.createdorder_edit.updatedpackage.createdpackage.updatedpartner_app.platform_approvedpartner_app.platform_limitedpartner_app.platform_rejectedpartner_app.updatedpayment_intent.authorization_expiringpayment_intent.canceledpayment_intent.createdpayment_intent.expiredpayment_intent.fulfillment_hold_updatedpayment_intent.payment_failedpayment_intent.processingpayment_intent.requires_actionpayment_intent.requires_capturepayment_intent.succeededpayment_intent.updatedpayment_link.createdpayment_link.updatedpayment_method.activatedpayment_method.archivedpayment_method.failedpayment_method.updatedpayment_review.closedpayment_review.openedpayment_review.reopenedpayment_split.canceledpayment_split.createdpayment_split.failedpayment_split.succeededpayment_split.updatedpayout.canceledpayout.createdpayout.failedpayout.reversedpayout.succeededpayout.updatedpayout_destination.archivedpayout_destination.createdpayout_destination.disabledpayout_destination.updatedpayout_settings.updatedplatform_fee.canceledplatform_fee.createdplatform_fee.succeededplatform_fee.updatedplatform_fee_payout.createdplatform_fee_payout.failedplatform_fee_payout.succeededprice_list.archivedprice_list.createdprice_list.updatedproduct.archivedproduct.createdproduct.updatedproduct_variant.archivedproduct_variant.createdproduct_variant.updatedpromotion.archivedpromotion.createdpromotion.updatedpromotion_code.archivedpromotion_code.createdpromotion_code.updatedreader.archivedreader.createdreader.updatedrefund.createdrefund.failedrefund.partially_succeededrefund.succeededrefund.updatedreport.failedreport.succeededreturn.canceledreturn.completedreturn.createdreturn.decision_recordedreturn.reopenedreturn.updatedreturn_disposition.createdreturn_disposition.updatedreturn_inspection.acceptance_decidedreturn_inspection.createdreturn_inspection.supersededreturn_receipt.createdreturn_receipt.supersededreturn_receipt.verifiedreturn_resolution.createdreturn_resolution.updatedshipment.createdshipment.updatedshop.archivedshop.createdshop.updatedsubscription.activatedsubscription.canceledsubscription.cancellation_scheduledsubscription.createdsubscription.cycle_skippedsubscription.delivery_action_requiredsubscription.delivery_pause_upcomingsubscription.delivery_updatedsubscription.dunning_exhaustedsubscription.end_upcomingsubscription.past_duesubscription.pausedsubscription.payment_succeededsubscription.plan_change_canceledsubscription.plan_change_scheduledsubscription.plan_changedsubscription.reactivatedsubscription.renewal_upcomingsubscription.resumedsubscription.trial_endingsubscription.updatedsubscription_delivery_migration.completedsubscription_payment_retry.createdsubscription_payment_retry.failedsubscription_payment_retry.succeededtax_calculation_callback.activatedtax_calculation_callback.archivedtax_calculation_callback.createdtax_calculation_callback.deactivatedtax_calculation_callback.updatedtax_connection.updatedtest_clock.advancingtest_clock.archivedtest_clock.createdtest_clock.failedtest_clock.readyticket.checked_inticket.createdticket.updatedticket.voided
testbooleanFilter by whether the event is synthetic: true returns only synthetic test events, false excludes them. Omit to return all events.
after_event_idstringWebhook event ID to resume after. Last-Event-ID is preferred when reconnecting.
Response · 200
An SSE stream of webhook.event, ready, gap, withheld, and disconnect records. Every cursor-advancing webhook.event, gap, or withheld record includes an id field suitable for Last-Event-ID.
Content type text/event-stream
curl https://api.withflintpay.com/v1/webhook-events/stream \
-H "Flint-Version: 2026-09-07" \
-H "Authorization: Bearer YOUR_API_KEY"An SSE stream of webhook.event, ready, gap, withheld, and disconnect records. Every cursor-advancing webhook.event, gap, or withheld record includes an id field suitable for Last-Event-ID.
Returns text/event-stream.
Was this helpful?