I am integrating the Stuart Job Creation API in my system, but I am encountering an issue. When I call the endpoint:
POST /v2/jobs
with the following payload:
{“job”: {“pickups”: [{“address”: “PICKUP_ADDRESS”,“contact”: {“firstname”: “VendorFirst”,“lastname”: “VendorLast”,“phone”: “+91XXXXXXXXXX”,“email”: “test@gmail.com”}}],“dropoffs”: [{“package_type”: “small”,“address”: “DROPOFF_ADDRESS”,“contact”: {“firstname”: “UserFirst”,“lastname”: “UserLast”,“phone”: “+91XXXXXXXXXX”,“email”: “test@gmail.com”}}]}}
I receive the following error response:
{“error”: “UNKNOWN”,“message”: “Something went wrong. Please try again later.”}
I have confirmed that:
-
The access token is valid and generated successfully.
-
Phone numbers are formatted with a leading
+
. -
All required fields (
address
,contact
) are being sent.
Could you please help me understand why the API is returning this generic UNKNOWN
error and guide me on how to resolve it?