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

# Get a coupon

> Returns a single coupon by UUID.



## OpenAPI

````yaml /api-reference/openapi.json get /api/v1/subscriptions/coupons/{uuid}
openapi: 3.0.0
info:
  title: PlugToPay API
  description: API to make payments easy in multiple gateways.
  version: 1.0.0
servers:
  - url: http://localhost:7701
    description: Test Server
security: []
paths:
  /api/v1/subscriptions/coupons/{uuid}:
    get:
      tags:
        - Coupons
      summary: Get a coupon
      description: Returns a single coupon by UUID.
      operationId: 60fe21320fecf21793014c187d452718
      parameters:
        - $ref: '#/components/parameters/XClientId'
        - name: uuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: Coupon found
          content:
            application/json:
              schema:
                properties:
                  data:
                    $ref: '#/components/schemas/Coupon'
                type: object
        '401':
          description: Unauthorized — Invalid API Key
        '404':
          description: Coupon not found
      security:
        - ApiKeyAuth: []
components:
  parameters:
    XClientId:
      name: x-client-id
      in: header
      description: Client identifier for the company in the request.
      required: true
      schema:
        type: string
        example: client_abc123
  schemas:
    Coupon:
      properties:
        id:
          type: string
          format: uuid
        code:
          description: Alphanumeric coupon code (max 50 chars).
          type: string
          example: SUMMER20
        name:
          type: string
          example: 20% off Summer Sale
        description:
          type: string
          nullable: true
        discount_type:
          type: string
          enum:
            - percentage
            - fixed
          example: percentage
        discount_value:
          description: >-
            Percentage (1–100) when discount_type is percentage; cents when
            fixed.
          type: integer
          example: 20
        max_redemptions:
          description: Maximum total uses across all subscriptions. Null = unlimited.
          type: integer
          example: 100
          nullable: true
        redemptions_count:
          description: Number of times this coupon has been applied.
          type: integer
          example: 5
        max_cycles:
          description: >-
            Maximum billing cycles the discount applies per subscription. Null =
            forever.
          type: integer
          example: 3
          nullable: true
        valid_from:
          type: string
          format: date-time
          nullable: true
        valid_until:
          type: string
          format: date-time
          nullable: true
        is_active:
          type: boolean
          example: true
        created_at:
          type: string
          format: date-time
          nullable: true
      type: object
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      description: Company API key. Send in the X-API-Key header.
      name: X-API-Key
      in: header

````