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.EditPurchaseOrder.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": "b26b9cf2-99be-4c53-94c0-e6cece61ac90",
  "pkPurchaseId": "cfad2f06-cfa8-4783-8dfd-eec2cdb0d44b"
}

Response

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

{
  "pkPurchaseID": "3d4c0dcd-044b-42d5-8322-c76651994862",
  "fkSupplierId": "9131f4d1-f149-48b2-8131-34cf7738f40b",
  "fkLocationId": "7243c9f5-9099-4e32-82e4-b4ba3d8884ee",
  "ExternalInvoiceNumber": "sample string 4",
  "Status": 0,
  "Currency": "sample string 5",
  "SupplierReferenceNumber": "sample string 6",
  "Locked": true,
  "LineCount": 8,
  "DeliveredLinesCount": 9,
  "DateOfPurchase": "2018-02-19T16:57:07.6955204Z",
  "DateOfDelivery": "2018-02-19T16:57:07.6955204Z",
  "QuotedDeliveryDate": "2018-02-19T16:57:07.6955204Z",
  "PostagePaid": 4.0,
  "TotalCost": 5.0,
  "taxPaid": 6.0,
  "ShippingTaxRate": 7.0,
  "ConversionRate": 8.0
}