Update purchase order header, only if status is not Delivered. Returns modified/recalculated purchase order header
Name | Type | Description |
---|---|---|
updateParameter | Update_PurchaseOrderHeaderParameter | Update purchase order header class |
The following request format is required for this method.
GET | POST https://eu-ext.linnworks.net/api/PurchaseOrder/Update_PurchaseOrderHeader
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
This is an example of the request structure. Results will vary depending on your data.
updateParameter={
"pkPurchaseID": "c8d3f0bc-8c19-40f9-9947-f6d9c0f360d9",
"SupplierReferenceNumber": "sample string 2",
"fkLocationId": "37b691d8-28d1-450c-aa6c-ef261d0bdc65",
"fkSupplierId": "d5acb518-397f-4afb-94fb-44fca3277234",
"Currency": "sample string 3",
"ExternalInvoiceNumber": "sample string 4",
"UnitAmountTaxIncludedType": 1,
"DateOfPurchase": "2023-01-10T13:49:45.5652061Z",
"QuotedDeliveryDate": "2023-01-10T13:49:45.5652061Z",
"ShippingTaxRate": 1.0,
"ConversionRate": 1.0,
"PostagePaid": 1.0
}
This is an example of the response JSON. Results will vary depending on your data.
{
"pkPurchaseID": "ac21734e-f1d0-4ad1-893c-44b557ef071f",
"fkSupplierId": "6137b9c2-24e9-488e-aaeb-d4895fd88570",
"fkLocationId": "f606f6ce-0ef8-4213-a991-f3bcfa095d94",
"ExternalInvoiceNumber": "sample string 4",
"Status": 0,
"Currency": "sample string 5",
"SupplierReferenceNumber": "sample string 6",
"Locked": true,
"LineCount": 8,
"DeliveredLinesCount": 9,
"UnitAmountTaxIncludedType": 10,
"DateOfPurchase": "2023-01-10T13:49:49.8969628Z",
"DateOfDelivery": "2023-01-10T13:49:49.8969628Z",
"QuotedDeliveryDate": "2023-01-10T13:49:49.8969628Z",
"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
}