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

# 🔒 List stock movements 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: `stockMovement:read`.

Paginated list of stock movements - the warehouse ledger. Every posting that changed the stock of a product on a storage location is recorded here, which makes this the source for movement analyses. Filter by `product.id`, `storageLocation.id` or `warehouse.id` to narrow it down to what you want to analyse, and by `postedAt` to restrict the period.

# 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": {
      "StockMovement": {
        "description": "A single posting in the warehouse ledger: one stock change of one product on one storage location.",
        "required": [
          "id",
          "product",
          "storageLocation",
          "quantity",
          "direction",
          "stockLevelAfter",
          "postedAt",
          "reference",
          "editor",
          "project",
          "causedBy",
          "stockMovementType",
          "systemType",
          "stockTransactionId",
          "createdAt",
          "updatedAt"
        ],
        "type": "object",
        "allOf": [
          {
            "$ref": "#/components/schemas/TimestampsResource"
          },
          {
            "properties": {
              "id": {
                "description": "The unique identifier of the stock movement.",
                "type": "string",
                "example": "48211"
              },
              "product": {
                "description": "The product whose stock changed. Only the ID is returned; use the product endpoints for the full record. `null` for the rare posting that records no product.",
                "required": [
                  "id"
                ],
                "properties": {
                  "id": {
                    "type": "string",
                    "example": "1032"
                  }
                },
                "type": [
                  "object",
                  "null"
                ]
              },
              "storageLocation": {
                "description": "The storage location the stock was booked on. Only the ID is returned. `null` for the rare posting that records no storage location.",
                "required": [
                  "id"
                ],
                "properties": {
                  "id": {
                    "type": "string",
                    "example": "14"
                  }
                },
                "type": [
                  "object",
                  "null"
                ]
              },
              "quantity": {
                "description": "The moved quantity, signed by the direction: positive when stock was added, negative when it was removed. Movements can therefore be summed up over a period without evaluating `direction`.",
                "type": "number",
                "format": "float",
                "example": -5
              },
              "direction": {
                "description": "Whether this posting added stock to the storage location or removed it from it. A relocation between two storage locations is recorded as two postings, one of each direction.",
                "type": "string",
                "enum": [
                  "inbound",
                  "outbound"
                ],
                "example": "outbound"
              },
              "stockLevelAfter": {
                "description": "The stock level of the product on that storage location immediately after this posting. This is the value recorded at the time of booking, not a recalculation of the current stock.",
                "type": "number",
                "format": "float",
                "example": 120
              },
              "postedAt": {
                "description": "The date and time the stock change was booked. This is the business-relevant point in time and the field to filter on for period analyses; `createdAt` records when the entry itself was written.",
                "type": "string",
                "format": "date-time",
                "example": "2026-07-30T14:22:11+02:00"
              },
              "reference": {
                "description": "The reason for the stock change as shown in the warehouse UI, for example the document it originated from or a manually entered reason. Free text, empty when no reason was recorded.",
                "type": "string",
                "example": "Lieferschein LS1023"
              },
              "editor": {
                "description": "Username of the user who caused the stock change. A plain name, not a reference to a user record. Empty for movements booked by automated processes.",
                "type": "string",
                "example": "mmustermann"
              },
              "project": {
                "description": "The project of the process that caused the stock change. `null` when that process had no project. This is independent of the project a warehouse itself may belong to.",
                "required": [
                  "id"
                ],
                "properties": {
                  "id": {
                    "type": "string",
                    "example": "2"
                  }
                },
                "type": [
                  "object",
                  "null"
                ]
              },
              "causedBy": {
                "description": "The record that caused the stock change - a business document, a stocktaking run, a goods posting document or a parcel receipt. `null` when the posting records no cause, as manual corrections and stocktaking bookings do.",
                "required": [
                  "type",
                  "id"
                ],
                "properties": {
                  "type": {
                    "description": "The kind of record, named as in the rest of the API.",
                    "type": "string",
                    "enum": [
                      "offer",
                      "salesOrder",
                      "deliveryNote",
                      "invoice",
                      "creditNote",
                      "proformaInvoice",
                      "returnOrder",
                      "purchaseOrder",
                      "production",
                      "inventoryRun",
                      "goodsPostingDocument",
                      "parcelReceipt",
                      "serviceOrder"
                    ],
                    "example": "deliveryNote"
                  },
                  "id": {
                    "type": "string",
                    "example": "8871"
                  }
                },
                "type": [
                  "object",
                  "null"
                ]
              },
              "stockMovementType": {
                "description": "The configured booking type the posting was made with - the record behind the stock movement types endpoint. Only the ID is returned. Its own direction also knows relocation and correction, so it is what tells the two postings of a relocation apart from a genuine inflow and outflow, which `direction` alone cannot express. `null` when the posting names no type.",
                "required": [
                  "id"
                ],
                "properties": {
                  "id": {
                    "type": "string",
                    "example": "7"
                  }
                },
                "type": [
                  "object",
                  "null"
                ]
              },
              "systemType": {
                "description": "The business process a system-initiated movement belongs to, for example `goods-receipt-from-purchase-order`, `inventory-correction` or `storage-location-relocation`. `manual` marks a movement booked by hand. Treat this as an open set: further values may be added. Currently populated for a small share of movements only, because the stock management it comes from is still being rolled out - expect `null` on most postings, including recent ones.",
                "type": [
                  "string",
                  "null"
                ],
                "example": "goods-receipt-from-purchase-order"
              },
              "stockTransactionId": {
                "description": "Groups the postings that were booked together in one stock transaction, so the two sides of a relocation can be recognised as one operation. Populated for a small share of movements only, for the same reason as `systemType` - expect `null` on most postings, including recent ones.",
                "type": [
                  "string",
                  "null"
                ],
                "example": "9f8b1c40-3d21-4a77-9a2e-6b0f5d8e1c33"
              }
            },
            "type": "object"
          }
        ]
      },
      "TimestampsResource": {
        "properties": {
          "createdAt": {
            "description": "The date and time when the resource was created.",
            "type": "string",
            "format": "date-time",
            "example": "2023-10-01T12:00:00Z"
          },
          "updatedAt": {
            "description": "The date and time when the resource was last updated.",
            "type": "string",
            "format": "date-time",
            "example": "2023-10-01T12:00:00Z"
          }
        },
        "type": "object"
      }
    },
    "securitySchemes": {
      "BearerAuth": {
        "type": "http",
        "scheme": "bearer"
      }
    }
  },
  "security": [
    {
      "BearerAuth": []
    }
  ],
  "tags": [
    {
      "name": "StockMovement",
      "description": "StockMovement"
    }
  ],
  "paths": {
    "/api/v3/stockMovements": {
      "get": {
        "tags": [
          "StockMovement"
        ],
        "summary": "🔒 List stock movements 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: `stockMovement:read`.\n\nPaginated list of stock movements - the warehouse ledger. Every posting that changed the stock of a product on a storage location is recorded here, which makes this the source for movement analyses. Filter by `product.id`, `storageLocation.id` or `warehouse.id` to narrow it down to what you want to analyse, and by `postedAt` to restrict the period.",
        "operationId": "GET::api-v3-stockmovements",
        "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`id`: *equals*, *notEquals*, *in*, *notIn*, *isNull*, *isNotNull* \n\n`product.id`: *equals*, *notEquals*, *in*, *notIn*, *isNull*, *isNotNull* \n\n`storageLocation.id`: *equals*, *notEquals*, *in*, *notIn*, *isNull*, *isNotNull* \n\n`warehouse.id`: *equals*, *notEquals*, *in*, *notIn*, *isNull*, *isNotNull* \n\n`project.id`: *equals*, *notEquals*, *in*, *notIn*, *isNull*, *isNotNull* \n\n`direction`: *equals*, *notEquals*, *in*, *notIn* \n\n`postedAt`: *equals*, *notEquals*, *lessThan*, *lessThanOrEquals*, *greaterThan*, *greaterThanOrEquals*, *isNull*, *isNotNull* \n\n`reference`: *equals*, *notEquals*, *in*, *notIn*, *contains*, *notContains*, *startsWith*, *endsWith*, *isNull*, *isNotNull* \n\n`editor`: *equals*, *notEquals*, *in*, *notIn*, *contains*, *notContains*, *startsWith*, *endsWith*, *isNull*, *isNotNull* \n\n`causedBy.type`: *equals*, *notEquals*, *in*, *notIn* \n\n`causedBy.id`: *equals*, *notEquals*, *in*, *notIn*, *contains*, *notContains*, *startsWith*, *endsWith*, *isNull*, *isNotNull* \n\n`stockMovementType.id`: *equals*, *notEquals*, *in*, *notIn*, *isNull*, *isNotNull* \n\n`createdAt`: *equals*, *notEquals*, *lessThan*, *lessThanOrEquals*, *greaterThan*, *greaterThanOrEquals*, *isNull*, *isNotNull*",
            "required": false,
            "style": "deepObject",
            "schema": {
              "type": "array",
              "items": {
                "properties": {
                  "key": {
                    "type": "string",
                    "enum": [
                      "id",
                      "product.id",
                      "storageLocation.id",
                      "warehouse.id",
                      "project.id",
                      "direction",
                      "postedAt",
                      "reference",
                      "editor",
                      "causedBy.type",
                      "causedBy.id",
                      "stockMovementType.id",
                      "createdAt"
                    ]
                  },
                  "op": {
                    "description": "operator",
                    "type": "string",
                    "enum": [
                      "equals",
                      "notEquals",
                      "in",
                      "notIn",
                      "isNull",
                      "isNotNull",
                      "lessThan",
                      "lessThanOrEquals",
                      "greaterThan",
                      "greaterThanOrEquals",
                      "contains",
                      "notContains",
                      "startsWith",
                      "endsWith"
                    ]
                  },
                  "value": {
                    "description": "The property value.",
                    "oneOf": [
                      {
                        "title": "String",
                        "type": "string"
                      },
                      {
                        "title": "Array",
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    ]
                  }
                },
                "type": "object",
                "additionalProperties": false
              }
            },
            "examples": {
              "All movements of one storage location since July": {
                "summary": "",
                "value": [
                  {
                    "key": "storageLocation.id",
                    "op": "equals",
                    "value": "14"
                  },
                  {
                    "key": "postedAt",
                    "op": "greaterThanOrEquals",
                    "value": "2026-07-01"
                  }
                ]
              },
              "Outbound movements of one product": {
                "summary": "",
                "value": [
                  {
                    "key": "product.id",
                    "op": "equals",
                    "value": "1032"
                  },
                  {
                    "key": "direction",
                    "op": "equals",
                    "value": "outbound"
                  }
                ]
              }
            }
          },
          {
            "name": "sort",
            "in": "query",
            "description": "Sort via id, -id, postedAt, -postedAt, quantity, -quantity, createdAt and -createdAt. Default sort is -id",
            "required": false,
            "style": "form",
            "explode": false,
            "schema": {
              "type": "array",
              "items": {
                "enum": [
                  "id",
                  "-id",
                  "postedAt",
                  "-postedAt",
                  "quantity",
                  "-quantity",
                  "createdAt",
                  "-createdAt"
                ]
              }
            }
          },
          {
            "name": "perPage",
            "in": "query",
            "description": "Number of items per page. Default: 15, Max: 100. A larger value is reduced to the maximum; omitting it or sending 0 selects the default.",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "example": 15
            }
          },
          {
            "name": "page",
            "in": "query",
            "description": "Page number. Omitting it or sending 0 selects the first page.",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "example": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Paginated list of stock movements - the warehouse ledger. Every posting that changed the stock of a product on a storage location is recorded here, which makes this the source for movement analyses. Filter by `product.id`, `storageLocation.id` or `warehouse.id` to narrow it down to what you want to analyse, and by `postedAt` to restrict the period.",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/StockMovement"
                      },
                      "x-description-ignore": true,
                      "x-example-ignore": true
                    },
                    "meta": {
                      "description": "Pagination meta data",
                      "properties": {
                        "currentPage": {
                          "description": "The current page number",
                          "type": "integer",
                          "example": 1
                        },
                        "from": {
                          "description": "The first item being returned in the current page",
                          "type": "integer",
                          "example": 1,
                          "nullable": true
                        },
                        "path": {
                          "description": "The base path for the paginated results",
                          "type": "string",
                          "example": "https://api.example.com/items"
                        },
                        "perPage": {
                          "description": "The number of items shown per page",
                          "type": "integer",
                          "example": 15
                        },
                        "to": {
                          "description": "The last item being returned in the current page",
                          "type": "integer",
                          "example": 15,
                          "nullable": true
                        }
                      },
                      "type": "object",
                      "x-example-ignore": true
                    },
                    "links": {
                      "description": "Pagination links",
                      "properties": {
                        "first": {
                          "description": "URL to the first page",
                          "type": "string",
                          "example": "https://api.example.com/items?page=1",
                          "nullable": true
                        },
                        "last": {
                          "description": "URL to the last page",
                          "type": "string",
                          "example": null,
                          "nullable": true
                        },
                        "prev": {
                          "description": "URL to the previous page",
                          "type": "string",
                          "example": null,
                          "nullable": true
                        },
                        "next": {
                          "description": "URL to the next page",
                          "type": "string",
                          "example": "https://api.example.com/items?page=17",
                          "nullable": true
                        }
                      },
                      "type": "object",
                      "x-example-ignore": true
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "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": [
          "stockMovement:read"
        ]
      }
    }
  }
}
```