Read a reader's owned and assigned passes

See which event passes a registered reader owns or is assigned in the selected publication. Results are grouped by event and ticket, with related owner and assignee profiles. They can also include existing reader sign-in links, so keep the response within a trusted staff integration. This is not a customer self-service view.

TaskOperationNormal response
Read owned and assigned pass groupsGET /api/v1/admin/ti-event/ticket/user/{id}/passesHTTP 200 with event-ID groups under ti_events

Context and credential handling

Allowed roles are readonly, manager, support, admin and partner; root is also permitted. Use an existing token authorized for the selected publication. The caller must be active and authorized there. Service-account credentials are not supported.

The subject reader must exist and have a registration in this publication. The query selects their owned/assigned passes through events in that publication. It does not require the caller to be that reader and does not evaluate the subject's active status, paid membership or admission.

Treat each auth_link as a sign-in credential. Retain it only within the trusted staff integration; do not expose it in public pages or logs. A link can concern a related assignee other than the subject reader. This operation retrieves an existing link; it does not generate a new credential. Presence or absence does not establish link validity, expiry, one-time use or admission.

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 reader IDRegistered subject reader, such as 9101; not an event, ticket or pass ID.

Choose the subject through reader discovery. No body, filter, pagination or expansion selector is used. Inactive passes and inactive/private ticket or event configurations can appear. Ordering is unspecified.

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. For cURL, set PRIVATE_RESPONSE_FILE to a new file path in a private application directory; umask 077 restricts newly created files. The examples save or retain the response in trusted context and print only HTTP status. See example conventions. All examples are synthetic and unexecuted.

Read the registered reader's pass groups

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

Example: Inspect reader 9101

In this fictional snapshot, reader 9101 owns pass 9001, assigned to reader 9201, and is assigned pass 9006, owned by reader 9301. Both belong to ticket 5101 under event 5001. Keep ownership and assignment separate when interpreting the groups.

umask 077
curl --silent --show-error \
  "${WALLKIT_API_BASE}/api/v1/admin/ti-event/ticket/user/9101/passes" \
  -H "resource: ${RESOURCE_KEY}" \
  -H "token: ${ADMIN_TOKEN}" \
  --output "${PRIVATE_RESPONSE_FILE}" \
  --write-out 'HTTP %{http_code}\n'
const response = await fetch(`${process.env.WALLKIT_API_BASE}/api/v1/admin/ti-event/ticket/user/9101/passes`, {
  method: "GET",
  headers: {resource: process.env.RESOURCE_KEY, token: process.env.ADMIN_TOKEN}
});
if (!response.ok) {
  throw new Error(`Request failed (HTTP ${response.status})`);
}
const inventory = await response.json();
// Keep inventory in authorized application handling; it can contain sign-in credentials.
console.log("HTTP", response.status);
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/user/9101/passes",
    headers={"resource": os.environ["RESOURCE_KEY"], "token": os.environ["ADMIN_TOKEN"]},
    method="GET")
try:
    with urlopen(request) as response:
        inventory = json.load(response)
        # Keep inventory in authorized application handling; it can contain sign-in credentials.
        print("HTTP", response.status)
except HTTPError as error:
    print("HTTP", error.code)

Synthetic HTTP 200 excerpt; other selected fields and records are omitted. The literal <PASS_SIGN_IN_LINK> is a nonfunctional placeholder, not a URL or usable credential.

{
  "ti_events": {
    "5001": {
      "id": 5001,
      "title": "Example Evening Session",
      "photo": [],
      "tickets": {
        "5101": {
          "id": 5101,
          "ti_event_id": 5001,
          "title": "Evening admission",
          "passes": [
            {
              "id": 9001, "owner_id": 9101, "assign_id": 9201, "extra": null, "active": true,
              "owner": {"id": 9101, "email": "owner@example.com"},
              "assign": {"id": 9201, "email": "attendee@example.com"},
              "auth_link": "<PASS_SIGN_IN_LINK>"
            }
          ],
          "assigns": [
            {
              "id": 9006, "owner_id": 9301, "assign_id": 9101, "extra": null, "active": false,
              "owner": {"id": 9301, "email": "another-owner@example.com"},
              "assign": {"id": 9101, "email": "owner@example.com"},
              "auth_link": null
            }
          ]
        }
      }
    }
  }
}

The owned pass's sign-in link concerns its assigned reader 9201, not automatically subject 9101. No link is returned for pass 9006 in this fictional result; null is not an access denial. An inactive pass remains visible.

Grouping and event/ticket fields

Bracket labels below identify map keys, not array positions. Populated event and ticket groups use their IDs as keys. Empty ti_events is [], not an event object or items list. There is no data wrapper or paginator.

Returned fieldType / presenceMeaning
ti_eventsEvent-ID map when populated; [] when emptyEvents containing selected owned or assigned records.
ti_events[event_id]ObjectThe 14 base event scalar fields and photo, plus the ticket map below. No taxonomy/content-type expansion.
.ticketsTicket-ID mapTicket definitions grouped under the event. This replaces the ordinary event response's ticket-array shape.
.tickets[ticket_id]ObjectThe 18 base ticket fields, including stored extra, plus passes and assigns. No plan_discounts, computed available or nested ti_event expansion is added here.
.passesArrayPasses owned by the subject reader, including those assigned to another person. It is not every pass on the ticket.
.assignsArrayPasses assigned to the subject reader, including those owned by another person.

A pass owned and assigned to the subject can appear in both arrays. Either collection can be empty for an included ticket. Interpret the collections by role rather than as a deduplicated count of passes or people.

Every pass in either collection selects the five base fields id, owner_id, assign_id, extra and active, plus the related owner, assign and auth_link fields below.

FieldType / presenceMeaning
idStored numeric identifierPass ID.
owner_idStored numeric reference / nullable valueOwner of the pass.
assign_idStored numeric reference / nullAssigned person, when present.
extraDecoded JSON or stored value / nullAdditional stored pass data with variable shape; see base-pass JSON handling. Its sensitivity depends on stored contents.
activeStored flag / nullable valueStored activity setting, not an admission result or read filter.
ownerProfile object below / nullRelated owner's profile, which can differ from the subject reader.
assignProfile object below / nullRelated assignee's profile; can be null when no related person is available.
auth_linkExisting sign-in-link string / nullCredential-bearing link when returned; retain only in trusted staff handling. Null means a link could not be returned, not an access decision.

There is no separate raw token field, pass timestamp, invitation object or nested ticket/event inside the pass object. Stored pass scalars are not uniformly normalized.

Each non-null owner or assign profile selects these 14 scalar fields plus photos. Text can be stored or decoded; consistent null preservation is not promised for decoded text.

Profile fieldType / presenceMeaning
idNumeric reader identifierRelated person's ID.
emailText / nullable stored valueEmail address.
first_nameText / nullable stored valueGiven name.
last_nameText / nullable stored valueFamily name.
companyText / nullable stored valueCompany.
countryText / nullable stored valueCountry.
cityText / nullable stored valueCity.
addressStored text / nullAddress.
stateText / nullable stored valueState or region.
jobText / nullable stored valueOccupation.
zipStored text / nullPostal code.
phoneStored text / nullPhone number.
facebook_idStored text / nullStored Facebook identifier.
google_idStored text / nullStored Google identifier.
photosURL map / empty arrayPhoto slug or image-size key mapped to a URL; fallback image URLs can be used. These are not the event's photo media objects.

The profile does not include active/confirmation status, nickname, timestamps or the complete reader-extra fields. Related profiles do not establish current membership or admission.

Empty result and recovery

An existing registered reader without selected owned/assigned passes returns HTTP 200:

{"ti_events": []}
HTTP statusAPI code / shapeCauseNext action
200Empty ti_eventsNo selected owned or assigned pass groups.Show an empty inventory for this registered subject; do not treat it as a missing-reader response.
409invalid_user_id; Empty user idSubject reader ID is empty.Select an existing registered reader ID.
404invalid_user; User not foundSubject reader was not found.Verify the reader ID through discovery.
404invalid_user_resource; User not found in resourceReader has no registration in the selected publication.Check publication and registered subject context.
409invalid_ticket, descriptionGrouped pass data or related profiles could not be fully returned.Retain the request reference in trusted error handling and ask the integration operator if unresolved.
Varies / no complete responseFailed or incomplete responseLookup or response could not complete normally.Treat it as a failed read, not an empty successful inventory. Do not log the full response body.

See shared credential errors, applying the actual read roles above. Next, inspect a ticket definition for its configuration. Neither result by itself decides a person's access.

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