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.

Get

Endpoint URL

This is an example of the request structure. Results will vary depending on your data.

GET https://eu-ext.linnworks.net/api/PurchaseOrder/Delete_PurchaseOrderItem?deleteItemParameter=%7B%0D%0A%20%20%22pkPurchaseItemId%22%3A%20%22377851f6-f7f5-4146-9cc8-99bc9d8d7b9f%22%2C%0D%0A%20%20%22pkPurchaseId%22%3A%20%2202b551b4-8ac2-4825-a795-fe92a8670ee6%22%0D%0A%7D

Headers

Connection: keep-alive
Accept: application/json
Accept-Encoding: gzip, deflate
Authorization: INSERT_YOUR_TOKEN_HERE

Post

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": "377851f6-f7f5-4146-9cc8-99bc9d8d7b9f",
  "pkPurchaseId": "02b551b4-8ac2-4825-a795-fe92a8670ee6"
}

Response

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

{
  "pkPurchaseID": "86e17f5a-ce62-43d5-b730-235dc499ded9",
  "fkSupplierId": "b0374129-146f-4c46-a9ef-a3a515d9e2bb",
  "fkLocationId": "1c1d33ed-f745-40d5-8dfd-953a3cd70089",
  "ExternalInvoiceNumber": "sample string 4",
  "Status": 0,
  "Currency": "sample string 5",
  "SupplierReferenceNumber": "sample string 6",
  "Locked": true,
  "LineCount": 8,
  "DeliveredLinesCount": 9,
  "UnitAmountTaxIncludedType": 10,
  "DateOfPurchase": "2022-01-13T12:45:46.3776255Z",
  "DateOfDelivery": "2022-01-13T12:45:46.3776255Z",
  "QuotedDeliveryDate": "2022-01-13T12:45:46.3776255Z",
  "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
}