post https://integrationgateway.falconflex.ai/api/v1/tasks/planned-trip/createclienttrip
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_id1",
"tripStepTypeId": 1
},
{
"taskId": "task_id2",
"tripStepTypeId": 1
},
{
"taskId": "task_id1",
"tripStepTypeId": 2
},
{
"taskId": "task_id2",
"tripStepTypeId": 2
}
]
}
- Orders are collected and delivered one after another. (Standard flow)
{
"newTripSteps":
[
{
"taskId": "task_id1",
"tripStepTypeId": 1
},
{
"taskId": "task_id1",
"tripStepTypeId": 2
},
{
"taskId": "task_id2",
"tripStepTypeId": 1
},
{
"taskId": "task_id2",
"tripStepTypeId": 2
}
]
}