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
| Field | Type | Description |
|---|---|---|
event_type | string | The event type, in the format resource.action (e.g. payout.created, payment_charge.succeeded). |
account_id | string | The ID of the account this event belongs to. |
date_occurred | string | ISO 8601 timestamp of when the event occurred. |
description | string | null | Optional human-readable description of the event. |
changes | object | null | Present on update events, describing what changed. null for create and delete events. |
deleted_entity | object | null | Present on delete events, containing the deleted resource. null otherwise. |
data | object | The resource object associated with the event. |
Signature headers
Every request KingsPay sends to your endpoint includes two headers used to verify authenticity:
| Header | Description |
|---|---|
mataqa-timestamp | Unix timestamp of when the request was sent. |
mataqa-signature | HMAC-SHA256 signature computed over {timestamp}.{raw_body} using your webhook secret. |
For details on how to verify these headers, see Handling Events.