Back

Search

Search

Methods

Inventory

Orders

PurchaseOrder /Delete_PurchaseOrderItem

Response: PurchaseOrderHeader



Delete purchase order item line from PENDING order. Returns recalculated/modified purchase order header

Parameters

NameTypeDescription
deleteItemParameterDelete_PurchaseOrderItemParameterDelete purchase order item parameter

HTTP Endpoint

Server /PurchaseOrder / Delete_PurchaseOrderItem

Permissions

GlobalPermissions.PurchaseOrder.EditPurchaseOrderNode

Example Code

Example Request

The following request format is required for this method.

POST https://eu-ext.linnworks.net//api/PurchaseOrder/Delete_PurchaseOrderItem 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

deleteItemParameter={
  "pkPurchaseItemId": "54b13146-739e-439e-ba94-dff235bfd917",
  "pkPurchaseId": "761c6ef0-f8c6-420e-a7fe-a552a4e195da"
}

Response

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

{
  "pkPurchaseID": "e678a0c4-67ae-458b-9181-e79f0b66112d",
  "fkSupplierId": "97618f3a-0d51-4b43-868a-7c13a7e49e3a",
  "fkLocationId": "cb741d75-8496-4d2b-8a38-5587db59d848",
  "ExternalInvoiceNumber": "sample string 4",
  "Status": 0,
  "Currency": "sample string 5",
  "SupplierReferenceNumber": "sample string 6",
  "Locked": true,
  "LineCount": 8,
  "DeliveredLinesCount": 9,
  "UnitAmountTaxIncludedType": 10,
  "DateOfPurchase": "2019-11-28T09:46:00.3343765Z",
  "DateOfDelivery": "2019-11-28T09:46:00.3343765Z",
  "QuotedDeliveryDate": "2019-11-28T09:46:00.3343765Z",
  "PostagePaid": 4.0,
  "TotalCost": 5.0,
  "taxPaid": 6.0,
  "ShippingTaxRate": 7.0,
  "ConversionRate": 8.0,
  "ConvertedShippingCost": 9.0,
  "ConvertedShippingTax": 10.0,
  "ConvertedOtherCost": 11.0,
  "ConvertedOtherTax": 12.0,
  "ConvertedGrandTotal": 13.0
}