Back

Search

Search

Methods

Inventory

OrderPrintStatus
Orders

ShippingService

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

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": "e51911f8-4753-41f1-9c75-b8d5c7f29d62",
        "StockItemId": "27bd3327-2c80-4884-81e6-1452dc88343d",
        "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": "2021-07-29T09:24:52.7084492+01:00",
        "StockLocationId": "cedbb4a8-9243-4f1f-8e5d-e579b03d7fc2"
      }
    ]
  }
}