API Response for Job Creation POST Call:
{
“error”: “RECORD_INVALID”,
“message”: “Unable to save record”,
“data”: {
“job.dropoffs”: [
“must be filled”
]
}
}
My Payload:
{
“job”: {
“pickups”: [
{
“address”: “32 Coombe Ln, Raynes Park, London SW20 0LA”,
“comment”: “Ask Bobby”,
“contact”: {
“firstname”: “ALI”,
“lastname”: “Brown”,
“phone”: “+33610101010”,
“email”: “bobby.brown@pizzashop.com”,
“company”: “Pizza Shop”
},
“access_codes”: [
{
“code”: “your_access_code_1”,
“type”: “text”,
“title”: “access code title”,
“instructions”: “please put your instructions here”
}
]
}
],
“dropoffs”: [
{
“package_type”: “medium”,
“package_description”: “yellow package”,
“address”: “23 Ethelbert Rd, London SW20 8QD”,
“comment”: “3nd floor on the right”,
“end_customer_time_window_start”: “2023-12-12T11:00:00.000+02:00”,
“end_customer_time_window_end”: “2023-12-12T13:00:00.000+02:00”
},
{
“package_type”: “medium”,
“package_description”: “yellow package”,
“address”: “23 Ethelbert Rd, London SW20 8QD”,
“comment”: “3nd floor on the right”,
“end_customer_time_window_start”: “2021-12-12T11:00:00.000+02:00”,
“end_customer_time_window_end”: “2021-12-12T13:00:00.000+02:00”
}
]
}
}