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": "3a1223e1-a29c-429c-8864-4f806c25c481",
  "pkPurchaseId": "68f15ce4-3e51-4afe-8e3c-e4c411c7f9c2"
}

Response

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

{
  "pkPurchaseID": "e68d01af-5b45-4a76-a4f2-6f6a516ea94d",
  "fkSupplierId": "daa08bcf-5d05-4cea-a240-8a06a7cd1bfe",
  "fkLocationId": "61d67619-9ce0-45e1-b82b-f83470c22a51",
  "ExternalInvoiceNumber": "sample string 4",
  "Status": 0,
  "Currency": "sample string 5",
  "SupplierReferenceNumber": "sample string 6",
  "Locked": true,
  "LineCount": 8,
  "DeliveredLinesCount": 9,
  "UnitAmountTaxIncludedType": 10,
  "DateOfPurchase": "2022-08-03T16:02:32.1118239Z",
  "DateOfDelivery": "2022-08-03T16:02:32.1118239Z",
  "QuotedDeliveryDate": "2022-08-03T16:02:32.1118239Z",
  "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
}