Skip to Content
Paycose Docs
Events

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

  • idstringRequired

    Unique identifier of the event (evt_…), the same on every endpoint the event is delivered to.

  • objectstringRequired

    Always event.

  • api_versionstringRequired

    API version data.object is shaped in: the version of the request that retrieved the event, or the version the receiving webhook endpoint is pinned to. 2026-11-01 is the only version today.

  • createdtimestampRequired

    Time the event happened, in Unix seconds.

  • dataobjectRequired

    The object the event is about.

    Show child attributes
    • data.objectanyRequired

      The object as it was when the event happened, such as the invoice for an invoice.paid event, shaped as the event's api_version answers it.

  • livemodebooleanRequired

    true when the event happened in live mode, false in test mode.

  • typestringRequired

    Type of the event, e.g. invoice.paid.