Back

Search

Search

Methods

Inventory

OrderPrintStatus
Orders

PurchaseOrder /Delete_PurchaseOrderItem

Allows 150 calls per minute

Response: PurchaseOrderHeader



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

Parameters

NameTypeDescription
deleteItemParameterDelete_PurchaseOrderItemParameterDelete purchase order item parameter

Permissions

GlobalPermissions.Inventory.PurchaseOrder.EditPurchaseOrderNode

Example Request

The following request format is required for this method.

Endpoint URL

GET | POST https://eu-ext.linnworks.net/api/PurchaseOrder/Delete_PurchaseOrderItem

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.

deleteItemParameter={
  "pkPurchaseItemId": "31bf848b-df09-4359-b755-8ae621ad80c1",
  "pkPurchaseId": "e6bb2711-36f6-4191-baab-7d1dead8c2e9"
}

Response

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

{
  "pkPurchaseID": "158bf35b-518c-4da9-8f78-b258e30fe348",
  "fkSupplierId": "eb439793-3297-4352-8336-b0d495564fa3",
  "fkLocationId": "30dfe19d-dc5a-4dc0-860d-a007a9cda3da",
  "ExternalInvoiceNumber": "sample string 4",
  "Status": 0,
  "Currency": "sample string 5",
  "SupplierReferenceNumber": "sample string 6",
  "Locked": true,
  "LineCount": 8,
  "DeliveredLinesCount": 9,
  "UnitAmountTaxIncludedType": 10,
  "DateOfPurchase": "2023-01-10T13:49:49.9277248Z",
  "DateOfDelivery": "2023-01-10T13:49:49.9277248Z",
  "QuotedDeliveryDate": "2023-01-10T13:49:49.9277248Z",
  "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
}