Creates a CSV file of the search result for download
Name | Type | Description |
---|---|---|
from | Nullable<DateTime> | The lower end of the date range to search. Can be null if searching for 'all dates'. Maximum range is 3 months. |
to | Nullable<DateTime> | The upper end of the date range to search. Can be null if searching for 'all dates'. Maximum range is 3 months. |
dateType | ReturnsRefundsSearchDateType | The search type (e.g. ALLDATES) |
searchField | String | The field to search by. Can be found by calling GetSearchTypes. |
exactMatch | Boolean | Set to true if an exact match is required for the search data. |
searchTerm | String | The term which you are searching for. |
sortColumn | String | The column to sort by |
sortDirection | Boolean | The sort direction (true = ascending, false = descending). |
historyType | HistoryType | Search type. Allow RETURNS or REFUNDS |
The following request format is required for this method.
GET | POST https://eu-ext.linnworks.net/api/ReturnsRefunds/CreateReturnsRefundsCSV
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.
from=2023-01-10T13:49:13.1732256+00:00&to=2023-01-10T13:49:13.1732256+00:00&dateType=0&searchField=sample string 1&exactMatch=true&searchTerm=sample string 1&sortColumn=sample string 1&sortDirection=true&historyType=0
This is an example of the response JSON. Results will vary depending on your data.
"sample string 1"