Back

Search

Search

Methods

Inventory

OrderPrintStatus
Orders

Inventory /GetScrapHistory

Allows 150 calls per minute

Response: GetScrapHistoryResponse



Used to get scrap history

Parameters

NameTypeDescription
requestGetScrapHistoryRequest

Permissions

GlobalPermissions.Inventory.ScrapItems.ScrapHistoryNode

Example Request

The following request format is required for this method.

Endpoint URL

GET | POST https://eu-ext.linnworks.net/api/Inventory/GetScrapHistory

Headers

Connection: keep-alive
Accept: application/json
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Accept-Encoding: gzip, deflate
Authorization: INSERT_YOUR_TOKEN_HERE

Request Body

This is an example of the request structure. Results will vary depending on your data.

request={
  "PageNumber": 1,
  "EntriesPerPage": 2
}

Response

This is an example of the response JSON. Results will vary depending on your data.

{
  "ScrapHistory": {
    "PageNumber": 1,
    "EntriesPerPage": 2,
    "TotalEntries": 3,
    "TotalPages": 2,
    "Data": [
      {
        "Id": "bca9e98a-486f-4331-b13f-323d0b0e0619",
        "StockItemId": "6d11aa21-5066-468e-b7a2-03e3f402bf6d",
        "ItemNumber": "sample string 3",
        "ItemTitle": "sample string 4",
        "Quantity": 5,
        "CategoryName": "sample string 6",
        "ScrapReason": "sample string 7",
        "TotalCost": 8.1,
        "UserName": "sample string 9",
        "CreatedDate": "2022-09-05T15:10:06.2430852+03:00",
        "StockLocationId": "1832eb51-f939-4e7f-99a8-07869a43e496"
      }
    ]
  }
}