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

# List all discount coupons

> Returns a paginated list of discount coupons for the authenticated seller. Supports filtering by active status and validity. Use this endpoint to display available coupons or validate coupon availability during checkout.



## OpenAPI

````yaml https://api.salesbricks.com/api/v2/openapi.yaml get /discount-coupons
openapi: 3.0.3
info:
  title: Salesbricks REST API
  version: 2.0.0
  description: API reference for external integrations
servers:
  - url: https://api.salesbricks.com/api/v2
    description: Production
  - url: https://api.staging.salesbricks.com/api/v2
    description: Staging
security:
  - ApiKeyAuth: []
tags:
  - name: Subscriptions
    description: >-
      Operations related to subscription management, including creation,
      updates, and retrieving subscription details. Subscriptions can be
      upgraded to add / remove add-ons by using the POST
      /subscriptions/{subscription_id}/upgrade endpoint and can be recasted for
      replacing the current agreement using the POST
      /subscriptions/{subscription_id}/recast endpoint
  - name: Customers
    description: >-
      Operations related to customer management, including creation, updates,
      and managing customer person objects.
  - name: Invoices
    description: Operations related to subscription's invoicing details.
  - name: Plans
    description: >-
      Operations related to listing and getting plan details including bricks in
      the plan.
  - name: Payment Methods
    description: Operations related to subscription's payment method.
paths:
  /discount-coupons:
    get:
      tags:
        - Discount Coupons
      summary: List all discount coupons
      description: >-
        Returns a paginated list of discount coupons for the authenticated
        seller. Supports filtering by active status and validity. Use this
        endpoint to display available coupons or validate coupon availability
        during checkout.
      operationId: listDiscountCoupons
      parameters:
        - in: query
          name: active
          schema:
            type: boolean
          description: Filter by active status (true/false)
        - name: limit
          required: false
          in: query
          description: Number of results to return per page.
          schema:
            type: integer
        - name: offset
          required: false
          in: query
          description: The initial index from which to return the results.
          schema:
            type: integer
        - in: query
          name: ordering
          schema:
            type: string
            enum:
              - '-created_at'
              - created_at
          description: Order results by field (prefix with '-' for descending order)
        - in: query
          name: valid
          schema:
            type: boolean
          description: >-
            Filter to only valid coupons (active, not expired, under usage
            limit)
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedDiscountCouponList'
          description: ''
components:
  schemas:
    PaginatedDiscountCouponList:
      type: object
      required:
        - count
        - results
      properties:
        count:
          type: integer
          example: 123
        next:
          type: string
          nullable: true
          format: uri
          example: http://api.example.org/accounts/?offset=400&limit=100
        previous:
          type: string
          nullable: true
          format: uri
          example: http://api.example.org/accounts/?offset=200&limit=100
        results:
          type: array
          items:
            $ref: '#/components/schemas/DiscountCoupon'
    DiscountCoupon:
      type: object
      description: Serializer for discount coupon information.
      properties:
        code:
          type: string
          readOnly: true
          description: Unique coupon code used to redeem this discount
        name:
          type: string
          readOnly: true
          description: Display name for the coupon
        description:
          type: string
          readOnly: true
          description: Description of what this coupon provides
        expires_at:
          type: string
          format: date-time
          readOnly: true
          nullable: true
          description: When this coupon expires (null means no expiration)
        discount_type:
          type: string
          readOnly: true
          description: >-
            The type of discount this coupon provides. Only duration discount is
            supported for now.
        discount_rate:
          type: string
          format: decimal
          pattern: ^-?\d{0,14}(?:\.\d{0,6})?$
          readOnly: true
          nullable: true
          description: Percentage discount rate applied for the duration period
        duration_months:
          type: integer
          readOnly: true
          nullable: true
          description: Number of months the duration discount applies (999 means forever)
        active:
          type: boolean
          readOnly: true
          description: Whether this coupon is currently active and can be used
        is_expired:
          type: boolean
          readOnly: true
          description: Whether this coupon has expired
        eligible_brick_ids:
          type: array
          items:
            type: string
            format: uuid
          readOnly: true
          description: >-
            Brick IDs this coupon's discount applies to. Empty means all bricks.
            Only present for duration coupons.
      required:
        - active
        - code
        - description
        - discount_rate
        - discount_type
        - duration_months
        - eligible_brick_ids
        - expires_at
        - is_expired
        - name
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-SALESBRICKS-KEY
      description: API key for authentication

````

## Related topics

- [MCP](/integrations/mcp.md)
- [Duration Discounts](/orders/duration-discounts.md)
- [Attio](/integrations/attio.md)
