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
idstringRequiredUnique identifier for the object.
objectstringRequiredString naming the object's type.
livemodebooleanRequiredtruewhen the object exists in live mode,falsein test mode.createdtimestampRequiredTime the object was created, in Unix seconds.
updatedtimestampRequiredTime the object last changed, in Unix seconds.
urlstringRequiredHTTPS URL that receives the events.
descriptionstringRequiredYour description of the endpoint. Empty when none was given.
enabled_eventsarray of stringsRequiredEvents sent to this endpoint;
*means every event.Show 106 possible values
charge.createdA charge was created.
charge.updatedA charge was updated.
charge.paidA charge became paid. Sent once per charge.
charge.capturedA charge that was not captured became captured. Not sent for a charge already captured when it was created.
charge.canceledA charge was canceled before it was paid.
charge.failedThe provider declined a charge. Sent instead of
charge.canceled, as Stripe sends it.charge.expiredA charge was canceled because it expired before it was paid.
charge.requires_actionA charge needs the customer to complete an action, such as 3-D Secure, before it can be paid.
charge.refundedA charge was refunded, in full or in part.
review.openedRadar or the merchant opened a review of a payment.
review.closedA review was closed as approved, refunded, refunded as fraud, disputed or canceled.
radar.early_fraud_warning.createdAn issuer reported a charge as fraudulent before any dispute.
radar.early_fraud_warning.updatedAn early fraud warning changed, for example it is no longer actionable.
charge.dispute.createdA dispute was opened on a charge.
charge.dispute.updatedA dispute was updated.
charge.dispute.closedA dispute was closed, won or lost.
charge.dispute.funds_withdrawnFunds were withdrawn from your balance because of a dispute.
charge.dispute.funds_reinstatedFunds withdrawn for a dispute were returned to your balance.
payment_intent.succeededA payment intent succeeded. Sent once per intent.
payment_intent.canceledA payment intent was canceled, through the API, by expiry, or by the provider. Sent once per intent.
checkout.session.completedA Checkout Session was completed.
payment_intent.payment_failedA payment attempt on a payment intent failed and the intent is back in
requires_payment_method; itslast_payment_errorsays why. Sent once per failed attempt.payment_link.createdA payment link was created.
payment_link.updatedA payment link was updated, including when it turns itself off after reaching its
restrictionscompletion limit.checkout.session.expiredA Checkout Session expired before it was completed.
refund.createdA refund was created.
refund.updatedA refund was updated, for example its status changed.
refund.failedA refund failed.
customer.createdA customer was created.
customer.updatedA customer was updated.
customer.deletedA customer was deleted. The event carries the customer as it was before.
customer.tax_id.createdA tax ID was added to a customer.
customer.tax_id.updatedA customer's tax ID was updated.
customer.tax_id.deletedA tax ID was removed from a customer.
payment_method.createdA payment method was saved.
payment_method.updatedA payment method was updated.
payment_method.deletedA payment method was deleted.
bank_account.createdA bank account was added.
bank_account.deletedA bank account was deleted. The event carries the bank account as it was before.
invoice.createdAn invoice was created.
invoice.updatedAn invoice was updated.
invoice.finalizedA draft invoice was finalized.
invoice.finalization_failedThe provider hosting an invoice could not finalize it.
invoice.sentAn invoice was sent to the customer.
invoice.paidAn invoice was paid.
invoice.payment_failedA payment attempt on an invoice failed.
invoice.payment_action_requiredAn invoice payment needs the customer to complete an action, such as 3-D Secure. Sent together with
invoice.payment_failed.invoice.overdueAn invoice is past its due date and still unpaid.
invoice.uncollectibleAn invoice was marked uncollectible.
invoice.voidAn invoice was voided.
invoice.creditnote.updatedAn invoice's totals changed because of a credit note.
credit_note.createdA credit note was created.
credit_note.issuedA credit note was issued and now counts against its invoice.
credit_note.appliedA credit note covered everything still due on its invoice, so the invoice was marked paid.
credit_note.voidedA credit note was voided. Sent once; replaces the retired
credit_note.canceled.credit_note.updatedA credit note was updated at its hosting provider.
subscription.createdA subscription was created.
subscription.updatedA subscription was updated, including a change of status.
subscription.pausedA subscription was paused.
subscription.resumedA paused subscription was resumed.
subscription.canceledA subscription was canceled.
subscription.trial_will_endA subscription's trial period is about to end.
subscription_schedule.createdA subscription schedule was created.
subscription_schedule.updatedA subscription schedule was updated.
subscription_schedule.canceledA subscription schedule was canceled.
subscription_schedule.completedA subscription schedule finished.
subscription_schedule.releasedA subscription schedule was released; its subscription continues without it.
subscription_schedule.expiringA subscription schedule is about to end.
subscription_schedule.abortedA subscription schedule was aborted.
quote.createdA quote was created.
quote.finalizedA quote was finalized.
quote.acceptedA quote was accepted.
quote.canceledA quote was canceled.
product.createdA product was created.
product.updatedA product was updated.
product.deletedA product was deleted.
price.createdA price was created.
price.updatedA price was updated.
price.deletedA price was deleted.
coupon.createdA coupon was created.
coupon.updatedA coupon was updated.
coupon.deletedA coupon was deleted.
promotion_code.createdA promotion code was created.
promotion_code.updatedA promotion code was updated.
promotion_code.deletedA promotion code was deleted.
shipping_rate.createdA shipping rate was created.
shipping_rate.updatedA shipping rate was updated.
shipping_rate.deletedA shipping rate was deleted.
tax_rate.createdA tax rate was created.
tax_rate.updatedA tax rate was updated.
billing_portal.configuration.createdA billing portal configuration was created.
billing_portal.configuration.updatedA billing portal configuration was updated.
billing_portal.session.createdA billing portal session was created.
payout.createdA payout was created.
payout.approvedA payout was approved. Sent on every approval.
payout.pendingThe payout provider accepted a payout's transfer, or the payout was approved to be paid by hand; it is waiting to be sent.
payout.sentThe 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.paidA payout's money arrived, or the payout was confirmed paid.
payout.canceledA payout was canceled or rejected; its money returns to your balance.
payout.failedA payout failed; its money returns to your balance.
application_fee.createdAn application fee was taken when a connected account's charge settled.
application_fee.refundedAn application fee was refunded, in full or in part.
application_fee.refund.updatedA refund of an application fee was updated.
provider.credentials_invalidA payment provider rejected the credentials of one of your provider connections, so it can't be used until they are fixed.
provider.credentials_restoredCredentials that were rejected work again.
*Every event in this list.
secretstringSigning secret of the endpoint. Verify each delivery with its
Paycose-Signatureheader,t=<unix seconds>,v1=<hex>:v1is the hex-encoded HMAC-SHA256, keyed with this secret, oft, a.and the raw request body, andtis when that attempt was sent, so every retry and resend is signed afresh. TheX-Webhook-Signatureheader, 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_secintegerRequiredHow many seconds old the
tof a delivery'sPaycose-Signaturemay be before your endpoint should reject it as a replay; check it afterv1verifies. Paycose records the value for your own checks; it defaults to300. Do not age-checkX-Webhook-Timestamp: it is when the event happened, the same on every retry and resend, and it is not signed.statusenumRequiredWhether events are delivered:
activeandenabledboth receive events,disabledreceives none.activeThe endpoint receives events. New endpoints start here.
enabledThe endpoint receives events, the same as
active.disabledNo events are sent to the endpoint.
providerstringRequiredAlways
internalfor endpoints you create.metadataobjectRequiredKey-value pairs for your own use, set when the endpoint is created. An update merges the
metadatait sends: each key is set, and a key sent as an empty string or null is removed.api_versionstringRequiredThe API version the endpoint receives events in, as Stripe's
eventobject (id,object,type,created,api_version,livemode,data.object) withdata.objectshaped as that version answers.2026-11-01is the only version today.