Unidy Docs

Ticket integration

Model ticket entitlements, connect APIs and handle ticket expiry.

Integrate ticket entitlements

Use a ticket for admission, an event pass or a booking with event dates; use a subscription for recurring entitlements and a transaction for an order's money and line-item breakdown. A ticket can carry standard display/access fields and provider-specific metadata.

Ownership and categories

Each ticket has one owner and one ticket category. One customer can own many tickets; a category can have no tickets or many. A transferred ticket can additionally have a different current holder. Do not equate ownership with current pass access. See customer ticket reads and transfers.

Create the category in the dashboard and use its public UUID as ticket_category_id. Configure the intended service and API access before ingestion. The ticket cockpit covers operator tasks.

Ticket response contract

This abbreviated response illustrates the shape; optional values may be null. Do not reuse its IDs or infer that provider metadata is a universal ticket schema.

json
{
  "id": "de6500df-6fc4-4449-a6d2-306ec6dc9c21",
  "user_id": "bf6e396d-4c5c-5e98-a09b-cab64e45e123",
  "ticket_category_id": "ca97bb23-7a90-484a-bc8f-8de7c93d2467",
  "title": "Home game",
  "text": "Your match ticket",
  "reference": "ORDER-42-1",
  "state": "active",
  "payment_state": null,
  "venue": "Stadium",
  "seating": null,
  "price": 64,
  "currency": "EUR",
  "starts_at": "2026-11-10T20:30:00.000+01:00",
  "ends_at": "2026-11-10T23:30:00.000+01:00",
  "wallet_export": null,
  "button_cta_url": null,
  "info_banner": null,
  "metadata": { "areaLabel": "A", "seat": { "rowLabel": "4", "seatLabel": "26" } },
  "created_at": "2026-10-25T17:08:54.227Z",
  "updated_at": "2026-10-25T17:08:54.227Z"
}
FieldsContract
id, user_id, ticket_category_id, referencePublic Unidy record/owner/category UUIDs versus the external ticket reference.
title, text, button_cta_url, info_bannerDisplay content, optional action destination and banner.
state, payment_stateEntitlement state and separate payment state; the latter may be null.
venue, seating, price, currencyLocation and price. Preserve absent values as unknown.
starts_at, ends_at, created_at, updated_atEvent validity versus record timestamps.
wallet_exportOptional pass data; export availability depends on category and record configuration.
metadataProvider JSON such as seat IDs/labels, price category and VAT amounts, barcode, invoice ID, event URL, area, performers (name/type/image URL), competition, description, personalization and name-change flags. These keys are integration-specific and do not replace first-class fields or enforce access by themselves.

Provider metadata example

The older Eventim-shaped example included the following optional JSON paths. They are useful when implementing a ticket detail view, but your integration determines which are present:

Metadata pathsMeaning
seat.rowId, seat.seatId, seat.uniqueSeatId, seat.rowLabel, seat.seatLabelSeat identifiers and display labels.
seat.priceCategory.id, seat.priceCategory.code, seat.priceCategory.name, seat.priceCategory.color, seat.priceCategory.vatPrice category identity, display code/name/color and VAT rate.
seat.priceCategory.isoAmount, seat.priceCategory.isoNetAmount, seat.priceCategory.isoVatAmountGross, net and VAT objects, each with amount and currency.
status, barcode, eventURL, areaLabel, invoiceIdProvider status, admission code, event path, area and invoice reference.
performer[].name, performer[].type, performer[].imgUrlPerformer/team label, home/guest role and image URL.
description, competitionName, needsPersonalisation, isChangeOfNamesAllowedProvider event text, competition and personalization/name-change flags.

Treat barcode/pass data as access-bearing and resolve provider-relative event/image paths against the intended host. Provider flags do not enable Unidy actions automatically.

The SDK response guide also covers holder redaction, entered_at, wallet export and transfers. Use the instance's live schema for all supported fields.

Access surfaces

  • Customer account: https://YOUR_BRAND_HOST/tickets for the hosted ticket view.
  • Dashboard: https://YOUR_BRAND_HOST/dashboard/tickets for authorized administrators.
  • Partner/backend: the REST API reference, currently served at /swagger/api/html, for ticket create/update/read operations and the exact scopes for each endpoint.
  • Customer app: the SDK HTTP API for signed-in customer reads, passes and transfers.
  • Changes: webhook events for ticket lifecycle notifications, including configured create/update/delete and entry flows.

Older documentation pointed to /api-docs and listed clientCredentials, authorizationCode and implicit together. Choose credentials for the endpoint you actually use: partner ingestion uses a server-side client-credentials token; user-authorized REST access has its own permissions. Prefer Authorization Code with PKCE for a public authentication client rather than starting a new implicit-flow integration.

States and expiry

The ticket states are active, passive and inactive. State is separate from payment and provider status metadata.

Current expiry maintenance checks active tickets approximately every five minutes. When ends_at is present, it uses that date plus the category's configured inactive offset in hours. With no ends_at, it selects tickets whose starts_at is more than one day old. Processing is asynchronous and bounded per run; do not implement exact-time admission checks by waiting for maintenance alone.

This replaces the historical description of a 15-minute schedule and expiry at midnight the day after starts_at. Review the category offset and test your deployed behavior when an event depends on an exact end time.

Was this page helpful?