Skip to main content
Themes are created and managed in the Dashboard (Settings → Themes). The public API does not create or edit themes — it lets you assign an existing theme to a product by its ID, and it returns the resolved theme on public payloads so your integration can render it. For an overview of what a theme is and how appearance is resolved, see the Themes guide.

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 as themeId.

Assigning a theme by ID

Pass the optional themeId 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.