Back

Search

Search

Methods

Inventory

Orders

Inventory /ScrapBatchedItem

Response: ScrapBatchedItemResponse



Used to scrap batched item

Parameters

NameTypeDescription
requestScrapBatchedItemRequest

HTTP Endpoint

Server /Inventory / ScrapBatchedItem

Permissions

GlobalPermissions.Inventory.ScrapItems.ScrapStock.ScrapStockNode

Example Code

Example Request

The following request format is required for this method.

POST https://eu-ext.linnworks.net//api/Inventory/ScrapBatchedItem 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": "dc6f561b-ac92-4236-b624-9b5070f9411b",
    "StockItemId": "277be6d2-e21b-408b-bc8f-6f41618a5edb",
    "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-02-19T16:57:06.68311+00:00"
  },
  "LocationId": "f6ca7e10-18ed-4dfe-ba90-7418f1d47066",
  "BatchInventoryId": 2
}

Response

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

{
  "ScrapItem": {
    "Id": "528f4c7f-04d0-422b-b159-d64745acee10",
    "StockItemId": "b9744a91-bea4-4c67-a32d-92ac4eedc0ba",
    "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-02-19T16:57:08.7813865+00:00"
  }
}