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": "2023-01-10T13:49:45.5602223+00:00",
"DateTo": "2023-01-10T13:49:45.5602223+00:00",
"Status": 0,
"SearchValue": "sample string 1",
"SearchType": 0,
"EntriesPerPage": 2,
"PageNumber": 3,
"Location": [
"c08753bc-961b-45f4-a8db-3a67a622e39e"
],
"Supplier": [
"cf8bc719-2084-4250-bfdf-56d0dca09ffa"
]
}
This is an example of the response JSON. Results will vary depending on your data.
{
"Result": [
{
"pkPurchaseID": "5df493d8-0663-4c5f-9a72-423e38fe2cfb",
"fkSupplierId": "12d1a4ca-8e3a-4eba-a336-8cd722a9c0c6",
"fkLocationId": "d2b962b9-9906-43ec-83ce-31b324f14804",
"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.8827312Z",
"DateOfDelivery": "2023-01-10T13:49:49.8827312Z",
"QuotedDeliveryDate": "2023-01-10T13:49:49.8827312Z",
"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
}