Back

Search

Search

Methods

Inventory

Orders

Inventory /AddScrapItem

Response: AddScrapItemResponse



Used to add scrap item

Parameters

NameTypeDescription
requestAddScrapItemRequest

HTTP Endpoint

Server /Inventory / AddScrapItem

Permissions

GlobalPermissions.Inventory.ScrapItems.ScrapStockNode

Example Code

Example Request

The following request format is required for this method.

POST https://eu-ext.linnworks.net//api/Inventory/AddScrapItem HTTP/1.1
Host: eu-ext.linnworks.net
Connection: keep-alive
Accept: application/json, text/javascript, */*; q=0.01
Origin: https://www.linnworks.net
Accept-Language: en
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.90 Safari/537.36
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Referer: https://www.linnworks.net/
Accept-Encoding: gzip, deflate
Authorization: INSERT_YOUR_TOKEN_HERE

request={
  "ScrapItem": {
    "Id": "f7c1f2a5-e9dd-40f6-9c20-789e65da78e5",
    "StockItemId": "57fae422-074e-4dcb-bd5c-faa5d13a3811",
    "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": "2019-07-23T15:31:54.5271241+01:00"
  },
  "LocationId": "21282921-02a2-42d2-b365-9a82cab6edb2"
}

Response

This is an example response. Results may vary depending on your data.

{
  "ScrapItem": {
    "Id": "a7a23abd-32d1-4d44-890e-833c942a5590",
    "StockItemId": "d945d110-60e9-4083-9ddf-c062c44cef61",
    "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": "2019-07-23T15:31:57.3152051+01:00"
  }
}