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.
| Task | Operation | Normal response |
|---|---|---|
| Read owned and assigned pass groups | GET /api/v1/admin/ti-event/ticket/user/{id}/passes | HTTP 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.
| Input | Location / type | Requirement and meaning |
|---|---|---|
resource | Required header, string | Publication public key, supplied as RESOURCE_KEY. |
token | Required header, string | Existing eligible staff token, supplied as ADMIN_TOKEN. |
id | Required path, decimal reader ID | Registered 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.
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 field | Type / presence | Meaning |
|---|---|---|
ti_events | Event-ID map when populated; [] when empty | Events containing selected owned or assigned records. |
ti_events[event_id] | Object | The 14 base event scalar fields and photo, plus the ticket map below. No taxonomy/content-type expansion. |
.tickets | Ticket-ID map | Ticket definitions grouped under the event. This replaces the ordinary event response's ticket-array shape. |
.tickets[ticket_id] | Object | The 18 base ticket fields, including stored extra, plus passes and assigns. No plan_discounts, computed available or nested ti_event expansion is added here. |
.passes | Array | Passes owned by the subject reader, including those assigned to another person. It is not every pass on the ticket. |
.assigns | Array | Passes 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.
Pass and related profile fields
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.
| Field | Type / presence | Meaning |
|---|---|---|
id | Stored numeric identifier | Pass ID. |
owner_id | Stored numeric reference / nullable value | Owner of the pass. |
assign_id | Stored numeric reference / null | Assigned person, when present. |
extra | Decoded JSON or stored value / null | Additional stored pass data with variable shape; see base-pass JSON handling. Its sensitivity depends on stored contents. |
active | Stored flag / nullable value | Stored activity setting, not an admission result or read filter. |
owner | Profile object below / null | Related owner's profile, which can differ from the subject reader. |
assign | Profile object below / null | Related assignee's profile; can be null when no related person is available. |
auth_link | Existing sign-in-link string / null | Credential-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 field | Type / presence | Meaning |
|---|---|---|
id | Numeric reader identifier | Related person's ID. |
email | Text / nullable stored value | Email address. |
first_name | Text / nullable stored value | Given name. |
last_name | Text / nullable stored value | Family name. |
company | Text / nullable stored value | Company. |
country | Text / nullable stored value | Country. |
city | Text / nullable stored value | City. |
address | Stored text / null | Address. |
state | Text / nullable stored value | State or region. |
job | Text / nullable stored value | Occupation. |
zip | Stored text / null | Postal code. |
phone | Stored text / null | Phone number. |
facebook_id | Stored text / null | Stored Facebook identifier. |
google_id | Stored text / null | Stored Google identifier. |
photos | URL map / empty array | Photo 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 status | API code / shape | Cause | Next action |
|---|---|---|---|
| 200 | Empty ti_events | No selected owned or assigned pass groups. | Show an empty inventory for this registered subject; do not treat it as a missing-reader response. |
| 409 | invalid_user_id; Empty user id | Subject reader ID is empty. | Select an existing registered reader ID. |
| 404 | invalid_user; User not found | Subject reader was not found. | Verify the reader ID through discovery. |
| 404 | invalid_user_resource; User not found in resource | Reader has no registration in the selected publication. | Check publication and registered subject context. |
| 409 | invalid_ticket, description | Grouped 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 response | Failed or incomplete response | Lookup 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.