Back

Search

Search

Methods

Inventory

OrderPrintStatus
Orders

ShippingService

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.PurchaseOrder.EditPurchaseOrderNode

Example Request

The following request format is required for this method.

Endpoint URL

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": "0b3f75af-6515-48f3-85e6-b0b967c8ad0d",
  "pkPurchaseId": "aadd8baa-8f73-4026-b8d3-1fcc903efd60"
}

Response

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

{
  "pkPurchaseID": "0216fe05-9cde-421d-bbfc-1a244e872429",
  "fkSupplierId": "7fd5a47c-9906-49b9-99ad-ab048b74af47",
  "fkLocationId": "1d9727a1-f7fa-41d6-b498-204df67b6d57",
  "ExternalInvoiceNumber": "sample string 4",
  "Status": 0,
  "Currency": "sample string 5",
  "SupplierReferenceNumber": "sample string 6",
  "Locked": true,
  "LineCount": 8,
  "DeliveredLinesCount": 9,
  "UnitAmountTaxIncludedType": 10,
  "DateOfPurchase": "2021-07-29T09:24:43.2722149Z",
  "DateOfDelivery": "2021-07-29T09:24:43.2722149Z",
  "QuotedDeliveryDate": "2021-07-29T09:24:43.2722149Z",
  "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
}