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

# Get stock for a variant

> Your allocation for one variant. If you have none, `restricted` is `false`.



## OpenAPI

````yaml /openapi.json get /stock/{variantId}
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:
  /stock/{variantId}:
    get:
      tags:
        - Stock
      summary: Get stock for a variant
      description: >-
        Your allocation for one variant. If you have none, `restricted` is
        `false`.
      operationId: getStock
      parameters:
        - name: variantId
          in: path
          required: true
          description: Variant 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: object
                    properties:
                      variant_id:
                        type: integer
                      restricted:
                        type: boolean
                      allocated:
                        type: integer
                        nullable: true
                      used:
                        type: integer
                      remaining:
                        type: integer
                        nullable: true
                      status:
                        type: string
                      expires_at:
                        type: string
                        nullable: true
        '401':
          description: Missing or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limit exceeded
      security:
        - ApiKey: []
components:
  schemas:
    Error:
      type: object
      properties:
        status:
          type: string
          example: error
        message:
          type: string
          example: Insufficient balance.
        data:
          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.