put https://api.xandar.instaleap.io/jobs//update-destination
Allow your systems to update the destination address of an already created job.
This endpoint allows your system to update the destination address of an existing job. It is commonly used when the original delivery address provided during checkout is incorrect or needs to be adjusted due to operational or customer-driven changes.
To use this endpoint, the job must already exist and be identified by its job_id
.
📌 Use Cases
- Correcting typos or incomplete addresses: When the customer accidentally provides a wrong or partial address.
- Customer-initiated change: The customer has moved or wants the order delivered to a different location.
- Operational rerouting: The fleet decides to redirect the delivery due to roadblocks, building access issues, or other logistical constraints.
🧾 Request Payload Example
{
"destination": {
"name": "destination 7",
"address": "street 7",
"latitude": 4.710988599999999,
"longitude": -74.072092,
"address_two": "",
"description": "Casa",
"city": "Bogota",
"state": "Bogota",
"zip_code": "01419"
}
}
Response Codes
200 OK
— Delivery address updated successfully400 Bad Request
— Invariant violation or invalid input format401 Unauthorized
— Authentication credentials missing or invalid404 Not Found
— The job ID does not exist in the system422 Unprocessable Entity
— One or more fields in the destination object are invalid500 Internal Server Error
— Unexpected error while processing the request