# Fetch Checkout Configuration

<Note>This API is in **Beta**. Endpoints and schemas may change without prior notice.</Note>

<Note>`styling.payment_link_styles.panel.left.logo` returns the merchant logo as an embedded base64 data URI (e.g. `data:image/jpeg;base64,...`), not a URL.</Note>

**GET** `/checkouts/{checkout_code}`

Base URL: `https://api-sandbox.whitelabel.com/v1`

Returns the full custom checkout for the given code: configuration and styling composed in a single response. The checkout identifier is exposed as the top-level `id`.

## Authorization

- PUBLIC-API-KEY (apiKey in header)
- PRIVATE-SECRET-KEY (apiKey in header)
- X-Account-Code (apiKey in header)

## Path parameters

- `checkout_code` (string, required)
  The unique identifier of the checkout to retrieve (UUID, 36 chars). Non-UUID values are rejected with 400 before processing.

## Responses

### 200

The custom checkout, with configuration and styling composed.

- `id` (string)
  Checkout UUID (the checkout_code).
- `name` (string)
  Checkout name.
- `description` (string)
  Checkout description.
- `status` (string)
  Checkout status.
- `is_default` (boolean)
  Whether this is the account's default checkout.
- `created_at` (string)
  Creation timestamp (ISO 8601).
- `updated_at` (string)
  Last updated timestamp (ISO 8601).
- `config` (object)
  Checkout configuration.
  - `payment_methods` (object[])
    Payment methods configured for this checkout. Order is driven by `order_to_show` (lower = first). Returns the full payment-method catalog available to the account, not only the ones active for this checkout. Filter by `is_active: true` to get only the enabled ones.
  - `general_settings` (object)
    General checkout settings, including accepted document types per country (`country_documents`).
  - `feature_flags` (object)
    Feature toggles for this checkout, including `custom_required_fields` and `custom_logo_icon`.
- `styling` (object)
  Checkout styling and SDK settings: `styles`, `settings`, `external_fonts`, `payment_link_styles`.

Example:

```json
{
  "id": "8005ca91-dcfb-4428-b9f6-49c6e3446474",
  "name": "Main Checkout",
  "description": "string",
  "status": "PUBLISHED",
  "is_default": true,
  "created_at": "string",
  "updated_at": "string",
  "config": {
    "payment_methods": [
      {}
    ],
    "general_settings": {},
    "feature_flags": {}
  },
  "styling": {}
}
```

### 400

`checkout_code` is not a valid UUID.

- `code` (string)
- `messages` (string[])

Example:

```json
{
  "code": "INVALID_PARAMETERS",
  "messages": [
    "string"
  ]
}
```

### 401

Not authenticated, or the account is not in the beta allowlist.

- `code` (string)
- `messages` (string[])

Example:

```json
{
  "code": "NOT_AUTHENTICATED",
  "messages": [
    "string"
  ]
}
```

### 404

The checkout was not found for this account.

- `code` (string)
- `messages` (string[])

Example:

```json
{
  "code": "string",
  "messages": [
    "string"
  ]
}
```