> ## 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.

# List coupons

> Returns all discount coupons for the authenticated company.



## OpenAPI

````yaml /api-reference/openapi.json get /api/v1/subscriptions/coupons
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:
    get:
      tags:
        - Coupons
      summary: List coupons
      description: Returns all discount coupons for the authenticated company.
      operationId: c65368a718b2773ab89902407784207f
      parameters:
        - $ref: '#/components/parameters/XClientId'
      responses:
        '200':
          description: List of coupons
          content:
            application/json:
              schema:
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/Coupon'
                type: object
        '401':
          description: Unauthorized — Invalid API Key
      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

````