Finding a theme’s ID
Open a theme under Settings → Themes in the Dashboard and copy its theme ID from the editor. This is the value you pass asthemeId.
Assigning a theme by ID
Pass the optionalthemeId in the request body when creating or updating a product with your API key:
If
themeId is omitted, the product falls back to your company default theme, then the preset default, then the buyer’s system preference (see appearance resolution).
Example
The resolved theme object
Public payloads for deposits, pay links, and charges include the assigned themeId and a resolved theme object so you can render the correct appearance. Colors are supplied for both light and dark; render the variant that matches the buyer’s system preference (or your forced themeMode).
Theme object fields
Palette:
primaryColor, neutralColor, backgroundColor (all required hex); successColor, dangerColor, warningColor (optional hex).
Tokens: containerBorderRadius, inputBorderRadius, buttonBorderRadius, containerBorderWidth, inputBorderWidth, padding, and fontFamily (optional).
To create or edit the themes themselves, use the Dashboard (Settings → Themes). See the Themes guide.
