Multi-deliveries transport are using same endpoint as simple transport but with modification an deliveries and segments
Specificity for Multi-deliveries transport :
Deliveries
The deliveries object is an array. You need to include as many deliveries as you have loading-unloading point pairs. Each delivery represents one loading point and its corresponding unloading point.
Segments
The segments represent the truck's route. They allow you to define the sequence of activities for each step of the journey.
For example, you have 2 deliveries:
A -> B
C -> D
If you want to complete all the pickups first and then all the deliveries, starting with B, you should use the following segments:
A -> C
C -> B
B -> D
This way, it specifies that the truck will start with pickup A, followed by pickup C, and then proceed to deliveries B and D.
Special Process for Deliveries Sharing the Same Activity
When multiple deliveries share the same activity, these similar activities must be differentiated by a unique remote_id.
For example, you have 2 deliveries:
A -> B
A -> C
You need to differential both A activities, meaning that you have A and A'
If you want to complete pickup first and then all the deliveries, starting with B, you should use the following segments:
A -> A'
A'-> B
B -> C
This way, it specifies that the truck will start with pickup A, then proceed to deliveries B and D.
In this example, remote ID is used for each activity because both deliveries have the same pickup site