The job payload field section of the job creation endpoint includes the following descriptions:
contact: Contact information at the origin. Either (firstname AND lastname) OR (company) are required.
firstname: Mandatory if company is empty.
lastname: Mandatory if company is empty.
company: Mandatory if firstname or lastname are empty.
Based on our testing none of the above fields are actually required (for both the pickups
or dropoffs
sections).
As a concrete example, the following job creation request results in successful job creation:
{
"job": {
"pickups": [
{
"address": "2 Tulse Hill, London SW2 2TP, UK",
"contact": {
"phone": "+34666777555"
}
}
],
"dropoffs": [
{
"package_type": "medium",
"address": "1 Montego Close Railton Road, London SE24 0LH, UK",
"contact": {
"phone": "+34666777555"
}
}
]
}
}