> ## 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 forms for discount codes

> List the forms of the workspace by title, with the currency each form charges in. Use it to pick the `form_ids` for a discount code. A percentage code works on any form. A fixed code works only on forms that charge in the same currency. When `page_number` is omitted, all forms 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/forms
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/forms:
    get:
      tags:
        - Discount Codes
      summary: List forms for discount codes
      description: >-
        List the forms of the workspace by title, with the currency each form
        charges in. Use it to pick the `form_ids` for a discount code. A
        percentage code works on any form. A fixed code works only on forms that
        charge in the same currency. When `page_number` is omitted, all forms
        are returned.
      parameters:
        - $ref: '#/components/parameters/api_key_header'
        - $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/discount_code_form_list_response'
              example:
                forms:
                  - id: c3b0a8d2-5e44-4f4e-8a35-0d2f5a1b7c90
                    title: Workshop signup
                    currency: usd
                pagination:
                  total_records: 1
                  total_pages: 1
                  current_page_number: 1
                  page_size: 30
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
    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:
    discount_code_form_list_response:
      allOf:
        - type: object
          properties:
            forms:
              type: array
              items:
                type: object
                properties:
                  id:
                    type: string
                    example: c3b0a8d2-5e44-4f4e-8a35-0d2f5a1b7c90
                  title:
                    type: string
                    example: Workshop signup
                  currency:
                    type: string
                    nullable: true
                    description: >-
                      Currency the form charges in. It is null when the form
                      takes no payment.
                    example: usd
        - $ref: '#/components/schemas/paginated_response'
    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

````

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