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": "25bf5cac-9205-493a-b818-8f729081f3f1",
  "pkPurchaseId": "ff3b9d07-e115-4e71-90d5-52d2cda7ade4"
}

Response

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

{
  "pkPurchaseID": "0ebc9d85-a92d-4dda-86b6-f5269c48f13a",
  "fkSupplierId": "0a2833c3-7210-4f7e-bd97-9b6a21c288c5",
  "fkLocationId": "62e25d88-56d9-463e-8979-28662be621dd",
  "ExternalInvoiceNumber": "sample string 4",
  "Status": 0,
  "Currency": "sample string 5",
  "SupplierReferenceNumber": "sample string 6",
  "Locked": true,
  "LineCount": 8,
  "DeliveredLinesCount": 9,
  "UnitAmountTaxIncludedType": 10,
  "DateOfPurchase": "2022-09-05T15:10:03.9327702Z",
  "DateOfDelivery": "2022-09-05T15:10:03.9327702Z",
  "QuotedDeliveryDate": "2022-09-05T15:10:03.9327702Z",
  "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
}