Searches purchase order by a number of parameters, such as Date of Purchase, status, reference number.
Returns paged result of purchase order header.
Name | Type | Description |
---|---|---|
request | Search_PurchaseOrder2Request | Search Parameters |
The following request format is required for this method.
GET | POST https://eu-ext.linnworks.net/api/PurchaseOrder/Search_PurchaseOrders2
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.
request={
"DateFrom": "2022-08-03T16:02:28.4034624+01:00",
"DateTo": "2022-08-03T16:02:28.4034624+01:00",
"Status": 0,
"SearchValue": "sample string 1",
"SearchType": 0,
"EntriesPerPage": 2,
"PageNumber": 3,
"Location": [
"1b93d3f1-85e7-47e1-a084-256c30aa9046"
],
"Supplier": [
"7379a1f3-4af2-4c3c-94c2-4b9d2e62010c"
]
}
This is an example of the response JSON. Results will vary depending on your data.
{
"Result": [
{
"pkPurchaseID": "89d0e823-b840-48de-897f-efd7223e8ee7",
"fkSupplierId": "16eb6797-dd22-4af6-a642-4797638cea5b",
"fkLocationId": "e357cdb8-b2a7-4f8a-80dc-78614e216239",
"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.0450002Z",
"DateOfDelivery": "2022-08-03T16:02:32.0450002Z",
"QuotedDeliveryDate": "2022-08-03T16:02:32.0459977Z",
"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
}
],
"TotalPages": 1,
"CurrentPageNumber": 2,
"EntriesPerPage": 3,
"TotalNumberOfRecords": 4
}