Skip to content

ResolvedCartContext

Represents the resolved context associated with a cart session. This may be an event, venue, or organizer, and is used to enrich the cart with metadata needed for UI rendering and pricing logic without requiring repeated DB lookups.

Typically stored in cart.meta.resolvedContext.

FieldTypeRequiredDescription
idstring✓Unique identifier of the context entity. Typically matches the cart’s contextId (e.g., “evt_abc123”).
titlestring✓Human-readable title or name of the context entity. Used for display in headers, summaries, and confirmations.
locationobjectOptional physical or virtual location of the event or venue. Can include address, coordinates, or virtual link.
logoobjectOptional logo, banner, or primary image representing the context. Used in UI to visually identify the entity during checkout.
startstring✓Optional start time of the event or context. Used for scheduling and display purposes.
endstringOptional start time of the event or context. Used for scheduling and display purposes.
offeringsobjectA map of offerings relevant to this context (e.g., ticket types, merch). Stored as a record keyed by offering ID to allow fast lookup. Each value is a partial offering object, intended for display, validation, or pricing.
configunknown✓

id:

"evt_abc123"

title:

"Downtown Comedy Night"

start:

"2023-10-01T18:00:00Z"

end:

"2023-10-01T19:00:00Z"

offerings:

\{
"off_123abc": \{ path: "events/ev_1234/tickets/tkt_567", offering: \{ name: "VIP Ticket", price: 3000 \}),
"off_456def": \{ path: "events/ev_1234/tickets/tkt_567", offering: \{ name: "T-Shirt", price: 2000 \}\}
\}