v1

latestOpenAPI 3.0.22026-07-223907721.1 MB
stock

Query Stock Changes

Returns all stock changes for a specific item from a given start date

get/v2/stocks/changes

Query parameters

itemIdstring uuid
Example:b45f6432-2462-4c6f-b00f-1d9d01000000
startDatestring date-time

The start date from which all stock Adjustments until now are returned.

pageNumberinteger

Number of the page of items to fetch.

pageSizeinteger

Size of the page that is specified by pageNumber.

Headers

x-tenant-idstring uuid required

The tenant ID for the target ERP instance.

x-runasstring

The User-Id (int or uuid) on whose behalf the request is executed. Requires scope 'Application.RunAs'.

x-companyidstring

The Company-Id (int or uuid) of the company on whose behalf the request is executed.

Response

The requested stock changes.

totalItemsinteger

Gets or sets the total number of items available in the data source.

pageNumberinteger

Gets or sets the current page number in the paginated list.

pageSizeinteger

Gets or sets the number of items per page in the paginated list.

totalPagesinteger

Gets the total number of pages based on the total number of items and the page size.

hasPreviousPageboolean

Gets a value indicating whether there is a previous page available in the paginated list.

hasNextPageboolean

Gets a value indicating whether there is a next page available.

nextPageNumberinteger

Gets the number of the next page if there is one; otherwise, returns the total number of pages.

previousPageNumberinteger

Gets the number of the previous page. If there is no previous page, it returns 1.

Example response

{
  "items": [
    {
      "itemId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
      "warehouseId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
      "storageLocationId": "b45f6432-2462-4c6f-b00f-1d9d01000000"
    }
  ]
}