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": "b366969b-2b36-4aa0-8aa8-8f920b602eb1",
    "StockItemId": "944b3436-26e8-4b45-bdac-8d4ded3ac6f6",
    "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-10-09T15:11:39.5508569+01:00"
  },
  "LocationId": "6420ebb5-bb8e-4510-8051-af12196bbb5e"
}

Response

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

{
  "ScrapItem": {
    "Id": "1e62d1c0-2564-4b44-bcea-f0a0e1fbd7c3",
    "StockItemId": "e7bd4ffa-5729-4d25-8ef4-3dfdd850459e",
    "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-10-09T15:11:42.9419091+01:00"
  }
}