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

# List variants of a product

> Available variants with your price.



## OpenAPI

````yaml /openapi.json get /products/{productId}/variants
openapi: 3.0.3
info:
  title: Wasmou API
  version: 1.0.0
  description: >-
    Sell digital goods: catalog, purchase, delivery, game top-ups and per-client
    stock. All amounts are in DZD.
servers:
  - url: https://api.wasmou.net/api
    description: Production
security: []
paths:
  /products/{productId}/variants:
    get:
      tags:
        - Catalog
      summary: List variants of a product
      description: Available variants with your price.
      operationId: listVariants
      parameters:
        - name: productId
          in: path
          required: true
          description: Product ID
          schema:
            type: integer
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    example: success
                  message:
                    type: string
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/CatalogVariant'
        '401':
          description: Missing or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limit exceeded
      security:
        - ApiKey: []
components:
  schemas:
    CatalogVariant:
      type: object
      properties:
        id:
          type: integer
        name:
          type: string
        price:
          type: number
          description: Your price in DZD.
        currency:
          type: string
          example: DZD
        delivery:
          type: string
          enum:
            - instant
            - key
            - manual
        in_stock:
          type: integer
          nullable: true
          description: Units left for key-based variants; null for instant and manual.
        available:
          type: boolean
        client_stock:
          $ref: '#/components/schemas/ClientStock'
    Error:
      type: object
      properties:
        status:
          type: string
          example: error
        message:
          type: string
          example: Insufficient balance.
        data:
          nullable: true
    ClientStock:
      type: object
      properties:
        variant_id:
          type: integer
        allocated:
          type: integer
          nullable: true
        used:
          type: integer
        remaining:
          type: integer
          nullable: true
          description: Units you can buy right now. null when released (unrestricted).
        status:
          type: string
          enum:
            - active
            - paused
            - expired
            - exhausted
            - released
        expires_at:
          type: string
          format: date-time
          nullable: true
  securitySchemes:
    ApiKey:
      type: apiKey
      in: header
      name: X-Api-Key
      description: Your API key from the Wasmou app (API access).

````

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