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

# Get product stock

> Returns the current stock snapshot for one product. For `SERIALS` products, `available_stock` is calculated from currently available serial inventory.



## OpenAPI

````yaml /openapi.json get /dev/v1/products/{id}/stock
openapi: 3.0.3
info:
  title: Shoppex Developer API
  description: Mintlify-compatible Developer API reference for Shoppex.
  version: 1.0.0
  contact:
    name: Shoppex Support
    email: support@shoppex.io
    url: https://shoppex.io
servers:
  - url: https://api.shoppex.io
security:
  - bearerAuth: []
paths:
  /dev/v1/products/{id}/stock:
    get:
      tags:
        - Products
      summary: Get product stock
      description: >-
        Returns the current stock snapshot for one product. For `SERIALS`
        products, `available_stock` is calculated from currently available
        serial inventory.
      operationId: getDevV1ProductsByIdStock
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    additionalProperties: true
                example:
                  data:
                    product_id: prod_db_1
                    product_uniqid: prod_1
                    type: SERIALS
                    stock: 12
                    available_stock: 7
                    unlimited: false
                    variants:
                      - id: variant_1
                        uniqid: variant_1
                        title: Gold
                        stock: 5
                        available_stock: 5
                        unlimited: false
                      - id: variant_2
                        uniqid: variant_2
                        title: Platinum
                        stock: 2
                        available_stock: 2
                        unlimited: false
      deprecated: false
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: Use your Shoppex API key in the Authorization header.

````