Events
The event object
Something that happened in your account, such as an invoice being paid. Paycose records every event, whether or not you have a webhook endpoint, and keeps it for 30 days. Every webhook delivery of an event carries the same id, so you can ignore an event you have already handled. The event is the exact body your webhook endpoints receive.
Attributes
idstringRequiredUnique identifier of the event (
evt_…), the same on every endpoint the event is delivered to.objectstringRequiredAlways
event.api_versionstringRequiredAPI version
data.objectis shaped in: the version of the request that retrieved the event, or the version the receiving webhook endpoint is pinned to.2026-11-01is the only version today.createdtimestampRequiredTime the event happened, in Unix seconds.
dataobjectRequiredThe object the event is about.
Show child attributes
data.objectanyRequiredThe object as it was when the event happened, such as the invoice for an
invoice.paidevent, shaped as the event'sapi_versionanswers it.
livemodebooleanRequiredtruewhen the event happened in live mode,falsein test mode.typestringRequiredType of the event, e.g.
invoice.paid.