Platform
Webhook Events Catalog
Complete reference of every event PaymentHooks can send to your webhook endpoints, organised by category with sample payloads.
Overview
PaymentHooks fires webhook events whenever significant actions occur in your account. Each event is delivered as an HTTP POST with a JSON body to every active endpoint subscribed to that event type. Below is the catalog of emitted events grouped by domain. Sample payloads are abridged: the full objects carry additional Stripe-compatible fields, most of them null.
Checkout outcomes — checkout.session.completed, checkout.session.payment_failed and checkout.session.expired — are sent to registered endpoints and also to the per-session webhookUrl of the hosted checkout session when one is set. Only payment.requires_action is sent to the per-session webhookUrl alone. Failed deliveries on either channel are retried automatically with the same event id.
Event envelope
Every webhook delivery wraps the resource inside a standard envelope. The top-level fields are consistent across all event types.
{
"id": "ph_evt_9c41e0b27f5a3d18e6b2c7a4e1f0d3b5",
"object": "event",
"api_version": "2026-04-22",
"created": 1751500800,
"type": "customer.updated",
"livemode": true,
"data": {
"object": {
"...": "resource object"
},
"previous_attributes": {
"...": "prior values of changed fields (update events only)"
}
},
"request": {
"id": null,
"idempotency_key": null
}
}| Field | Type | Description |
|---|---|---|
| id | string | Unique event identifier: ph_evt_ followed by 32 lowercase hex characters. Unchanged across automatic retries and replays. |
| object | string | Always "event". |
| type | string | Event type (e.g. payment.succeeded). |
| api_version | string | API version that generated the event (2026-04-22). |
| created | integer | Unix timestamp (seconds) when the event was created. |
| livemode | boolean | Your account's platform mode when the event was created: true in live mode, false in test mode. data.object and its nested objects carry the same value. |
| data.object | object | The resource at the time of the event, in Stripe's object shape. amount, amount_total, unit_amount and similar fields are the local amount in the smallest unit of currency (lowercase ISO), exactly as Stripe sends them. payment_intent, checkout.session, invoice, price and plan objects also carry amount_usd_cents and usd_to_local_currency_rate (1 USD = X currency); refund and dispute objects carry amount_usd_cents. |
| data.previous_attributes | object? | Prior values of changed fields, on update events only. |
| request.id | null | Reserved; currently always null. |
| request.idempotency_key | string | null | The idempotencyKey of the originating POST /v1/payments request, otherwise null. |
Payment events
| Event | Description |
|---|---|
| payment.created | POST /v1/payments created a payment that did not succeed synchronously (data.object.status is processing or canceled), or POST /v1/external-transactions recorded a payment taken on another service. data.object.payment_source is "gateway" or "external"; external_provider names the other service (null for gateway payments). Recorded payments also send payment.succeeded / payment.failed / payment.refunded like gateway payments; a voided one is sent as payment.failed with status canceled and cancellation_reason "void". |
| payment.succeeded | A payment succeeded: POST /v1/payments succeeded synchronously, a hosted checkout payment succeeded (sent alongside checkout.session.completed), or a gateway webhook confirmed a pending payment. |
| payment.failed | A hosted checkout payment was declined, or a gateway webhook reported a pending payment as failed. data.object.status is canceled and data.object.last_payment_error is populated. |
| payment.refunded | A full or partial refund was created via the API, reported by the gateway, or made automatically for a duplicate payment (a second payment for a paid checkout, or for an invoice already paid or voided; its metadata carries duplicateRefund and duplicateOfPaymentId or duplicateOfInvoiceId). See charges.data[0].amount_refunded. |
| payment.disputed | The gateway reported a dispute on the payment. |
| payment.captured | An authorized payment was captured. data.object is the raw payment record (object "payment", camelCase fields), not a payment_intent. |
{
"id": "ph_evt_4d1f8a2c6e0b3d5f7a9c1e2b3f5a7c9e",
"object": "event",
"api_version": "2026-04-22",
"created": 1751500800,
"type": "payment.refunded",
"livemode": true,
"data": {
"object": {
"id": "ph_pay_4c8e1a5d9b3f7c2e6a0d4b8f1c5e9a3d",
"object": "payment_intent",
"amount": 150000,
"amount_received": 150000,
"currency": "inr",
"amount_usd_cents": 1575,
"usd_to_local_currency_rate": 95.2253,
"customer": "ph_cus_8f14e45fceea167a5a36dedd4bea2543",
"status": "succeeded",
"payment_method": "card",
"payment_method_types": [
"card"
],
"latest_charge": "pay_Qx81LmT5vW2zKa",
"charges": {
"object": "list",
"data": [
{
"id": "pay_Qx81LmT5vW2zKa",
"object": "charge",
"amount": 150000,
"amount_captured": 150000,
"amount_refunded": 150000,
"currency": "inr",
"status": "succeeded",
"paid": true,
"refunded": true,
"payment_intent": "ph_pay_4c8e1a5d9b3f7c2e6a0d4b8f1c5e9a3d",
"customer": "ph_cus_8f14e45fceea167a5a36dedd4bea2543"
}
]
},
"last_payment_error": null,
"metadata": {},
"created": 1751500800,
"livemode": true
}
},
"request": {
"id": null,
"idempotency_key": null
}
}Invoice events
| Event | Description |
|---|---|
| invoice.finalized | A draft was issued (sent, POST /v1/invoices/:id/finalize, marked paid, or a quote accepted): data.object.number is its number in your unbroken series (null on every event before this one); status_transitions.finalized_at and effective_at give its issue date and tax_point_date its date of supply (unix seconds). Sent once per invoice. Subscription renewal invoices are issued numbered and do not send it. |
| invoice.created | An invoice was created via POST /v1/invoices, or auto-generated with status paid after a successful subscription renewal charge. |
| invoice.upcoming | Sent a few days before a subscription renews: the draft of the next invoice (base price, add-ons, metered usage so far, one-time items, per-line tax). Not stored; the renewal invoice follows on the renewal date. |
| invoice.paid | An invoice was paid: on its hosted page, by customer credit covering it, by a subscription renewal, or marked paid with POST /v1/invoices/:id/mark-paid. |
| invoice.payment_reminder | A scheduled reminder fired for an invoice sent with POST /v1/invoices/:id/send. |
| invoice.overdue | A sent invoice is still unpaid a set number of days after its due date. Sent once per invoice. |
| invoice.voided | An invoice was voided with POST /v1/invoices/:id/void. data.object.status is void. |
{
"id": "ph_evt_7a3c5e9b1d2f4a6c8e0b2d4f6a8c0e1b",
"object": "event",
"api_version": "2026-04-22",
"created": 1751500800,
"type": "invoice.paid",
"livemode": true,
"data": {
"object": {
"id": "ph_inv_2b4d6f8a0c1e3b5d7f9a2c4e6b8d0f1a",
"object": "invoice",
"customer": "ph_cus_8f14e45fceea167a5a36dedd4bea2543",
"subscription": null,
"number": "INV-0042",
"status": "paid",
"subtotal": 24900,
"total": 24900,
"amount_due": 0,
"amount_paid": 24900,
"amount_remaining": 0,
"currency": "usd",
"amount_usd_cents": 24900,
"usd_to_local_currency_rate": 1,
"paid": true,
"paid_at": 1751500800,
"due_date": 1752710400,
"hosted_invoice_url": "https://paymenthooks.com/invoice/ph_inv_2b4d6f8a0c1e3b5d7f9a2c4e6b8d0f1a-7c1e9a4b2d6f8e0a3c5b7d9f1e2a4c6b8d0f2e4a6c8b0d2f4e6a8c0b2d4f6e8a",
"invoice_pdf": "https://paymenthooks.com/api/v1/hosted-invoices/ph_inv_2b4d6f8a0c1e3b5d7f9a2c4e6b8d0f1a-7c1e9a4b2d6f8e0a3c5b7d9f1e2a4c6b8d0f2e4a6c8b0d2f4e6a8c0b2d4f6e8a/pdf",
"lines": {
"object": "list",
"data": [
{
"object": "line_item",
"description": "Consulting — May",
"quantity": 1,
"amount": 24900,
"currency": "usd"
}
]
},
"metadata": {},
"created": 1751500800,
"livemode": true
}
},
"request": {
"id": null,
"idempotency_key": null
}
}Credit note and balance events
| Event | Description |
|---|---|
| credit_note.created | A credit note was issued against a paid invoice or a payment with POST /v1/credit-notes. |
| credit_note.voided | A credit note was voided. data.object.status is void. |
| customer.balance_transaction.created | A customer's credit balance changed: a manual adjustment (POST /v1/customers/:id/balance-transactions), a credit note credited to the balance, or balance applied to an invoice. |
{
"id": "ph_evt_6c8e0a2b4d3f5a7c9e1b3d5f7a9c2e4b",
"object": "event",
"api_version": "2026-04-22",
"created": 1751500800,
"type": "credit_note.created",
"livemode": true,
"data": {
"object": {
"id": "ph_crn_70efdf2ec9b086079795c442636b55fb",
"object": "credit_note",
"number": "CN-0007-966F",
"customer": "ph_cus_8f14e45fceea167a5a36dedd4bea2543",
"invoice": "ph_inv_2b4d6f8a0c1e3b5d7f9a2c4e6b8d0f1a",
"payment": "ph_pay_4c8e1a5d9b3f7c2e6a0d4b8f1c5e9a3d",
"refund": null,
"outcome": "customer_balance",
"currency": "usd",
"subtotal": 4900,
"total_tax_amounts": [],
"amount": 4900,
"total": 4900,
"amount_usd_cents": 4900,
"usd_to_local_currency_rate": 1,
"reason": "order_change",
"memo": null,
"status": "issued",
"voided_at": null,
"metadata": {},
"created": 1751500800,
"livemode": true
}
},
"request": {
"id": null,
"idempotency_key": null
}
}Subscription events
| Event | Description |
|---|---|
| subscription.created | A subscription was created via POST /v1/subscriptions or a completed subscription-mode checkout (one event per subscription when the checkout bills on several cycles). A subscription with a delayed start (recurring.startsAt) has status trialing and trial_end / current_period_end at its first charge. |
| customer.subscription.created | Stripe's name for subscription.created, sent with it for every subscription a checkout opens: same subscription object. |
| subscription.updated | A subscription was updated (PUT /v1/subscriptions/:id). Includes data.previous_attributes. |
| subscription.cancelled | Sent when a subscription is cancelled via POST /v1/subscriptions/:id/cancel (with previous_attributes) or after dunning retries are exhausted. With cancelAtPeriodEnd: true it is sent twice: immediately with status active, cancel_at_period_end true and canceled_at null, and again when the period ends with status cancelled and canceled_at set. Revoke access on the event whose status is cancelled. |
| subscription.trial_will_end | The trial of a subscription created with a trial (trialEndAt or the price's trial days) ends in 3 days (sooner for a shorter trial). |
| subscription.paused | A subscription was paused. |
| subscription.resumed | A subscription was resumed. |
| subscription.renewed | A renewal succeeded. data.object.latest_payment is the charge ({ id, amount, currency }, amount in the smallest unit of that currency), and amount_charged is what was charged; when a proration credit covered the whole renewal, latest_payment is absent and amount_charged is 0. |
| subscription.renewal_failed | An off-session renewal debit PaymentHooks made failed, or was refused before the gateway was called (failure_code mandate_amount_exceeded, mandate_inactive, mandate_currency_mismatch, plan_limit_reached). data.object.failure_reason and last_payment_error.message carry the reason. The subscription is now past_due and a retry is scheduled (dunning). |
| subscription.renewal_due | A renewal date arrived but PaymentHooks holds no mandate it can debit (no gateway, a gateway without off-session debits, or no authorisation). data.object.reason says which. Collect the payment yourself, e.g. POST /v1/subscriptions/:id/retry. |
| subscription.deleted | Sent with every subscription.cancelled (Stripe's customer.subscription.deleted): same subscription object. |
| mandate.updated | The off-session authorisation PaymentHooks renews with changed status (Stripe Mandate shape: status active | inactive | pending, multi_use.amount = per-debit maximum, ph_status / ph_status_reason with the detail, subscription). |
| payment_method.detached | The customer revoked the mandate at their bank, card network or gateway (Stripe payment_method.detached, Razorpay token.cancelled, Cashfree CANCELLED, PhonePe REVOKED, PayPal vault token deleted). The next renewal is refused with failure_code mandate_inactive until the customer re-authorises on the hosted billing page. |
| subscription.payment_method_updated | The customer set up automatic payments again from a setup link (hosted billing page, a Send setup link email, or POST /v1/subscriptions/:id/setup-session). Nothing was charged for the period and current_period_end did not move. data.object carries subscriptionId, setup_session, mandate, mandate_status (active, or pending while the bank confirms), payment_method, payment_method_label, gateway and replaced_mandates. |
| subscription.renewing_soon | Sent 3 days before a renewal of an active subscription created through checkout. data.object is the raw subscription record plus renewalDate and daysUntil. |
| subscription.retry_created | POST /v1/subscriptions/:id/retry (Retry Payment) opened a checkout for the subscription's overdue period. data.object carries id, sessionId, checkoutUrl, customerId, customerEmail, itemLocalCurrencyAmount and itemLocalCurrency (what the period owes, tax included). Paying it renews the same subscription (subscription.renewed). |
| subscription_schedule.released | A subscription schedule stopped driving its subscription, which keeps renewing on its current price: POST /subscription-schedules/:id/release, or the end of the last phase with endBehavior release. data.object is the schedule (scheduleId, subscriptionId, status RELEASED, currentPhase, phases) plus phaseIndex, releasedAt and releaseReason (released | end_behavior_release). |
{
"id": "ph_evt_2b6d8f0a4c1e3b5d7f9a2c4e6b8d0f1a",
"object": "event",
"api_version": "2026-04-22",
"created": 1751500800,
"type": "subscription.renewed",
"livemode": true,
"data": {
"object": {
"id": "ph_sub_aab3238922bcc25a6f606eb525ffdc56",
"object": "subscription",
"customer": "ph_cus_8f14e45fceea167a5a36dedd4bea2543",
"quantity": 1,
"items": {
"object": "list",
"data": [
{
"id": "si_ph_sub_aab3238922bcc25a6f606eb525ffdc56",
"object": "subscription_item",
"quantity": 1,
"price": {
"id": "ph_pri_c20ad4d76fe97759aa27a0c99bff6710",
"object": "price",
"unit_amount": 4900,
"currency": "usd",
"amount_usd_cents": 4900,
"usd_to_local_currency_rate": 1,
"type": "recurring",
"recurring": {
"interval": "month",
"interval_count": 1,
"usage_type": "licensed"
}
}
}
]
},
"plan": {
"id": "ph_pri_c20ad4d76fe97759aa27a0c99bff6710",
"object": "plan",
"product": "ph_pro_6512bd43d9caa6e02c990b0a82652dca",
"amount": 4900,
"currency": "usd",
"amount_usd_cents": 4900,
"usd_to_local_currency_rate": 1,
"interval": "month",
"interval_count": 1,
"active": true
},
"product": {
"id": "ph_pro_6512bd43d9caa6e02c990b0a82652dca",
"object": "product",
"metadata": {}
},
"cancel_at_period_end": false,
"canceled_at": null,
"currency": "usd",
"metadata": {},
"created": 1751500800,
"livemode": true,
"latest_payment": {
"id": "ph_pay_4f8b2d6a1c3e5f7a9b0d2c4e6f8a1b3d",
"amount": 4900,
"currency": "usd"
},
"amount_charged": 4900
}
},
"request": {
"id": null,
"idempotency_key": null
}
}Entitlement events
| Event | Description |
|---|---|
| entitlements.active_entitlement_summary.updated | A customer's features or limits changed (subscribe, plan change, add-on, override, past due, cancellation). data.object is an entitlement_summary: customer, reason and entitlements (one entitlement_usage per feature). Sent only when the terms actually changed. |
| entitlements.usage_threshold.reached | Usage crossed one of your alert thresholds below 100% (settingsJson.entitlements.alertThresholds, default 75 and 90). threshold says which. Once per customer, feature, period and threshold. |
| entitlements.limit_reached | Usage reached 100% of the maximum. With overage.policy restrict, block the action; with bill, overage now applies. over_limit is true after a downgrade left usage above the new maximum. |
| entitlements.overage.started | The first unit above the maximum on a price that bills overage. overage.unit_amount (local, smallest unit) + currency, amount_usd_cents, usd_to_local_currency_rate, package_size and cap describe the charge. |
| entitlements.overage_cap.reached | Overage reached the price's cap. Further usage is refused (409 ENTITLEMENT_OVERAGE_CAP_REACHED). |
| entitlements.usage.rejected | A usage event was refused; rejection.code is ENTITLEMENT_LIMIT_REACHED, ENTITLEMENT_OVERAGE_CAP_REACHED or NO_ENTITLEMENT. At most once per period and feature, so reconcile your own counter. |
| entitlements.usage_period.closed | A usage period closed at renewal or cancellation, with the final used, limit and overage figures. Reset your counter. |
{
"id": "ph_evt_5a7c9e1b3d2f4a6c8e0b1d3e5f7a9c2b",
"object": "event",
"api_version": "2026-04-22",
"created": 1751500800,
"type": "entitlements.limit_reached",
"livemode": true,
"data": {
"object": {
"object": "entitlement_usage",
"customer": "ph_cus_8f14e45fceea167a5a36dedd4bea2543",
"subscription": "ph_sub_aab3238922bcc25a6f606eb525ffdc56",
"price": "ph_pri_c20ad4d76fe97759aa27a0c99bff6710",
"product": "ph_pro_6512bd43d9caa6e02c990b0a82652dca",
"feature": {
"key": "api_calls",
"name": "API calls",
"type": "metered",
"unit": "calls"
},
"enabled": true,
"limit": 5000,
"used": 5000,
"remaining": 0,
"percent": 100,
"threshold": 100,
"over_limit": false,
"period": {
"start": "2026-11-10T00:00:00.000Z",
"end": "2026-12-10T00:00:00.000Z",
"resets_at": "2026-12-10T00:00:00.000Z"
},
"overage": {
"allowed": true,
"policy": "bill",
"unit_amount": 5000,
"currency": "inr",
"package_size": 1000,
"amount_usd_cents": 53,
"usd_to_local_currency_rate": 93.8665,
"cap": 20000,
"units": 0,
"estimated_amount": 0,
"estimated_amount_usd_cents": 0,
"billed_on": "2026-12-10T00:00:00.000Z"
},
"source": "price"
}
},
"request": {
"id": null,
"idempotency_key": null
}
}Customer events
| Event | Description |
|---|---|
| customer.created | A customer was created. |
| customer.updated | A customer was updated. Includes data.previous_attributes (name, email, phone, status). |
{
"id": "ph_evt_9e1a3c5b7d2f4e6a8c0b1d3f5a7c9e2b",
"object": "event",
"api_version": "2026-04-22",
"created": 1751500800,
"type": "customer.updated",
"livemode": true,
"data": {
"object": {
"id": "ph_cus_8f14e45fceea167a5a36dedd4bea2543",
"object": "customer",
"name": "Jane Doe",
"email": "[email protected]",
"phone": "+14155550123",
"currency": null,
"address": {
"city": null,
"country": "US",
"line1": null,
"line2": null,
"postal_code": null,
"state": null
},
"metadata": {},
"created": 1751500800,
"livemode": true
},
"previous_attributes": {
"name": "Jane Smith",
"email": "[email protected]",
"phone": null,
"status": "active"
}
},
"request": {
"id": null,
"idempotency_key": null
}
}Product events
| Event | Description |
|---|---|
| product.created | A product was created. |
| product.updated | A product was updated. Includes data.previous_attributes. |
| product.deleted | A product was deleted. |
{
"id": "ph_evt_5c7e9a1b3d4f6a8c0e2b4d6f8a1c3e5b",
"object": "event",
"api_version": "2026-04-22",
"created": 1751500800,
"type": "product.created",
"livemode": true,
"data": {
"object": {
"id": "ph_pro_6512bd43d9caa6e02c990b0a82652dca",
"object": "product",
"name": "Enterprise Plan",
"description": "Full-featured enterprise subscription",
"type": "service",
"active": true,
"images": [],
"metadata": {},
"created": 1751500800,
"updated": 1751500800,
"livemode": true
}
},
"request": {
"id": null,
"idempotency_key": null
}
}Price events
| Event | Description |
|---|---|
| price.created | A price was created for a product. |
| price.updated | A price was updated. Includes data.previous_attributes (active, metadata, and any other changed field). |
| price.deleted | A price was deleted. |
{
"id": "ph_evt_1f3b5d7a9c2e4f6b8d0a1c3e5f7b9d2a",
"object": "event",
"api_version": "2026-04-22",
"created": 1751500800,
"type": "price.created",
"livemode": true,
"data": {
"object": {
"id": "ph_pri_c20ad4d76fe97759aa27a0c99bff6710",
"object": "price",
"product": "ph_pro_6512bd43d9caa6e02c990b0a82652dca",
"unit_amount": 150000,
"unit_amount_decimal": "150000",
"currency": "inr",
"amount_usd_cents": 1575,
"usd_to_local_currency_rate": 95.2253,
"active": true,
"type": "recurring",
"recurring": {
"interval": "month",
"interval_count": 1,
"usage_type": "licensed"
},
"metadata": {},
"created": 1751500800,
"livemode": true
}
},
"request": {
"id": null,
"idempotency_key": null
}
}Dispute events
| Event | Description |
|---|---|
| dispute.updated | A dispute was updated via PUT /v1/disputes/:id, or closed at the gateway. data.previous_attributes.status holds the prior status. |
| dispute.closed | The dispute was won or lost (Stripe charge.dispute.closed). data.object.status is won or lost and data.object.payment is the disputed payment after the outcome: status (success or refunded when won, dispute_lost when lost), amount_refunded (includes a lost dispute) and amount_returned in currency, with their _usd_cents and usd_to_local_currency_rate. A closed outcome is final. |
| dispute.evidence_submitted | Evidence was submitted with POST /v1/disputes/:id/evidence. |
{
"id": "ph_evt_8b0d2f4a6c1e3b5d7f9a0c2e4b6d8f1a",
"object": "event",
"api_version": "2026-04-22",
"created": 1751500800,
"type": "dispute.updated",
"livemode": true,
"data": {
"object": {
"id": "ph_dsp_6d0a4e8b2c6f0a4d8e2b6c0f4a8d2e6b",
"object": "dispute",
"amount": 150000,
"currency": "inr",
"amount_usd_cents": 1575,
"reason": "fraudulent",
"status": "under_review",
"payment_intent": "ph_pay_4c8e1a5d9b3f7c2e6a0d4b8f1c5e9a3d",
"charge": "ph_pay_4c8e1a5d9b3f7c2e6a0d4b8f1c5e9a3d",
"evidence_details": {
"due_by": 1752710400,
"submission_count": 0,
"has_evidence": false,
"past_due": false
},
"metadata": {},
"created": 1751500800,
"livemode": true
},
"previous_attributes": {
"status": "open"
}
},
"request": {
"id": null,
"idempotency_key": null
}
}Checkout Session events
| Event | Description |
|---|---|
| checkout.session.created | A checkout session was created. Registered endpoints only. data.object.status is open. |
| checkout.session.completed | The hosted checkout payment succeeded. Sent to registered endpoints and to the session's webhookUrl. data.object has status complete, payment_status paid, payment_intent (the payment id), customer, metadata, success_url, cancel_url, line_items, created and expires_at; for subscription-mode sessions it is sent after the subscriptions are created: subscription is the first one's id and subscriptions lists every subscription the checkout opened, one per billing cycle (id, status, interval, interval_count, starts_at, current_period_end, next_charge_at, amount, currency, items). |
| checkout.session.payment_failed | The hosted checkout payment failed. Sent to registered endpoints and to the session's webhookUrl. data.object.status is open and payment_status unpaid, so the customer can retry. |
| checkout.session.expired | An open session passed expires_at without being paid. Sent once, to registered endpoints and the session's webhookUrl, when the expired session is next accessed (hosted page, public session API or pay request); from then on those return 410 EXPIRED. data.object.status is expired. |
| payment.requires_action | Per-session webhook only: sent to the session's webhookUrl, never to registered endpoints (an endpoint cannot subscribe to it). The customer must complete an authentication step (e.g. 3D Secure) on the hosted page. |
{
"id": "ph_evt_3e5a7c9b1d0f2a4c6e8b0d2f4a6c8e1b",
"object": "event",
"api_version": "2026-04-22",
"created": 1751500800,
"type": "checkout.session.completed",
"livemode": true,
"data": {
"object": {
"id": "ph_cks_9f2c4e1a7b3d5f6081a2b3c4d5e6f708",
"object": "checkout.session",
"payment_status": "paid",
"status": "complete",
"amount_total": 2900,
"amount_subtotal": 2900,
"currency": "usd",
"amount_usd_cents": 2900,
"usd_to_local_currency_rate": 1,
"mode": "subscription",
"customer": "ph_cus_8f14e45fceea167a5a36dedd4bea2543",
"customer_email": "[email protected]",
"customer_details": {
"email": "[email protected]",
"name": "Jane Doe",
"phone": null,
"tax_exempt": "none",
"tax_ids": [],
"address": null
},
"payment_intent": "ph_pay_4c8e1a5d9b3f7c2e6a0d4b8f1c5e9a3d",
"subscription": "ph_sub_aab3238922bcc25a6f606eb525ffdc56",
"success_url": "https://acme-retail.com/billing/success",
"cancel_url": "https://acme-retail.com/billing",
"url": "https://paymenthooks.com/checkout/ph_cks_9f2c4e1a7b3d5f6081a2b3c4d5e6f708",
"line_items": {
"object": "list",
"data": [
{
"id": "li_ph_cks_9f2c4e1a7b3d5f6081a2b3c4d5e6f708_0",
"object": "line_item",
"description": "Pro Plan",
"quantity": 1,
"amount_total": 2900,
"currency": "usd"
}
]
},
"payment_method_types": [
"card"
],
"metadata": {
"priceId": "ph_pri_c20ad4d76fe97759aa27a0c99bff6710",
"captureMethod": "automatic"
},
"created": 1751500800,
"expires_at": 1751587200,
"livemode": true
}
},
"request": {
"id": null,
"idempotency_key": null
}
}Payment Link events
| Event | Description |
|---|---|
| payment_link.created | A payment link was created. data.object.url is the link slug; the shareable URL is https://paymenthooks.com/pay/{slug}. |
{
"id": "ph_evt_6a8c0e2b4d1f3a5c7e9b0d2f4a6c8e1b",
"object": "event",
"api_version": "2026-04-22",
"created": 1751500800,
"type": "payment_link.created",
"livemode": true,
"data": {
"object": {
"id": "ph_plk_9f2e4a6c8b0d1e3f5a7c9b2d4e6f8a0c",
"object": "payment_link",
"active": true,
"url": "ph_plk_9f2e4a6c8b0d1e3f5a7c9b2d4e6f8a0c",
"currency": "usd",
"line_items": {
"object": "list",
"data": [
{
"id": "pli_ph_plk_9f2e4a6c8b0d1e3f5a7c9b2d4e6f8a0c_0",
"object": "line_item",
"description": "Workshop ticket",
"quantity": 1,
"amount_total": 2500,
"currency": "usd"
}
]
},
"metadata": {},
"created": 1751500800,
"livemode": true
}
},
"request": {
"id": null,
"idempotency_key": null
}
}Gateway events
| Event | Description |
|---|---|
| gateway.disconnected | A gateway connection was removed from your account. data.object.id is the connection id; data.object.gateway is the catalog gateway id. |
{
"id": "ph_evt_0c2e4a6b8d1f3b5d7a9c0e2b4d6f8a1c",
"object": "event",
"api_version": "2026-04-22",
"created": 1751500800,
"type": "gateway.disconnected",
"livemode": true,
"data": {
"object": {
"id": "ph_gwc_98f13708210194c475687be6106a3b84",
"object": "gateway",
"gateway": "gw_razorpay",
"display_name": "Razorpay",
"provider": "Razorpay",
"status": "disconnected",
"mode": "live",
"livemode": true,
"created": 1751500800,
"metadata": {}
}
},
"request": {
"id": null,
"idempotency_key": null
}
}Custom domain events
| Event | Description |
|---|---|
| custom_domain.verified | DNS ownership verified; the domain is being connected. |
| custom_domain.active | The custom domain is live (status active, or active_external_ssl when you bring your own certificate). |
| custom_domain.ssl_failed | Let's Encrypt could not issue a certificate. Check data.object.status and retry. |
| custom_domain.dns_lost | DNS no longer points to PaymentHooks; the domain stopped serving. |
{
"id": "ph_evt_3c1f9a0b7e2d4f6a8c0b1d2e4f6a8c0d",
"object": "event",
"api_version": "2026-04-22",
"created": 1751500800,
"type": "custom_domain.active",
"livemode": true,
"data": {
"object": {
"id": "ph_cdm_8e2c6a0f4b8d2e6a0c4f8b2d6e0a4c8f",
"object": "custom_domain",
"metadata": {},
"hostname": "checkout.acmestore.com",
"status": "active"
}
},
"request": {
"id": null,
"idempotency_key": null
}
}Notification events
| Event | Description |
|---|---|
| notification.triggered | PaymentHooks sent, or would have sent, a notification of a group you turned on under Settings > Notifications > Webhooks, so you can deliver it through your own systems. Sent once per notification (not per recipient), whether or not the email itself is switched on. data.object.code is the template code, data.object.preference the group, data.object.recipients the email addresses, and data.object.placeholders the exact values the email was rendered with. data.object.id is stable: use it to de-duplicate. Test sends never produce this event. |
{
"id": "ph_evt_7b9d1f3a5c0e2b4d6f8a1c3e5b7d9f0a",
"object": "event",
"api_version": "2026-04-22",
"created": 1751500800,
"type": "notification.triggered",
"livemode": true,
"data": {
"object": {
"id": "ph_cml_2f6b0d4a8e2c6f0b4d8a2e6c0f4b8d2a",
"object": "notification",
"code": "payment_receipt",
"category": "customer",
"preference": "paymentReceipt",
"recipients": [
"[email protected]"
],
"subject": "Receipt RCPT-1042 from Acme Store",
"placeholders": {
"customer_name": "Asha",
"customer_email": "[email protected]",
"amount": "₹1,180.00",
"receipt_number": "RCPT-1042",
"payment_id": "ph_pay_4c8e1a5d9b3f7c2e6a0d4b8f1c5e9a3d",
"company_name": "Acme Store"
},
"related": {
"paymentId": "ph_pay_4c8e1a5d9b3f7c2e6a0d4b8f1c5e9a3d"
},
"customerId": "ph_cus_8f14e45fceea167a5a36dedd4bea2543",
"metadata": {},
"livemode": true
}
},
"request": {
"id": null,
"idempotency_key": null
}
}Alert events
| Event | Description |
|---|---|
| alert.triggered | One of your alert rules with the Webhook channel fired (Settings > Notifications > Alert Rules, or /v1/notifications/alert-rules). Sent once per firing: an amount rule fires once per occurrence of its event, a count rule at most once per rule per clock hour. data.object.id is the firing id: use it to de-duplicate. data.object.alertEvent is the rule's event, data.object.condition the rule's condition (unit usd_cents for amount, events for count), data.object.observedValue what was observed (USD cents, or the number of events in the last hour), data.object.objectId the payment, refund, payout, invoice or subscription, and data.object.localCurrency / localCurrencyAmount the same amount in the object's own currency when it has one. |
{
"id": "ph_evt_2d4f6a8c0e1b3d5f7a9c2e4b6d8f0a1c",
"object": "event",
"api_version": "2026-04-22",
"created": 1751500800,
"type": "alert.triggered",
"livemode": true,
"data": {
"object": {
"id": "ph_arf_9a3d7b1e5c9f3a7d1b5e9c3f7a1d5b9e",
"object": "alert",
"ruleId": "ph_alr_4c9e1a7b3d5f2e8a6c0b9d1f3e5a7c2b",
"ruleName": "High-value payment",
"alertEvent": "payment.succeeded",
"condition": {
"field": "amount",
"operator": "gt",
"value": 100000,
"unit": "usd_cents"
},
"observedValue": 157500,
"objectId": "ph_pay_4c8e1a5d9b3f7c2e6a0d4b8f1c5e9a3d",
"amountUsdCents": 157500,
"localCurrency": "INR",
"localCurrencyAmount": 15000000,
"sourceEventType": "payment.succeeded",
"sourceEventId": "ph_evt_9c41e0b27f5a3d18e6b2c7a4e1f0d3b5",
"triggeredAt": "2026-07-03T00:00:00.000Z",
"metadata": {},
"livemode": true
}
},
"request": {
"id": null,
"idempotency_key": null
}
}Scheduler events
| Event | Description |
|---|---|
| eventhook.<job type> | Mirror of a scheduled job as it runs, e.g. eventhook.subscription.renewal, eventhook.subscription.renewing_soon, eventhook.invoice.payment_reminder. data.object is the raw job payload; prefer the typed events above. Platform-internal jobs (webhook retries, currency refresh) are not mirrored. |
{
"id": "ph_evt_5e7a9c1b3d0f2a4c6e8b1d3f5a7c9e0b",
"object": "event",
"api_version": "2026-04-22",
"created": 1751500800,
"type": "eventhook.subscription.renewal",
"livemode": true,
"data": {
"object": {
"id": "unknown",
"object": "eventhook",
"metadata": {},
"eventType": "subscription.renewal",
"merchantId": "ph_mrc_6b1e0d9c2a7f48e3b5c1d0a9e8f7b6c5",
"subscriptionId": "ph_sub_aab3238922bcc25a6f606eb525ffdc56",
"customerId": "ph_cus_8f14e45fceea167a5a36dedd4bea2543",
"itemLocalCurrencyAmount": 4900,
"itemLocalCurrency": "USD",
"renewalDate": "2026-07-03T00:00:00.000Z",
"interval": "month",
"intervalCount": 1
}
},
"request": {
"id": null,
"idempotency_key": null
}
}