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

# Validate coupon code

> Validates a coupon code for the brand and returns its discount details.



## OpenAPI

````yaml post /v1/brands/{brandId}/coupon-codes/{couponCode}/validate
openapi: 3.0.0
info:
  title: Way Partner API
  description: >-
    REST API for Way partners: list experiences, check availability, run
    checkout, and manage bookings.
  version: '1.0'
servers:
  - url: https://api.letsway.com
    description: Production.
  - url: https://api.staging.letsway.com
    description: Staging.
security: []
tags:
  - name: Listings
    description: 'Retrieve the listings a brand offers: experiences, events, and resources.'
  - name: Availability
    description: Dates, sessions, and price tiers for scheduling a booking.
  - name: Carts & Checkout
    description: >-
      Payment intents and booking creation. The cart ID is a client-generated
      UUID; there is no create-cart endpoint.
  - name: Bookings
    description: Retrieve, cancel, and reschedule bookings.
  - name: Experiences
    description: Experience details, settings, custom questions, reviews, and hosts.
  - name: Brand Configuration
    description: Brand settings, taxonomy, terms, and promotion code validation.
  - name: Waitlists
    description: Waitlists for sold-out sessions and invitation handling.
  - name: Integrations
    description: Configured integrations, analytics, and room-charge validation.
  - name: Organizations
    description: Organization-level access across brands.
paths:
  /v1/brands/{brandId}/coupon-codes/{couponCode}/validate:
    post:
      tags:
        - Brand Configuration
      summary: Validate coupon code
      description: Validates a coupon code for the brand and returns its discount details.
      operationId: CouponCodePublicController_validCouponCode
      parameters:
        - $ref: '#/components/parameters/brandIdPath_64'
        - $ref: '#/components/parameters/couponCodePath'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CouponCodeValidateRequest'
      responses:
        '201':
          description: Validate coupon code.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidCouponCodeDetailsDto'
      security:
        - Brand-API-Key: []
        - Organization-API-Key: []
components:
  parameters:
    brandIdPath_64:
      name: brandId
      in: path
      schema:
        type: string
      required: true
      description: >-
        The brand's ID - must match the brand your API key identifies (or the
        Way-Brand-Id header when one is sent).
    couponCodePath:
      name: couponCode
      in: path
      schema:
        type: string
      required: true
      description: The coupon code to validate, as entered by the guest.
      example: SUMMER25
  schemas:
    CouponCodeValidateRequest:
      type: object
      properties: {}
    ValidCouponCodeDetailsDto:
      type: object
      properties:
        id:
          type: string
          description: The unique identifier of the coupon.
          example: coupon-123
        code:
          type: string
          description: The coupon code.
          example: DISCOUNT50
        type:
          type: string
          description: The type of the coupon.
          example: percentage
        discountType:
          type: string
          description: The discount type.
          example: fixed_amount
        value:
          type: number
          description: The value of the discount.
          example: 50
        experienceIds:
          description: List of experience IDs associated with the coupon.
          example:
            - exp-1
            - exp-2
          type: array
          items:
            type: string
      required:
        - id
        - code
        - type
        - discountType
        - value
  securitySchemes:
    Brand-API-Key:
      type: http
      scheme: bearer
      description: >-
        Your brand's secret API key, e.g. `Bearer
        way_sk_live_bhEqcn0i1fRoUEHBPjJkQA`. Older `Way-Brand-Id` +
        `Way-Secret-Key` credentials still work: see [Legacy
        authentication](/legacy-authentication).
    Organization-API-Key:
      type: http
      scheme: bearer
      description: >-
        Your organization's secret API key, e.g. `Bearer
        way_sk_live_ohEqcn0i1fRoUEHBPjJkQA`. Older `Way-Organization-Id` +
        `Way-Secret-Key` credentials still work: see [Legacy
        authentication](/legacy-authentication).

````