Back

Search

Search

Methods

Inventory

OrderPrintStatus
Orders

PurchaseOrder /Update_PurchaseOrderHeader

Allows 150 calls per minute

Response: PurchaseOrderHeader



Update purchase order header, only if status is not Delivered. Returns modified/recalculated purchase order header

Parameters

NameTypeDescription
updateParameterUpdate_PurchaseOrderHeaderParameterUpdate purchase order header class

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/Update_PurchaseOrderHeader

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.

updateParameter={
  "pkPurchaseID": "53b0e1ae-50ac-4522-bc33-78928fbbc941",
  "SupplierReferenceNumber": "sample string 2",
  "fkLocationId": "652c5102-cd92-45fd-9448-efb8a002b43f",
  "fkSupplierId": "e9ea1f81-a10c-47bb-bce1-ea80fdd2b9f6",
  "Currency": "sample string 3",
  "ExternalInvoiceNumber": "sample string 4",
  "UnitAmountTaxIncludedType": 1,
  "DateOfPurchase": "2022-09-05T15:10:00.8580192Z",
  "QuotedDeliveryDate": "2022-09-05T15:10:00.8590177Z",
  "ShippingTaxRate": 1.0,
  "ConversionRate": 1.0,
  "PostagePaid": 1.0
}

Response

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

{
  "pkPurchaseID": "dc8accf1-6fe9-47fc-aab6-a77ed418d4c4",
  "fkSupplierId": "5395c15e-f6ef-4b55-9c42-a5e5bfdb3a17",
  "fkLocationId": "9c87a799-a622-4004-8b07-d552942012dd",
  "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.8957439Z",
  "DateOfDelivery": "2022-09-05T15:10:03.8957439Z",
  "QuotedDeliveryDate": "2022-09-05T15:10:03.8957439Z",
  "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
}