Create Planned trip

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:

TripStepTypeTripStepTypeId
Pickup step1
Delivery step2

Examples

  1. 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  
        }  
    ]  
}
  1. 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  
        }  
    ]  
}
Language
Credentials
Header
Click Try It! to start a request and see the response here!