post
https://integrationgateway.falconflex.ai/api/v1/tasks/planned-trip/createclienttrip
This API can be used for creating Trips with different configuration. Please note that System won't make any changes or Optimizations for the Trip route so it's up to caller to make it Optimal
TripStepType
Every task has a set of steps that must be used in order to plan it's execution.
Each Trip must have 2 trip steps and Delivery step must come after the Pickup for each Task
The current supported TripStep types and their IDs are shown in the table below:
| TripStepType | TripStepTypeId |
|---|---|
| Pickup step | 1 |
| Delivery step | 2 |
Examples
- Orders are first collected and then delivered one by one (Useful when you have 1 pickup-up location)
{
"newTripSteps":
[
{
"taskId": "task_FF_id_1",
"tripStepTypeId": 1
},
{
"taskId": "task_FF_id_2",
"tripStepTypeId": 1
},
{
"taskId": "task_FF_id_1",
"tripStepTypeId": 2
},
{
"taskId": "task_FF_id_2",
"tripStepTypeId": 2
}
]
}
- Orders are collected and delivered one after another. (Standard flow)
{
"newTripSteps":
[
{
"taskId": "task_FF_id_1",
"tripStepTypeId": 1
},
{
"taskId": "task_FF_id_1",
"tripStepTypeId": 2
},
{
"taskId": "task_FF_id_2",
"tripStepTypeId": 1
},
{
"taskId": "task_FF_id_2",
"tripStepTypeId": 2
}
]
}