Hello is it possible to stack deliveries with API? E.g. add another dropoff to an existing delivery.
Thanks
Hello is it possible to stack deliveries with API? E.g. add another dropoff to an existing delivery.
Thanks
Hi,
Thank you for using our community forum.
Yes, our API does support creating a job with multiple dropoffs for a single pickup. However, we recommend creating jobs with only one dropoff and allowing our system to manage any potential stacking.
If you prefer to handle stacking on your own, you can add multiple dropoffs by including them within job.dropoffs
, which is an array of objects. Below is an example of a job creation payload with multiple dropoffs for your reference:
{
"job": {
"pickups": [
{
"address": "32 Coombe Ln, Raynes Park, London SW20 0LA",
"comment": "Ask Bobby",
"contact": {
"firstname": "Bobby",
"lastname": "Brown",
"phone": "+33610101010",
"email": "bobby.brown@pizzashop.com",
"company": "Pizza Shop"
}
}
],
"dropoffs": [
{
"package_type": "medium",
"package_description": "yellow package",
"client_reference": "[your_client_ref]",
"address": "23 Ethelbert Rd, London SW20 8QD",
"comment": "3rd floor on the right",
"contact": {
"firstname": "Julia",
"lastname": "Moore",
"phone": "+33712222222",
"email": "client3@email.com",
"company": "Sample Company Inc."
}
},
{
"package_type": "small",
"package_description": "Blue package",
"client_reference": "[your_client_ref_2]",
"address": "30 Ethelbert Rd, London SW20 8QD",
"comment": "1st floor on the left",
"contact": {
"firstname": "John",
"lastname": "Doe",
"phone": "+33713333333",
"email": "client4@email.com",
"company": "Sample Company 2 Inc."
}
}
]
}
}
I hope you find this information useful but let us know if you have additional questions.
Best,
Hi Andreas, thank you!
What about adding on after the pick has been created? E.g. to an existing order?
Alternatively Stuart handles stacking?
Cheers