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/brandingcurl 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": {}
}| Token | Accepted values |
|---|---|
logo_url | An 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_color | Same. |
background_color | Same. |
text_color | Same. |
font_key | One of inter, system, manrope, or null. An allowlist, not a font name — arbitrary webfonts are not accepted. |
corner_radius | An integer from 0 to 48 inclusive, or null. 0 gives square corners. |
metadata | Yours, 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) withparamnaming the token, for anhttplogo URL, a colour the validator does not accept, afont_keyoutside the allowlist, acorner_radiusoutside0–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 a403.
The full list is the error registry.
What emits on the activity stream
branding.updated— on every accepted patch, carrying the complete token set plusprevious_attributesfor the tokens that actually moved. There is nobranding.created: the record exists from the start, so the first patch is an update from an all-nullimage, and itsprevious_attributesshows each token moving fromnull.
The full type registry lists every type the engine emits.
Gotchas
logo_urlmust behttps. Nohttp, and no uploading a file to us.font_keyis an allowlist, not a font family string. Three values today; the set grows additively.- Colours are hex or
rgb()only. Norgba(), no named colours, no gradients. - A patch with an empty body is a
400. Send at least one token. nullclears, omission preserves. They are different requests.metadatais 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.