Structure

The webhooks JSON payload has always the same fields structure.

  • id - unique id for the event in the Betterez Webhooks Platform. If there are more than one subscriber for the same webhook they will receive equal ids).
  • attemptId - unique id for the posting webhook action. It will be totally unique, no matter if there are more than one subscriber for the same webhook.
  • livemode - set in false for test purposes, always true.
  • created - the utc time when the webhook was emitted.
  • event - the event name, i.e: transaction.completed.
  • data - the data for the event ocurred.
{
  "id": "string",
  "attemptId": "string",
  "livemode": "boolean",
  "created": "int",
  "event": "string",
  "data": {
    ...
  }
}