Lewati ke konten utama
  • Beta Webhook ke sistem Anda sendiri

Webhook events

XQUARE sends events to the endpoints you add on the Connections page of the vendor panel, or with /v1/webhook-endpoints. Each endpoint receives only the events you pick for it. To check that a delivery really came from XQUARE, see Receive and verify webhooks.

Envelope​

Every event has the same outer shape:

{
"id": "evt_…",
"type": "voucher.redeemed",
"api_version": "2026-10-08",
"created_at": "2026-10-20T09:12:44.000Z",
"space_id": "…",
"data": { }
}
FieldMeaning
idUnique per event and the same on every retry. Use it to deduplicate.
typeOne of the events below. The X-XQ-Event header has the same value.
api_versionThe payload version of this event type. A breaking change ships under a new version.
created_atWhen the event happened: UTC, ISO 8601 with milliseconds
space_idYour Space
dataThe event's details

Payloads carry no customer personal data. XQUARE refuses to send an event whose data holds customer contact details.

Events​

EventWhen
voucher.issuedA voucher was issued
voucher.redeemedA voucher was redeemed
voucher.exhaustedA voucher reached its redemption limit
voucher.expiredA voucher passed its end date (sent by a nightly run)
voucher.voidedA voucher was voided
sponsor.package.purchasedA sponsor package was purchased
sponsor.package.expiredA sponsor package ended
sponsor.redemption.createdA perk from a sponsor package was redeemed
event.ticket.checked_inA ticket was checked in
api_key.revokedOne of your API keys was revoked
credits.balance_lowYour credit balance fell below its alert threshold
credits.daily_summaryYour credit usage for the previous day (sent by a nightly run)
webhook.testA test ping sent from the Connections page. You do not subscribe to it
v1 — expanding

The fields inside data for each event are not listed here yet. Read the fields you need defensively, and ignore fields you do not know: new fields can be added without a new api_version.

Not yet available​

  • A customer reference in voucher events. A pseudonymous customer_ref is under legal review and is not sent today.