Change purchase order status. Can change from:
PENDING to OPEN, which will populate Due (OnOrder) values in stock levels,
OPEN to DELIVERED, which will consolidate Due values in stock levels
PARTIAL to DELIVERED, which will consolidate Due values in stock levels
Name | Type | Description |
---|---|---|
changeStatusParameter | Change_PurchaseOrderStatusParameter | Class that represents the parameters for Changing the Purchase Order Status |
The following request format is required for this method.
POST https://eu-ext.linnworks.net/api/PurchaseOrder/Change_PurchaseOrderStatus
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.
changeStatusParameter={
"pkPurchaseId": "8ded7650-9a57-4e88-b32b-f286267dce99",
"status": 0
}
This is an example of the response JSON. Results will vary depending on your data.
{
"pkPurchaseID": "9696a9f9-b5da-4d2a-b521-4b20bb368191",
"fkSupplierId": "a361cba3-79e5-4e8a-bd9c-1f4435bd6a28",
"fkLocationId": "f7eb7ee6-b4d7-4bf4-b190-e5dc49b57169",
"ExternalInvoiceNumber": "sample string 4",
"Status": 0,
"Currency": "sample string 5",
"SupplierReferenceNumber": "sample string 6",
"Locked": true,
"LineCount": 8,
"DeliveredLinesCount": 9,
"UnitAmountTaxIncludedType": 10,
"DateOfPurchase": "2022-03-09T13:04:12.1200714Z",
"DateOfDelivery": "2022-03-09T13:04:12.1200714Z",
"QuotedDeliveryDate": "2022-03-09T13:04:12.1200714Z",
"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
}