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": "931e67f4-f3db-4e5b-8002-421f7339eb2f",
    "StockItemId": "97d12d38-a939-4e07-acf2-2be2fa59d6e8",
    "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-06-12T09:27:50.3984941+01:00"
  },
  "LocationId": "c31582fb-5c82-4e11-a383-a734ef41e3b5"
}

Response

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

{
  "ScrapItem": {
    "Id": "4f93e453-fc71-4a2b-9cd7-067b355397d0",
    "StockItemId": "b06bc30c-5815-4dd1-85c8-580a8826b660",
    "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-06-12T09:27:53.2975222+01:00"
  }
}