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": "d938bce8-0194-4ecb-a56c-5d633593ad54",
    "StockItemId": "0507ae12-d20c-4fa0-b4c8-5d946d3baad8",
    "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": "2018-10-03T11:12:33.9170989+01:00"
  },
  "LocationId": "badffff5-4fda-4b3b-ad14-be74b96eba15"
}

Response

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

{
  "ScrapItem": {
    "Id": "4f6c9157-853e-4921-9fb4-e5445ba9167d",
    "StockItemId": "6e93d30a-3bbe-4b4f-ac19-19c73622f978",
    "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": "2018-10-03T11:12:36.9462326+01:00"
  }
}