Read a ticket definition

Inspect a ticket option under an event in your publication, including its stored discounts and extra configuration. A ticket definition is separate from an issued pass. This call reads configuration; it does not issue passes or create reader memberships.

TaskOperationSuccess
Inspect a known ticket definitionGET /api/v1/admin/ti-event/ticket/{id}200, root ticket object with discounts

Creating or deleting definitions requires admin or partner permissions. See create and delete ticket definitions for those tasks.

Caller context and identifiers

Use an existing token authorized for the selected publication. Allowed roles are readonly, manager, support, admin and partner; root is also permitted. Service-account credentials are not supported. Keep these calls in trusted server code; the caller must be active and authorized for the selected publication.

InputLocation / typeRequirement and meaning
resourceRequired header, stringPublication public key, supplied as RESOURCE_KEY.
tokenRequired header, stringExisting eligible staff token, supplied as ADMIN_TOKEN.
idRequired path, decimal ticket IDExisting ticket-definition ID, such as 5101; not an event or purchased-pass ID.

Find the event through event discovery, which also returns its ticket-definition IDs. Returned discount records refer to Plans; catalog discovery explains the publication's catalog. A Plan defines access rules, a subscription is a choice within it, and a membership connects a reader to that choice. A discount reference does not create any of them.

Examples use cURL, Node.js 18+ built-in fetch in an ES module (.mjs), and Python 3 urllib. Set WALLKIT_API_BASE to scheme and host only, plus RESOURCE_KEY and ADMIN_TOKEN. See example conventions. All examples are synthetic and unexecuted.

The examples inspect fictional ticket 5101 under event 5001. Plan 5301 belongs to the publication; discount record 5201 links it to the ticket. These IDs represent existing configuration.

Returned ticket and discounts

This operation returns the ticket at the root, including plan_discounts. Use the shared ticket-definition fields for the exact 18 ticket fields and seven discount fields. Their field names are the same here; they are not nested under an event's tickets array in this response.

ProjectionType / presenceMeaning
Ticket fieldsRoot fieldsID/parent event, text, quantity/order settings, price/currency, status/dates, private/active/VAT settings and extra configuration. Stored scalar representations are not uniformly converted.
plan_discountsAlways an arrayStored discount records, including inactive records; [] when none. Each has id, ticket ID, Plan ID, discount/type/currency and active setting.

No items, data or paginator wrapper is added. This response does not expand passes, owners, invitations, authentication tokens, parent-event objects or computed available stock. Active flags and stored quantities do not establish sale availability, eligibility, a checkout total, tax or admission.

Inspect a ticket definition

GET /api/v1/admin/ti-event/ticket/{id}

Read a known definition under an event in the selected publication, including its stored discount records. No body, pagination or expansion input is needed. Inactive/private definitions can still be read by an eligible caller.

Example: Read ticket 5101

This fictional definition has parent event 5001, USD price 2500 and a 10-percent discount record for Plan 5301. Stored monetary units and a computed checkout total are not established by this read.

curl -X GET "${WALLKIT_API_BASE}/api/v1/admin/ti-event/ticket/5101" \
  -H "resource: ${RESOURCE_KEY}" \
  -H "token: ${ADMIN_TOKEN}"
const response = await fetch(`${process.env.WALLKIT_API_BASE}/api/v1/admin/ti-event/ticket/5101`, {
  method: "GET",
  headers: {resource: process.env.RESOURCE_KEY, token: process.env.ADMIN_TOKEN}
});
console.log(response.status, await response.json());
import os, json
from urllib.request import Request, urlopen
from urllib.error import HTTPError

request = Request(os.environ["WALLKIT_API_BASE"] + "/api/v1/admin/ti-event/ticket/5101",
    headers={"resource": os.environ["RESOURCE_KEY"], "token": os.environ["ADMIN_TOKEN"]},
    method="GET")
try:
    with urlopen(request) as response:
        print(response.status, json.load(response))
except HTTPError as error:
    print(error.code, json.load(error))

Synthetic HTTP 200 excerpt; the complete field definitions are linked above:

{
  "id": 5101,
  "ti_event_id": 5001,
  "title": "General admission",
  "slug": "generaladmission",
  "price": 2500,
  "currency": "USD",
  "quantity": 100,
  "min_quantity_order": 1,
  "max_quantity_order": 4,
  "active": false,
  "is_private": false,
  "is_applied_vat": false,
  "vat_percent": 0,
  "plan_discounts": [
    {"id": 5201, "ti_event_ticket_id": 5101, "plan_id": 5301, "discount": 10, "discount_type": "percent", "currency": "USD", "active": true}
  ]
}

The returned ti_event_id identifies the ticket's current parent; use it to inspect the event.

Missing ticket and recovery

A caught missing-ticket lookup returns HTTP 409. Synthetic error excerpt:

{"error": "invalid_ticket", "error_description": "Ticket not found"}
HTTP statusAPI code / shapeCauseNext action
409invalid_ticket, descriptionTicket or parent-event lookup/validation failed, including a ticket outside the selected publication.Verify publication and ticket ID using event discovery. Do not treat this as an empty successful ticket.
Varies / no complete responseFailed or incomplete responseThe definition could not be fully returned.Retain any request reference and contact the integration operator if unresolved.

See shared credential errors, applying the detail roles above. Next, inspect the parent event, or read that event's ticket definitions.

Full diagram

Use the arrow keys to scroll. Escape closes this view.

Search documentation

Enter at least 2 characters.

    ↑ ↓ move through results · Enter opens · Escape closes