> ## Documentation Index
> Fetch the complete documentation index at: https://docs.loyalty.dog/llms.txt
> Use this file to discover all available pages before exploring further.

# Getmerchanttheme

> Fetch the authenticated merchant's persisted portal theme.



## OpenAPI

````yaml https://api.loyalty.dog/openapi.json get /v2/giftcards/merchants/theme
openapi: 3.1.0
info:
  title: LoyaltyDog
  description: >-

    Welcome to the LoyaltyDog API! This API provides access to our loyalty
    program features, allowing you to integrate with various platforms and
    manage your loyalty data.


    Want to query LoyaltyDog via an AI assistant (Claude, Cursor, Windsurf)? See
    the [MCP Integration guide](https://loyaltydog.ai/playground#mcp).
        
  termsOfService: https://loyalty.dog/loyalty-program-terms-service
  contact:
    name: LoyaltyDog Support
    url: https://loyalty.dog/contact-us
    email: support@loyalty.dog
  version: 1.0.1
servers:
  - url: https://api.loyalty.dog
    description: Production
security:
  - bearerAuth: []
paths:
  /v2/giftcards/merchants/theme:
    get:
      tags:
        - Gift Card Merchants
      summary: Getmerchanttheme
      description: Fetch the authenticated merchant's persisted portal theme.
      operationId: getMerchantTheme_v2_giftcards_merchants_theme_get
      parameters:
        - name: X-Eposn-Merchant-Token
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: X-Eposn-Merchant-Token
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MerchantThemeResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    MerchantThemeResponse:
      properties:
        theme:
          $ref: '#/components/schemas/GiftCardMerchantTheme'
      type: object
      required:
        - theme
      title: MerchantThemeResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    GiftCardMerchantTheme:
      properties:
        presetId:
          type: string
          maxLength: 100
          minLength: 1
          title: Presetid
          default: eposn-default
        primary:
          type: string
          maxLength: 7
          title: Primary
          default: '#15803d'
        primaryFg:
          type: string
          maxLength: 7
          title: Primaryfg
          default: '#ffffff'
        sidebarBg:
          type: string
          maxLength: 7
          title: Sidebarbg
          default: '#ffffff'
        sidebarText:
          type: string
          maxLength: 7
          title: Sidebartext
          default: '#4b5563'
        sidebarActiveBg:
          type: string
          maxLength: 7
          title: Sidebaractivebg
          default: '#f0fdf4'
        sidebarActiveText:
          type: string
          maxLength: 7
          title: Sidebaractivetext
          default: '#15803d'
        sidebarBadge:
          type: string
          maxLength: 7
          title: Sidebarbadge
          default: '#15803d'
        background:
          type: string
          maxLength: 7
          title: Background
          default: '#f9fafb'
        foreground:
          type: string
          maxLength: 7
          title: Foreground
          default: '#111827'
        surface:
          type: string
          maxLength: 7
          title: Surface
          default: '#ffffff'
        border:
          type: string
          maxLength: 7
          title: Border
          default: '#e5e7eb'
        muted:
          type: string
          maxLength: 7
          title: Muted
          default: '#6b7280'
        logoUrl:
          anyOf:
            - type: string
              maxLength: 2048
            - type: 'null'
          title: Logourl
        logoAlt:
          anyOf:
            - type: string
              maxLength: 255
            - type: 'null'
          title: Logoalt
        fontFamily:
          anyOf:
            - type: string
              maxLength: 255
              pattern: ^[A-Za-z0-9 ,'\"._\-]+$
            - type: 'null'
          title: Fontfamily
        borderRadius:
          $ref: '#/components/schemas/GiftCardMerchantThemeBorderRadius'
          default: lg
      type: object
      title: GiftCardMerchantTheme
      description: Persisted merchant-facing theme configuration for the EPOSN portal.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
    GiftCardMerchantThemeBorderRadius:
      type: string
      enum:
        - none
        - sm
        - md
        - lg
        - full
      title: GiftCardMerchantThemeBorderRadius
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: JWT access token obtained from POST /v2/token.

````