Skip to Content
KingsPay Docs
Events

Event Structure

Every event delivered to your webhook endpoint shares the same top-level structure, regardless of the resource or event type.

Payload

{
  "event_type": "payout.created",
  "account_id": "0199c215-92ee-73f0-988a-9f243a90046a",
  "date_occurred": "2026-03-08T12:34:21.5212076Z",
  "description": null,
  "changes": null,
  "deleted_entity": null,
  "data": { }
}

The data field contains the full resource object for the event. Its shape depends on the event type — see the relevant resource section for the specific fields.

Top-level fields

FieldTypeDescription
event_typestringThe event type, in the format resource.action (e.g. payout.created, payment_charge.succeeded).
account_idstringThe ID of the account this event belongs to.
date_occurredstringISO 8601 timestamp of when the event occurred.
descriptionstring | nullOptional human-readable description of the event.
changesobject | nullPresent on update events, describing what changed. null for create and delete events.
deleted_entityobject | nullPresent on delete events, containing the deleted resource. null otherwise.
dataobjectThe resource object associated with the event.

Signature headers

Every request KingsPay sends to your endpoint includes two headers used to verify authenticity:

HeaderDescription
mataqa-timestampUnix timestamp of when the request was sent.
mataqa-signatureHMAC-SHA256 signature computed over {timestamp}.{raw_body} using your webhook secret.

For details on how to verify these headers, see Handling Events.

On this page