Search BusinessTrips
Endpoint to find BusinessTrips using filtering parameters.
Query parameters
The beginning of the period of the search fromDate included (i.e. greater than or equal to) (Formats: yyyy-MM-dd, yyyy-MM-ddThh:mm:ss, yyyy-MM-ddThh:mm:ssZ).
The end of the period of the search toDate included (i.e. less than) (Formats: yyyy-MM-dd, yyyy-MM-ddThh:mm:ss, yyyy-MM-ddThh:mm:ssZ).
The status of the Purchase.
The status of the BusinessTrip.
It determines the date to be considered for fromDate and toDate parameters.
It determines the date to be considered for fromDate and toDate parameters.
The ID of the User that is travelling with the BusinessTrip.
The ID of the User that is travelling with the BusinessTrip.
A simple text to search in the BusinessTrip data.
A simple text to search in the BusinessTrip data.
It indicates the specific page to display (the counter starts from zero).
It indicates the specific page to display (the counter starts from zero).
It indicates the number of items per page.
It indicates the number of items per page.
It indicates how the pages are ordered.
It indicates how the pages are ordered.
It indicates the sorting direction applied to the above parameters. To apply a sorting on multiple parameters, set as many times the props parameter in the request.
It indicates the sorting direction applied to the above parameters. To apply a sorting on multiple parameters, set as many times the props parameter in the request.
[ "creationTime" ]
Response
The result is an array containing BusinessTrips.
Example response
{
"total": 168,
"pages": 7,
"page_size": 25,
"results_size": 25,
"results": [
{
"id": "7bf79328-a7ae-4222-aa54-091ff7f429a7",
"name": "There and back again",
"description": "EXAMPLE BUSINESS TRIP DESCRIPTION",
"author_user_id": "XMPL1234-000001",
"approver_user_id": "XMPL1234-000003",
"traveller_user_id": "XMPL1234-000003",
"traveller_card_id": "2d65bd5e-3fdf-4002-b166-bde7fb8863fa",
"total_amount": 10.25,
"wallet_id": "2d65bd5e-3fdf-4002-b166-bde7fb8863fa",
"creation_time": "2017-06-01T12:48:40Z",
"last_update_time": "2017-06-01T12:48:40Z"
}
]
}