---
updatedAt: 2026-10-22T05:50:05.000Z
agentTools:
  projectIndex: https://developer.xentral.com/llms.txt
---

# 🔒 View stock figures of a product V3

This endpoint is currently in Beta and available for testing. It may contain bugs, and breaking changes can occur at any time without prior notice. We do not recommend using Beta endpoints in production environments. Should you choose to use it in production, you assume full responsibility for any resulting issues.

This endpoint requires the following scopes: `productStock:read`.

Stock figures of a product, per warehouse and pooled over the warehouses asked for, together with the sales-channel settings that decide which number a channel is shown. The four flags in the answer say which figures the product has; one that does not apply to it is absent rather than zero. No setting is applied to any figure.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Xentral Business Documents API v3",
    "description": "The Xentral Business Documents API v3 for working with sales orders, offers, invoices, credit notes, delivery notes, return orders, purchase orders, proforma invoices and productions.\n\nIndividual endpoints marked as *Beta* may still change without prior notice — see the respective endpoint descriptions.\n\nRequest payloads may contain properties that an endpoint does not define; these are ignored rather than rejected. Nothing is stored for them and no error is returned, so check the response body to confirm which values were actually applied.",
    "contact": {
      "name": "API Support",
      "url": "https://xentral.com",
      "email": "api@xentral.com"
    },
    "version": "0.2.0"
  },
  "servers": [
    {
      "url": "https://{xentralId}.xentral.biz",
      "description": "Your xentral instance",
      "variables": {
        "xentralId": {
          "default": "my-company",
          "description": "Your Xentral instance ID"
        }
      }
    },
    {
      "url": "https://{domain}",
      "description": "Xentral with a custom domain",
      "variables": {
        "domain": {
          "default": "demo.xentral.com",
          "description": "Your Xentral custom domain"
        }
      }
    }
  ],
  "components": {
    "schemas": {
      "ProductStock": {
        "description": "What is on hand, what the bill of materials allows to be assembled, and what is committed. No sales-channel setting, such as a stock correction value or a pseudo stock rule, is applied to these values.",
        "required": [
          "id",
          "isStockItem",
          "hasBillOfMaterials",
          "isAssembledJustInTime",
          "isMatrixProduct",
          "totals",
          "warehouses",
          "salesChannelDefaults",
          "salesChannels"
        ],
        "properties": {
          "id": {
            "description": "The unique identifier of the product",
            "type": "string",
            "pattern": "[0-9]+",
            "example": "58"
          },
          "isStockItem": {
            "description": "Whether the product is stock-managed. While false, onHand is absent.",
            "type": "boolean",
            "example": false
          },
          "hasBillOfMaterials": {
            "description": "Whether the product has a bill of materials. While false, producible and producibleAfterCommitments are absent.",
            "type": "boolean",
            "example": true
          },
          "isAssembledJustInTime": {
            "description": "Whether the BOM is assembled just-in-time. Such a product carries no stock of its own.",
            "type": "boolean",
            "example": true
          },
          "isMatrixProduct": {
            "description": "Whether the product is a matrix (variant parent) product. Its variants are products in their own right and carry the stock, so read their figures rather than this product's.",
            "type": "boolean",
            "example": false
          },
          "totals": {
            "description": "The figures for the warehouses asked for, pooled.",
            "required": [
              "reserved",
              "openSalesOrders"
            ],
            "properties": {
              "onHand": {
                "description": "Quantity booked on the product's own storage locations, before any deduction. Blocked storage locations are left out.",
                "type": "number",
                "format": "float",
                "example": 13
              },
              "producible": {
                "description": "Whole units the bill of materials allows to be assembled from the component stock of the requested warehouses, before any deduction.",
                "type": "integer",
                "example": 5
              },
              "producibleAfterCommitments": {
                "description": "The same count after deducting what each component has committed elsewhere, plus what a linked pre-produced product can supply. This is the same calculation the stock synchronisation uses, so it matches the quantity a sales channel is sent. Use it to decide what to promise; it cannot be reproduced by subtracting reserved from producible.",
                "type": "integer",
                "example": 3
              },
              "reserved": {
                "description": "Units of the product itself committed by reservation rows of any document type - sales orders, delivery notes and production orders alike. Always covers the whole instance, also when a warehouse filter is given. A just-in-time bill of materials holds none of its own.",
                "type": "number",
                "format": "float",
                "example": 1
              },
              "openSalesOrders": {
                "description": "Units of the product itself committed by released sales orders. Always covers the whole instance.",
                "type": "number",
                "format": "float",
                "example": 2
              }
            },
            "type": "object",
            "example": {
              "onHand": 13,
              "producible": 5,
              "producibleAfterCommitments": 3,
              "reserved": 1,
              "openSalesOrders": 2
            },
            "additionalProperties": false
          },
          "warehouses": {
            "description": "One entry per requested warehouse, or per warehouse holding anything when no warehouse filter is given. An entry reports what that warehouse alone allows - do not add them up, ask for the set you need and read totals instead.",
            "type": "array",
            "items": {
              "required": [
                "id"
              ],
              "properties": {
                "id": {
                  "description": "The unique identifier of the warehouse",
                  "type": "string",
                  "pattern": "[0-9]+",
                  "example": "1"
                },
                "onHand": {
                  "description": "Quantity booked on this warehouse's storage locations, before any deduction.",
                  "type": "number",
                  "format": "float",
                  "example": 6
                },
                "producible": {
                  "description": "Whole units assembled from this warehouse's component stock alone. Zero when it is missing any component.",
                  "type": "integer",
                  "example": 2
                },
                "producibleAfterCommitments": {
                  "description": "The same count with the components' commitments deducted. A commitment belongs to no single warehouse, so it weighs on each one in full.",
                  "type": "integer",
                  "example": 1
                }
              },
              "type": "object",
              "additionalProperties": false
            }
          },
          "salesChannelDefaults": {
            "description": "The product's own settings. They are already resolved into each salesChannels entry, which is where to read what a channel is told; read them directly for a channel the product is not assigned to. No figure above has them applied.",
            "required": [
              "suggestedStockQuantity",
              "stockCorrectionValue"
            ],
            "properties": {
              "suggestedStockQuantity": {
                "description": "The quantity the pseudo stock rule currently yields, or null while no rule is set.",
                "type": [
                  "number",
                  "null"
                ],
                "format": "float",
                "example": 12
              },
              "stockCorrectionValue": {
                "description": "Quantity added to the stock reported to a sales channel. Zero while none is set.",
                "type": "integer",
                "example": -1
              }
            },
            "type": "object",
            "example": {
              "suggestedStockQuantity": 12,
              "stockCorrectionValue": -1
            },
            "additionalProperties": false
          },
          "salesChannels": {
            "description": "One entry per sales channel the product is assigned to, narrowed by the salesChannel.id filter. An entry reports the settings that apply to that channel: its own while isActive and useIndividualSalesChannelSettings are both true, the ones from salesChannelDefaults otherwise, and the shop's own stock correction value on either level while the shop overrides it. Whether the channel synchronises stock at all is a setting of the assignment and is not part of this answer. An empty list means the product is assigned to no channel asked for.",
            "type": "array",
            "items": {
              "required": [
                "salesChannel",
                "isActive",
                "useIndividualSalesChannelSettings",
                "suggestedStockQuantity",
                "stockCorrectionValue",
                "handlingTime"
              ],
              "properties": {
                "salesChannel": {
                  "required": [
                    "id"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "pattern": "[0-9]+",
                      "example": "1"
                    }
                  },
                  "type": "object",
                  "additionalProperties": false
                },
                "isActive": {
                  "description": "Whether the assignment is active. While false, this entry is answered from salesChannelDefaults rather than from the channel's own row.",
                  "type": "boolean",
                  "example": true
                },
                "useIndividualSalesChannelSettings": {
                  "description": "Whether this channel uses its own settings instead of the defaults. While false, this entry is answered from salesChannelDefaults rather than from the channel's own row.",
                  "type": "boolean",
                  "example": true
                },
                "suggestedStockQuantity": {
                  "description": "The quantity the pseudo stock rule that applies to this channel currently yields, or null while that rule is not set.",
                  "type": [
                    "number",
                    "null"
                  ],
                  "format": "float",
                  "example": 2.5
                },
                "stockCorrectionValue": {
                  "description": "Quantity added to the stock reported to this channel: the level the two flags select, or the shop's own value while the shop overrides the correction for every product. Zero while none is set.",
                  "type": "integer",
                  "example": -3
                },
                "handlingTime": {
                  "description": "Days this channel is given as handling time, from the channel's own product settings; null while none is stored. It has no product-level value, so it does not follow the two flags above and is reported as stored for every channel.",
                  "type": [
                    "integer",
                    "null"
                  ],
                  "example": 2
                }
              },
              "type": "object",
              "additionalProperties": false
            }
          }
        },
        "type": "object",
        "additionalProperties": false
      }
    },
    "securitySchemes": {
      "BearerAuth": {
        "type": "http",
        "scheme": "bearer"
      }
    }
  },
  "security": [
    {
      "BearerAuth": []
    }
  ],
  "tags": [
    {
      "name": "Product",
      "description": "Product"
    }
  ],
  "paths": {
    "/api/v3/products/{id}/stock": {
      "get": {
        "tags": [
          "Product"
        ],
        "summary": "🔒 View stock figures of a product V3",
        "description": "This endpoint is currently in Beta and available for testing. It may contain bugs, and breaking changes can occur at any time without prior notice. We do not recommend using Beta endpoints in production environments. Should you choose to use it in production, you assume full responsibility for any resulting issues.\n\nThis endpoint requires the following scopes: `productStock:read`.\n\nStock figures of a product, per warehouse and pooled over the warehouses asked for, together with the sales-channel settings that decide which number a channel is shown. The four flags in the answer say which figures the product has; one that does not apply to it is absent rather than zero. No setting is applied to any figure.",
        "operationId": "GET::api-v3-products-id-stock",
        "parameters": [
          {
            "name": "filter",
            "in": "query",
            "description": "The filter parameter is used to filter the results of the given endpoint. \n\n\n**Supported filter operators by key:** \n\n`warehouse.id`: *equals*, *in* \n\n`salesChannel.id`: *equals*, *in*",
            "required": false,
            "style": "deepObject",
            "schema": {
              "type": "array",
              "items": {
                "properties": {
                  "key": {
                    "type": "string",
                    "enum": [
                      "warehouse.id",
                      "salesChannel.id"
                    ]
                  },
                  "op": {
                    "description": "operator",
                    "type": "string",
                    "enum": [
                      "equals",
                      "in"
                    ]
                  },
                  "value": {
                    "description": "The property value.",
                    "oneOf": [
                      {
                        "title": "String",
                        "type": "string"
                      },
                      {
                        "title": "Array",
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    ]
                  }
                },
                "type": "object",
                "additionalProperties": false
              }
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Stock figures of a product, per warehouse and pooled over the warehouses asked for, together with the sales-channel settings that decide which number a channel is shown. The four flags in the answer say which figures the product has; one that does not apply to it is absent rather than zero. No setting is applied to any figure.",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/ProductStock"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Not Found"
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "message": {
                      "description": "Too Many Requests",
                      "type": "string",
                      "example": "Too Many Requests"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "x-beta": true,
        "x-scopes": [
          "productStock:read"
        ]
      }
    }
  }
}
```