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": "8837469f-7128-498d-8172-9e5053fce803",
  "SupplierReferenceNumber": "sample string 2",
  "fkLocationId": "6bd8133a-cefe-4bda-a3ed-0a86551d2df9",
  "fkSupplierId": "2c96bf85-115b-49d9-94ec-1ac651721320",
  "Currency": "sample string 3",
  "ExternalInvoiceNumber": "sample string 4",
  "UnitAmountTaxIncludedType": 1,
  "DateOfPurchase": "2022-08-03T16:02:28.412438Z",
  "QuotedDeliveryDate": "2022-08-03T16:02:28.412438Z",
  "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": "937608ee-632a-4df7-a073-2669bde3d04b",
  "fkSupplierId": "5076da54-b187-4fdd-b651-24b87f1eae1f",
  "fkLocationId": "8f7d42e9-c23d-4e14-9a00-7eaa7f30d12b",
  "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.0679419Z",
  "DateOfDelivery": "2022-08-03T16:02:32.0679419Z",
  "QuotedDeliveryDate": "2022-08-03T16:02:32.0679419Z",
  "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
}