Jetron TicketFluid

Event types

The payloads Jetron sends, and the fields on each one.

Every delivery shares the same envelope. Discriminate on eventType:

interface JetronWebhookEvent {
  eventType: 'TICKET_PURCHASED' | 'ADDON_PURCHASED' | 'WEBHOOK_TEST'
  data: Record<string, unknown>
}

Every event goes to the same URLs. Answer 2xx for an eventType you don't handle, so the delivery is not retried.

TICKET_PURCHASED

Sent when an attendee buys tickets, with or without add-ons.

{
  "eventType": "TICKET_PURCHASED",
  "data": {
    "eventId": "3f8a1c62-9d47-4b1e-9c2a-7e5f0b6d8a11",
    "reference": "jt_txn_01H9Z4K8",
    "amount": 700000,
    "formattedAmount": "NGN 7,000",
    "discount": 500,
    "formattedDiscount": "NGN 5",
    "paidAt": "2026-08-05T12:00:00Z",
    "sentAt": "2026-08-05T12:00:01Z",
    "orders": [
      {
        "sku": "8c1d5e90-2f3b-4a7c-8e6d-1b9f4c2a7d35",
        "amount": 500000,
        "formattedAmount": "NGN 5,000",
        "quantity": 1,
        "customer": {
          "email": "kendall@example.com",
          "firstName": "Kendall",
          "lastName": "Roy",
          "phone": "+2348012345678"
        }
      }
    ],
    "addons": [
      {
        "addonId": "d2a7b4c8-61f5-4f0e-8b39-5c0e9a1d7f24",
        "name": "Parking",
        "amount": 200000,
        "formattedAmount": "NGN 2,000",
        "quantity": 1,
        "customer": {
          "email": "kendall@example.com",
          "firstName": "Kendall",
          "lastName": "Roy"
        }
      }
    ],
    "metadata": { "seatPreference": "front" }
  }
}

data

Prop

Type

orders[]

Prop

Type

There is one entry per recipient, so a cart that assigns tickets to several email addresses arrives as several orders entries with quantity: 1 rather than one entry with a higher quantity.

addons[]

Prop

Type

There is one entry per add-on.

Use sentAt, not paidAt

paidAt can be the zero timestamp "0001-01-01T00:00:00Z", on free and paid orders alike. sentAt is always a real date.

ADDON_PURCHASED

Sent instead of TICKET_PURCHASED when an attendee buys add-ons on their own.

{
  "eventType": "ADDON_PURCHASED",
  "data": {
    "eventId": "3f8a1c62-9d47-4b1e-9c2a-7e5f0b6d8a11",
    "reference": "jt_txn_01H9Z7M2",
    "amount": 200000,
    "formattedAmount": "NGN 2,000",
    "paidAt": "2026-08-06T09:30:00Z",
    "sentAt": "2026-08-06T09:30:01Z",
    "addons": [
      {
        "addonId": "d2a7b4c8-61f5-4f0e-8b39-5c0e9a1d7f24",
        "name": "Parking",
        "amount": 200000,
        "formattedAmount": "NGN 2,000",
        "quantity": 1,
        "customer": {
          "email": "kendall@example.com",
          "firstName": "Kendall",
          "lastName": "Roy"
        }
      }
    ],
    "metadata": { "seatPreference": "front" }
  }
}

Prop

Type

There are no orders, discount or formattedDiscount.

Check eventType before reading data.orders

A handler that expects data.orders on every delivery will crash on ADDON_PURCHASED. Handle it even if your site does not sell add-ons on their own: like TICKET_PURCHASED, it is sent wherever the purchase was made.

WEBHOOK_TEST

Sent only when you press Test in the dashboard. It confirms that your endpoint is reachable and that your signature verification works, before real money is involved.

{
  "eventType": "WEBHOOK_TEST",
  "data": {
    "message": "This is a test webhook from Jetron.",
    "reference": "test_ref_1754395200",
    "sentAt": "2026-08-05T12:00:00Z"
  }
}

The test payload is a different shape

WEBHOOK_TEST carries only message, reference, and sentAt. It does not include orders, amount, or metadata. If your handler is typed against TICKET_PURCHASED and reads data.orders without checking eventType first, a test delivery will crash it.

Test deliveries are never retried, so a failing test shows up as a single attempt.

Metadata

Anything you pass as metadata when creating an order is returned here untouched, which is the simplest way to correlate a purchase with something in your own system:

await client.createOrder(slug, {
  // ...
  metadata: { cartId: 'abc123', source: 'newsletter' },
}, { deviceId })
"metadata": { "cartId": "abc123", "source": "newsletter" }

It must be a JSON object rather than a scalar or array, and is capped at 4096 bytes.

Metadata is not proof of anything

The signature proves Jetron sent the delivery, not who wrote the metadata. Your public key is visible in the browser, so a buyer can create an order with any metadata they like. Use it as a hint, and check it against reference, amount and what was bought before you act on it. To rely on an ID, store it on your server with the order's reference instead.

On orders placed on the Jetron-hosted event page, the buyer's browser builds metadata. When the event has Ads Tracking turned on, it can hold an attribution object with the buyer's ad click IDs and UTMs. Treat every key in it as untrusted buyer input, even though the delivery is signed, and never use it to look up, fulfil, or credit anything.

On this page