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

# List product stock movements

> Returns a read-only stock movement timeline synthesized from serial inventory, completed invoice sales, and allocated reseller stock transfers.



## OpenAPI

````yaml /openapi.json get /dev/v1/products/{id}/stock-movements
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-movements:
    get:
      tags:
        - Products
      summary: List product stock movements
      description: >-
        Returns a read-only stock movement timeline synthesized from serial
        inventory, completed invoice sales, and allocated reseller stock
        transfers.
      operationId: getDevV1ProductsByIdStock-movements
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
        - name: cursor
          in: query
          required: false
          schema:
            type: string
        - name: limit
          in: query
          required: false
          schema:
            type: string
        - name: variant_id
          in: query
          required: false
          schema:
            type: string
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    additionalProperties: true
                example:
                  data:
                    - id: serial_1
                      type: restock
                      quantity: 1
                      variant_id: null
                      reference_id: serial_1
                      reference_type: serial
                      occurred_at: '2026-03-16T10:00:00.000Z'
                      details:
                        serial_id: serial_1
                        serial_status: in_stock
                    - id: line_item_1
                      type: sale
                      quantity: -1
                      variant_id: null
                      reference_id: 019db132-7a47-7ad0-900c-975f4cc4a874
                      reference_type: invoice
                      occurred_at: '2026-03-15T10:00:00.000Z'
                      details:
                        invoice_status: COMPLETED
                  pagination:
                    next_cursor: null
                    has_more: 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.

````