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": "de6737fa-c06a-4b01-a347-32c05b84cca3",
  "pkPurchaseId": "76e741f8-5dbd-4306-aa9b-7967350c58dd"
}

Response

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

{
  "pkPurchaseID": "e571a46c-62cc-4506-9721-b904ae1dfafb",
  "fkSupplierId": "36cb87de-33ad-4cda-9ba1-5bc131216ebe",
  "fkLocationId": "8f032470-bfca-4d2c-959a-9d54f90567fb",
  "ExternalInvoiceNumber": "sample string 4",
  "Status": 0,
  "Currency": "sample string 5",
  "SupplierReferenceNumber": "sample string 6",
  "Locked": true,
  "LineCount": 8,
  "DeliveredLinesCount": 9,
  "UnitAmountTaxIncludedType": 10,
  "DateOfPurchase": "2018-10-03T11:12:35.3070788Z",
  "DateOfDelivery": "2018-10-03T11:12:35.3070788Z",
  "QuotedDeliveryDate": "2018-10-03T11:12:35.3070788Z",
  "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
}