Contract 4d1e0ad · updated 2026-11-11
Lissen Ticketing
GuidesConfiguration

Branding

Stored branding tokens for hosted checkout — one singleton, seven tokens, no CSS

Branding is a single record per organizer holding a handful of design tokens: a logo, four colours, a font and a corner radius. There is no create and no delete — every organizer has one from the moment it exists, with every token null — so the only verb is a patch.

Seven tokens is the whole surface, and that is a decision rather than a starting point. Arbitrary CSS is permanently out: it makes every markup change a breaking change, and it is an injection surface on a page where people type card numbers. A partner who outgrows the tokens renders their own checkout against the checkout API; there is no middle mode.

The shape on the wire

GET/v1/branding
curl https://tickets.lissen.com/api/v1/branding \
  -H "Authorization: Bearer tk_test_..." \
  -H "Ticketing-Organizer: org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7"
{
  "id": "brd_0199c4e9-6f54-7d88-8e35-7a1b4c9d2e66",
  "logo_url": "https://cdn.acme-events.com/logo.svg",
  "brand_color": "#1F6FEB",
  "accent_color": "#F2C744",
  "background_color": "#FFFFFF",
  "text_color": "#111111",
  "font_key": "inter",
  "corner_radius": 12,
  "metadata": {}
}
TokenAccepted values
logo_urlAn absolute https URL, or null. An http URL is rejected. The engine hosts no uploads: point at your own CDN.
brand_color#RRGGBB, #RGB or rgb(r, g, b), or null.
accent_colorSame.
background_colorSame.
text_colorSame.
font_keyOne of inter, system, manrope, or null. An allowlist, not a font name — arbitrary webfonts are not accepted.
corner_radiusAn integer from 0 to 48 inclusive, or null. 0 gives square corners.
metadataYours, opaque, echoed on the wire and in the activity payload.

Colours are validated on the way in: #1F6FEB, #fff and rgb(31, 111, 235) are all accepted, and each rgb() component must be in 0–255. Anything else — a named colour, an rgba(), a gradient, an eight-digit hex — is a 400.

null on any token means "unset": you are not asserting a value, so the surface rendering it is free to use its own default.

Updating it

PATCH/v1/branding is the only write. There is no id in the path — the record is a singleton, and the organizer header already says which one.

curl -X PATCH https://tickets.lissen.com/api/v1/branding \
  -H "Authorization: Bearer tk_test_..." \
  -H "Ticketing-Organizer: org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" \
  -H "Content-Type: application/json" \
  -d '{
    "brand_color": "#1F6FEB",
    "font_key": "inter",
    "corner_radius": 12
  }'

The patch is partial and needs at least one field. Tokens you do not mention keep their current values; to clear one, send it explicitly as null:

curl -X PATCH https://tickets.lissen.com/api/v1/branding \
  -H "Authorization: Bearer tk_test_..." \
  -H "Ticketing-Organizer: org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" \
  -H "Content-Type: application/json" \
  -d '{ "accent_color": null }'

The response is always the complete stored token set.

Idempotency-Key is optional on this update, as it is on every update. Two patches sent at the same moment are serialized rather than interleaved, so concurrent writers cannot produce a half-applied token set.

Where the tokens are used

The hosted checkout reads this resource and applies the tokens to its page chrome and Stripe payment fields as one set rather than one per surface. See the hosted checkout guide.

So there are two honest answers depending on what you are building:

  • Building your own checkout against the checkout API: read these tokens and apply them yourself. This resource is simply where your theme lives, one fetch away from any surface that needs it.
  • Using hosted checkout: setting these tokens changes the next hosted checkout session that reads the organizer's branding.

Per-event themes do not exist. One organizer, one look.

Errors this resource returns

There are no branding-specific error codes. What you will see:

  • invalid_request (400) with param naming the token, for an http logo URL, a colour the validator does not accept, a font_key outside the allowlist, a corner_radius outside 0–48, or a patch with no fields at all.
  • not_found (404) is not something you should meet here: the record exists from the moment your organizer does. A key that has no grant on the organizer in the header fails earlier, as a 403.

The full list is the error registry.

What emits on the activity stream

  • branding.updated — on every accepted patch, carrying the complete token set plus previous_attributes for the tokens that actually moved. There is no branding.created: the record exists from the start, so the first patch is an update from an all-null image, and its previous_attributes shows each token moving from null.

The full type registry lists every type the engine emits.

Gotchas

  • logo_url must be https. No http, and no uploading a file to us.
  • font_key is an allowlist, not a font family string. Three values today; the set grows additively.
  • Colours are hex or rgb() only. No rgba(), no named colours, no gradients.
  • A patch with an empty body is a 400. Send at least one token.
  • null clears, omission preserves. They are different requests.
  • metadata is replaced wholesale, like every other resource — send the whole object each time.
  • There is no per-event or per-item theme, and no custom CSS. Those are not gaps waiting to be filled; rendering your own checkout is the escape hatch.

On this page