Back

Search

Search

Methods

Inventory

OrderPrintStatus
Orders

ShippingService

Inventory /AddScrapItem

Allows 150 calls per minute

Response: AddScrapItemResponse



Used to add scrap item

Parameters

NameTypeDescription
requestAddScrapItemRequest

Permissions

GlobalPermissions.Inventory.ScrapItems.ScrapStockNode

Example Request

The following request format is required for this method.

Endpoint URL

POST https://eu-ext.linnworks.net/api/Inventory/AddScrapItem

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={
  "ScrapItem": {
    "Id": "e48e992d-d92b-4c5f-b8f3-55a7d5e94388",
    "StockItemId": "ca8869bb-674d-481f-bc0d-a97d0149e9a1",
    "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:13.5301215+01:00",
    "StockLocationId": "9016c509-661e-4bdc-a5aa-f025c55bf095"
  },
  "LocationId": "4e921272-328b-4fa4-a82c-c8cd29b82e09",
  "IgnoreConsumption": true
}

Response

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

{
  "ScrapItem": {
    "Id": "404e29cb-68ba-4a91-aa61-1d4ec6ba4440",
    "StockItemId": "a7d292ab-0252-4754-a19f-843999f0ed89",
    "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.713464+01:00",
    "StockLocationId": "132ca12d-0e9d-4a49-a875-0086b5fcaf55"
  }
}