Back

Search

Search

Methods

Inventory

OrderPrintStatus
Orders

Inventory /AddScrapItem

Allows 150 calls per minute

Response: AddScrapItemResponse



Used to add scrap item

Parameters

NameTypeDescription
requestAddScrapItemRequest

Permissions

GlobalPermissions.Inventory.ScrapItems.ScrapStockNode

Example Request

The following request format is required for this method.

Endpoint URL

POST https://eu-ext.linnworks.net/api/Inventory/AddScrapItem

Headers

Connection: keep-alive
Accept: application/json
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Accept-Encoding: gzip, deflate
Authorization: INSERT_YOUR_TOKEN_HERE

Request Body

This is an example of the request structure. Results will vary depending on your data.

request={
  "ScrapItem": {
    "Id": "a1e0b849-67df-4f64-98c5-ce4743a2e807",
    "StockItemId": "73ae479c-4a60-4cbc-ab20-eca99289d6ce",
    "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": "2022-03-09T13:04:03.0483414+00:00",
    "StockLocationId": "bb99a9d5-074b-4e5d-98bc-c5dea8a7a23b"
  },
  "LocationId": "0f3923be-8181-4148-9cfa-a3a18a21ac90",
  "IgnoreConsumption": true
}

Response

This is an example of the response JSON. Results will vary depending on your data.

{
  "ScrapItem": {
    "Id": "325da9fb-46ce-4fda-8997-f891f04f46ed",
    "StockItemId": "fd56c08c-930f-4707-9480-161f15ef9830",
    "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": "2022-03-09T13:04:14.4539337+00:00",
    "StockLocationId": "9160a78d-c7c5-46c2-9543-df0e81ac3648"
  }
}