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 HTTP/1.1
Host: eu-ext.linnworks.net
Connection: keep-alive
Accept: application/json, text/javascript, */*; q=0.01
Origin: https://www.linnworks.net
Accept-Language: en
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.90 Safari/537.36
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Referer: https://www.linnworks.net/
Accept-Encoding: gzip, deflate
Authorization: INSERT_YOUR_TOKEN_HERE
changeStatusParameter={
"pkPurchaseId": "c0cf8054-1965-42d8-8f54-4f2b561a786f",
"status": 0
}
This is an example response. Results may vary depending on your data.
{
"pkPurchaseID": "a04cd580-1ba6-4bb8-afc6-c652f3bf0b0b",
"fkSupplierId": "453b1dfc-d45a-4132-91b5-759bfc3e288f",
"fkLocationId": "c05a3a10-8419-4ad8-9f4f-1b21aea5deb8",
"ExternalInvoiceNumber": "sample string 4",
"Status": 0,
"Currency": "sample string 5",
"SupplierReferenceNumber": "sample string 6",
"Locked": true,
"LineCount": 8,
"DeliveredLinesCount": 9,
"UnitAmountTaxIncludedType": 10,
"DateOfPurchase": "2019-11-28T09:46:00.3632674Z",
"DateOfDelivery": "2019-11-28T09:46:00.3632674Z",
"QuotedDeliveryDate": "2019-11-28T09:46:00.3632674Z",
"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
}