createMockTrips
Use this API to create two trips for a given date for the users provided as part of the request. Each user can factor into only two trips on any given day. The API response provides only the trip information with its starting and ending times. The distance covered in a trip is 3 miles.
POST
https://iql.zendrive.com/iql/v1/mock-trips/H ‘Authorization: APIKEY <api_key>
Headers
Name
Type
Description
Authorization*
String
APIKEY <api_key>
Request Body
Name
Type
Description
user_ids*
Array
A list of user ids for which mock trips are to be created. For example:["mock_c2c198984bab11ed", “mock_9331acde48001122”]
Maximum length: 5
date*
String
Date format: YYYY-MM-DD. The date should within the driver activation date and a future date.
{
// Response
}
Sample Request
{
"user_ids" : ["mock_52c278564dd511edb7f9025911cb366b", “mock_cd474a844dd511ed8b6d025911cb366b”],
"date": "2022-10-15"
}
Sample Response
{
"trips": [
{
"user_id": "mock_52c278564dd511edb7f9025911cb366b",
"timestamp_start": 1665820800000,
"timestamp_end": 1665821100000
},
{
"user_id": "mock_cd474a844dd511ed8b6d025911cb366b",
"timestamp_start": 1665820800000,
"timestamp_end": 1665821100000
},
{
"user_id": "mock_52c278564dd511edb7f9025911cb366b",
"timestamp_start": 1665849600000,
"timestamp_end": 1665849900000
},
{
"user_id": "mock_cd474a844dd511ed8b6d025911cb366b",
"timestamp_start": 1665849600000,
"timestamp_end": 1665849900000
}
]
}