Search BusinessTrips
Changed onEndpoint to find BusinessTrips using filtering parameters.
Request
- Base URLhttps://api.soldo.com
- AuthOAuth 2Client credentialsToken URLhttps://api.soldo.com/oauth/authorizeScopesbusiness_trip_read
- TypeScriptA function with typed inputs. Its response is checked against the schema.
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.
The ID of the User that is travelling with the BusinessTrip.
A simple text to search in the BusinessTrip data.
It indicates the specific page to display (the counter starts from zero).
It indicates the number of items per page.
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.
[ "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"
}
]
}Changes
- info
for the
queryrequest parameterfromDate, the type was generalized from no type tostring, and format from no format todate-time - info
for the
queryrequest parametertoDate, the type was generalized from no type tostring, and format from no format todate-time
- info
- info
endpoint added
- info