---
title: "Preview Theme"
method: POST
path: "/v2/theme/preview"
tags: ["Theming"]
---

# Preview Theme

`POST /v2/theme/preview`

## Request body

- PreviewThemeRequest — Preview theme parameters
  - `name` string
  - `theme_id` string — Parameter that was created within the create theme API call that applies the customizations upon the checkout interface. Read <a target="_blank" href="https://docs.verifone.com/online-payments/checkout/theming">Theming</a> for details.
  - `logo` string — Uploaded image id
  - `base_font_family` 'Roboto' | 'Open Sans' | 'Lato' | 'Slabo' | 'Oswald' | 'Source Sans Pro' | 'Montserrat' | 'Raleway' | 'PT Sans' | 'Lora' | 'Noto Sans' | 'Noto Serif' | 'Nunito Sans' | 'Concert One' | 'Prompt' | 'Work Sans' — base fonts available for theme
  - `text_color` string — 6 digit hex code, e.g. <code>ffe0e0</code>
  - `heading_color` string — 6 digit hex code, e.g. <code>ffe0e0</code>
  - `background_color` string — 6 digit hex code, e.g. <code>ffe0e0</code>
  - `panel_background_color` string — 6 digit hex code, e.g. <code>ffe0e0</code>
  - `primary_color` string — 6 digit hex code, e.g. <code>ffe0e0</code>
  - `primary_color_inverse` string — 6 digit hex code, e.g. <code>ffe0e0</code>
  - `primary_color_disabled` string — 6 digit hex code, e.g. <code>ffe0e0</code>
  - `primary_color_inverse_disabled` string — 6 digit hex code, e.g. <code>ffe0e0</code>
  - `error_color` string — 6 digit hex code, e.g. <code>ffe0e0</code>
  - `error_color_inverse` string — 6 digit hex code, e.g. <code>ffe0e0</code>
  - `input_border_radius` number
  - `input_border_width` number
  - `hide_verifone_seal` boolean — Show/Hide verifone seal on the checkout page
  - `response_image_size` ImageSize
    - `width` string — Response image width in pixels
    - `height` string — Response image height in pixels

## Response `200`

Successful

- ThemePreviewResponse
  - `image` string, required — Previewed image converted to base64 (image type is .png)
  - `response_image_size` ImageSize
    - `width` string — Response image width in pixels
    - `height` string — Response image height in pixels

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `500` — Internal Server Error

---

[API](https://skmtc.dev/westpac/apis/checkout-api.md) · [All operations](https://skmtc.dev/westpac/apis/checkout-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/westpac/checkout-api/revisions/97b34ca7df9a/schema)
