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": "f951f893-c863-4d63-ac14-1e6ac03d8b8f",
  "pkPurchaseId": "92d2bc9e-4dc2-4c6a-8dab-01712cf79e57"
}

Response

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

{
  "pkPurchaseID": "f5b04268-5446-4d03-bec1-8701423c40ed",
  "fkSupplierId": "229238c4-0d35-433c-a2d6-251b4ac83e90",
  "fkLocationId": "337a757a-a368-47e1-a2a5-9b48e49b2609",
  "ExternalInvoiceNumber": "sample string 4",
  "Status": 0,
  "Currency": "sample string 5",
  "SupplierReferenceNumber": "sample string 6",
  "Locked": true,
  "LineCount": 8,
  "DeliveredLinesCount": 9,
  "UnitAmountTaxIncludedType": 10,
  "DateOfPurchase": "2019-10-09T15:11:43.7727013Z",
  "DateOfDelivery": "2019-10-09T15:11:43.7727013Z",
  "QuotedDeliveryDate": "2019-10-09T15:11:43.7727013Z",
  "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
}