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

# List redemptions

> List the completed redemptions of one discount code, newest first. When `page_number` is omitted, all redemptions are returned.

> [!NOTE]
>
> Replace `{your-subdomain}` with your workspace’s subdomain. \
> Learn how to find your subdomain in [Workspace subdomain](https://apidocs.neetoform.com/api/workspace-subdomain.md).


## OpenAPI

````yaml bundled/discount-codes.yaml GET /discount_codes/{discount_code_id}/redemptions
openapi: 3.0.3
info:
  title: NeetoForm Discount Codes APIs
  version: 2.0.0
servers:
  - description: NeetoForm APIs
    url: https://{your-subdomain}.neetoform.com/api/external/v2
    variables:
      your-subdomain:
        default: spinkart
        description: >-
          Replace **spinkart** with your [workspace's
          subdomain](/api/workspace-subdomain).
security: []
tags:
  - name: Discount Codes
    description: APIs to manage discount codes, see their redemptions and get reports.
paths:
  /discount_codes/{discount_code_id}/redemptions:
    get:
      tags:
        - Discount Codes
      summary: List redemptions of a discount code
      description: >-
        List the completed redemptions of one discount code, newest first. When
        `page_number` is omitted, all redemptions are returned.
      parameters:
        - $ref: '#/components/parameters/api_key_header'
        - $ref: '#/components/parameters/DiscountCodeIdInPath'
        - $ref: '#/components/parameters/page_number_all_results_param'
        - $ref: '#/components/parameters/page_size_param'
      responses:
        '200':
          description: OK - Request succeeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/redemption_list_response'
              example:
                redemptions:
                  - id: 0b7e9f62-3c51-4d8a-a2f4-6c1e9d0b5a33
                    original_amount: '100.0'
                    discount_amount: '10.0'
                    paid_amount: '90.0'
                    currency: usd
                    redeemed_at: '2026-10-20T14:12:03.000Z'
                    submission_id: 9a4d1c7b-8e2f-4b6a-b1c3-2d5e7f9a0b12
                    form:
                      id: c3b0a8d2-5e44-4f4e-8a35-0d2f5a1b7c90
                      title: Workshop signup
                pagination:
                  total_records: 1
                  total_pages: 1
                  current_page_number: 1
                  page_size: 30
        '404':
          $ref: '#/components/responses/NotFound'
components:
  parameters:
    api_key_header:
      in: header
      name: X-Api-Key
      description: >-
        Use the X-Api-Key header to provide your workspace API key. Refer to
        [Authentication](/api/authentication) for more information.
      required: true
      schema:
        type: string
        default: your-api-key
    DiscountCodeIdInPath:
      in: path
      name: discount_code_id
      description: >-
        Id of the discount code. You can get it by using the [List discount
        codes](/api/discount-codes/list) API.
      required: true
      schema:
        type: string
        example: 6f1c2a7e-2b1d-4a51-9a0e-1f8f3b0c9d11
    page_number_all_results_param:
      in: query
      name: page_number
      description: >-
        Page of results to retrieve, starting from 1. When omitted, all results
        are returned in one response and `page_size` is ignored.
      required: false
      schema:
        type: integer
    page_size_param:
      in: query
      name: page_size
      description: Number of results per page. Defaults to 30 when omitted.
      required: false
      schema:
        type: integer
  schemas:
    redemption_list_response:
      allOf:
        - type: object
          properties:
            redemptions:
              type: array
              items:
                type: object
                properties:
                  id:
                    type: string
                    example: 0b7e9f62-3c51-4d8a-a2f4-6c1e9d0b5a33
                  original_amount:
                    type: string
                    example: '100.0'
                  discount_amount:
                    type: string
                    example: '10.0'
                  paid_amount:
                    type: string
                    example: '90.0'
                  currency:
                    type: string
                    example: usd
                  redeemed_at:
                    $ref: '#/components/schemas/date_time_field'
                  submission_id:
                    type: string
                    example: 9a4d1c7b-8e2f-4b6a-b1c3-2d5e7f9a0b12
                  form:
                    type: object
                    properties:
                      id:
                        type: string
                        example: c3b0a8d2-5e44-4f4e-8a35-0d2f5a1b7c90
                      title:
                        type: string
                        example: Workshop signup
        - $ref: '#/components/schemas/paginated_response'
    date_time_field:
      type: string
      format: date-time
    paginated_response:
      type: object
      properties:
        pagination:
          type: object
          properties:
            total_records:
              type: integer
            total_pages:
              type: integer
            current_page_number:
              type: integer
            page_size:
              type: integer
    error_response:
      type: object
      properties:
        error:
          type: string
  responses:
    NotFound:
      description: Not Found - Discount code with the given ID does not exist
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/error_response'
          example:
            error: DiscountCode does not exist.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.