Skip to content

Instantly share code, notes, and snippets.

@iansalazar444
Created December 14, 2023 07:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iansalazar444/535ab04267034e4af8de861f28c8a15d to your computer and use it in GitHub Desktop.
Save iansalazar444/535ab04267034e4af8de861f28c8a15d to your computer and use it in GitHub Desktop.
Job Payload with Restricted Items
{
"error": "RECORD_INVALID",
"message": "Unable to save record",
"data": {
"job.dropoffs.delivery_options": [
"Unknown restricted items: TOBACCO, LOTTERY, KNIVES, FIREWORKS, SOLVENTS, SUNBEDS"
]
}
}
{
"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",
"client_reference": "123123123s4",
"address": "23 Ethelbert Rd, London SW20 8QD",
"comment": "3nd floor on the right",
"contact": {
"firstname": "Julia",
"lastname": "Moore",
"phone": "+33712222222",
"email": "client3@email.com",
"company": "Sample Company Inc."
},
"partner_data": {
"integrator": "Locate2U"
},
"delivery_options": {
"restricted_items": ["ALCOHOL","TOBACCO","LOTTERY","KNIVES","FIREWORKS","SOLVENTS","SUNBEDS"]
}
}
]
}
}
{
"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",
"client_reference": "123123123s4",
"address": "23 Ethelbert Rd, London SW20 8QD",
"comment": "3nd floor on the right",
"contact": {
"firstname": "Julia",
"lastname": "Moore",
"phone": "+33712222222",
"email": "client3@email.com",
"company": "Sample Company Inc."
},
"partner_data": {
"integrator": "Locate2U"
},
"delivery_options": {
"restricted_items": ["ALCOHOL"]
}
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment