Skip to Content
Paycose Docs
Webhook endpoints

Webhook endpoints

The webhook_endpoint object

A webhook endpoint is an HTTPS URL of yours that Paycose sends events to as they happen, for example when a charge is paid. Each delivery is a POST of an event object, signed with the endpoint's secret in the Paycose-Signature header.

Attributes

  • idstringRequired

    Unique identifier for the object.

  • objectstringRequired

    String naming the object's type.

  • livemodebooleanRequired

    true when the object exists in live mode, false in test mode.

  • createdtimestampRequired

    Time the object was created, in Unix seconds.

  • updatedtimestampRequired

    Time the object last changed, in Unix seconds.

  • urlstringRequired

    HTTPS URL that receives the events.

  • descriptionstringRequired

    Your description of the endpoint. Empty when none was given.

  • enabled_eventsarray of stringsRequired

    Events sent to this endpoint; * means every event.

    Show 106 possible values
    • charge.created

      A charge was created.

    • charge.updated

      A charge was updated.

    • charge.paid

      A charge became paid. Sent once per charge.

    • charge.captured

      A charge that was not captured became captured. Not sent for a charge already captured when it was created.

    • charge.canceled

      A charge was canceled before it was paid.

    • charge.failed

      The provider declined a charge. Sent instead of charge.canceled, as Stripe sends it.

    • charge.expired

      A charge was canceled because it expired before it was paid.

    • charge.requires_action

      A charge needs the customer to complete an action, such as 3-D Secure, before it can be paid.

    • charge.refunded

      A charge was refunded, in full or in part.

    • review.opened

      Radar or the merchant opened a review of a payment.

    • review.closed

      A review was closed as approved, refunded, refunded as fraud, disputed or canceled.

    • radar.early_fraud_warning.created

      An issuer reported a charge as fraudulent before any dispute.

    • radar.early_fraud_warning.updated

      An early fraud warning changed, for example it is no longer actionable.

    • charge.dispute.created

      A dispute was opened on a charge.

    • charge.dispute.updated

      A dispute was updated.

    • charge.dispute.closed

      A dispute was closed, won or lost.

    • charge.dispute.funds_withdrawn

      Funds were withdrawn from your balance because of a dispute.

    • charge.dispute.funds_reinstated

      Funds withdrawn for a dispute were returned to your balance.

    • payment_intent.succeeded

      A payment intent succeeded. Sent once per intent.

    • payment_intent.canceled

      A payment intent was canceled, through the API, by expiry, or by the provider. Sent once per intent.

    • checkout.session.completed

      A Checkout Session was completed.

    • payment_intent.payment_failed

      A payment attempt on a payment intent failed and the intent is back in requires_payment_method; its last_payment_error says why. Sent once per failed attempt.

    • payment_link.created

      A payment link was created.

    • payment_link.updated

      A payment link was updated, including when it turns itself off after reaching its restrictions completion limit.

    • checkout.session.expired

      A Checkout Session expired before it was completed.

    • refund.created

      A refund was created.

    • refund.updated

      A refund was updated, for example its status changed.

    • refund.failed

      A refund failed.

    • customer.created

      A customer was created.

    • customer.updated

      A customer was updated.

    • customer.deleted

      A customer was deleted. The event carries the customer as it was before.

    • customer.tax_id.created

      A tax ID was added to a customer.

    • customer.tax_id.updated

      A customer's tax ID was updated.

    • customer.tax_id.deleted

      A tax ID was removed from a customer.

    • payment_method.created

      A payment method was saved.

    • payment_method.updated

      A payment method was updated.

    • payment_method.deleted

      A payment method was deleted.

    • bank_account.created

      A bank account was added.

    • bank_account.deleted

      A bank account was deleted. The event carries the bank account as it was before.

    • invoice.created

      An invoice was created.

    • invoice.updated

      An invoice was updated.

    • invoice.finalized

      A draft invoice was finalized.

    • invoice.finalization_failed

      The provider hosting an invoice could not finalize it.

    • invoice.sent

      An invoice was sent to the customer.

    • invoice.paid

      An invoice was paid.

    • invoice.payment_failed

      A payment attempt on an invoice failed.

    • invoice.payment_action_required

      An invoice payment needs the customer to complete an action, such as 3-D Secure. Sent together with invoice.payment_failed.

    • invoice.overdue

      An invoice is past its due date and still unpaid.

    • invoice.uncollectible

      An invoice was marked uncollectible.

    • invoice.void

      An invoice was voided.

    • invoice.creditnote.updated

      An invoice's totals changed because of a credit note.

    • credit_note.created

      A credit note was created.

    • credit_note.issued

      A credit note was issued and now counts against its invoice.

    • credit_note.applied

      A credit note covered everything still due on its invoice, so the invoice was marked paid.

    • credit_note.voided

      A credit note was voided. Sent once; replaces the retired credit_note.canceled.

    • credit_note.updated

      A credit note was updated at its hosting provider.

    • subscription.created

      A subscription was created.

    • subscription.updated

      A subscription was updated, including a change of status.

    • subscription.paused

      A subscription was paused.

    • subscription.resumed

      A paused subscription was resumed.

    • subscription.canceled

      A subscription was canceled.

    • subscription.trial_will_end

      A subscription's trial period is about to end.

    • subscription_schedule.created

      A subscription schedule was created.

    • subscription_schedule.updated

      A subscription schedule was updated.

    • subscription_schedule.canceled

      A subscription schedule was canceled.

    • subscription_schedule.completed

      A subscription schedule finished.

    • subscription_schedule.released

      A subscription schedule was released; its subscription continues without it.

    • subscription_schedule.expiring

      A subscription schedule is about to end.

    • subscription_schedule.aborted

      A subscription schedule was aborted.

    • quote.created

      A quote was created.

    • quote.finalized

      A quote was finalized.

    • quote.accepted

      A quote was accepted.

    • quote.canceled

      A quote was canceled.

    • product.created

      A product was created.

    • product.updated

      A product was updated.

    • product.deleted

      A product was deleted.

    • price.created

      A price was created.

    • price.updated

      A price was updated.

    • price.deleted

      A price was deleted.

    • coupon.created

      A coupon was created.

    • coupon.updated

      A coupon was updated.

    • coupon.deleted

      A coupon was deleted.

    • promotion_code.created

      A promotion code was created.

    • promotion_code.updated

      A promotion code was updated.

    • promotion_code.deleted

      A promotion code was deleted.

    • shipping_rate.created

      A shipping rate was created.

    • shipping_rate.updated

      A shipping rate was updated.

    • shipping_rate.deleted

      A shipping rate was deleted.

    • tax_rate.created

      A tax rate was created.

    • tax_rate.updated

      A tax rate was updated.

    • billing_portal.configuration.created

      A billing portal configuration was created.

    • billing_portal.configuration.updated

      A billing portal configuration was updated.

    • billing_portal.session.created

      A billing portal session was created.

    • payout.created

      A payout was created.

    • payout.approved

      A payout was approved. Sent on every approval.

    • payout.pending

      The payout provider accepted a payout's transfer, or the payout was approved to be paid by hand; it is waiting to be sent.

    • payout.sent

      The payout provider reported a payout's money sent to the bank. Sent once; a payout never reported sent gets it just before payout.paid.

    • payout.paid

      A payout's money arrived, or the payout was confirmed paid.

    • payout.canceled

      A payout was canceled or rejected; its money returns to your balance.

    • payout.failed

      A payout failed; its money returns to your balance.

    • application_fee.created

      An application fee was taken when a connected account's charge settled.

    • application_fee.refunded

      An application fee was refunded, in full or in part.

    • application_fee.refund.updated

      A refund of an application fee was updated.

    • provider.credentials_invalid

      A payment provider rejected the credentials of one of your provider connections, so it can't be used until they are fixed.

    • provider.credentials_restored

      Credentials that were rejected work again.

    • *

      Every event in this list.

  • secretstring

    Signing secret of the endpoint. Verify each delivery with its Paycose-Signature header, t=<unix seconds>,v1=<hex>: v1 is the hex-encoded HMAC-SHA256, keyed with this secret, of t, a . and the raw request body, and t is when that attempt was sent, so every retry and resend is signed afresh. The X-Webhook-Signature header, the HMAC-SHA256 of the raw body alone, is still sent for existing integrations, but it does not cover any time, so it cannot tell a replayed delivery from a new one. Returned only when you create the endpoint or rotate its secret; omitted otherwise.

  • timestamp_tolerance_secintegerRequired

    How many seconds old the t of a delivery's Paycose-Signature may be before your endpoint should reject it as a replay; check it after v1 verifies. Paycose records the value for your own checks; it defaults to 300. Do not age-check X-Webhook-Timestamp: it is when the event happened, the same on every retry and resend, and it is not signed.

  • statusenumRequired

    Whether events are delivered: active and enabled both receive events, disabled receives none.

    • active

      The endpoint receives events. New endpoints start here.

    • enabled

      The endpoint receives events, the same as active.

    • disabled

      No events are sent to the endpoint.

  • providerstringRequired

    Always internal for endpoints you create.

  • metadataobjectRequired

    Key-value pairs for your own use, set when the endpoint is created. An update merges the metadata it sends: each key is set, and a key sent as an empty string or null is removed.

  • api_versionstringRequired

    The API version the endpoint receives events in, as Stripe's event object (id, object, type, created, api_version, livemode, data.object) with data.object shaped as that version answers. 2026-11-01 is the only version today.