Edit dropoff
In this endpoint you can fix or change the dropof data and some properties of a delivery.
Endpoint
Request
Property | Type | Description | Required | Constraints |
---|---|---|---|---|
deliveryIds | array of string | IDs of the task you want to change information | YES | |
deliveryChanges | object | New data information, can have a contact, a location and packages. | YES | |
deliveryChanges.location | New data location | NO | lat and lng are required | |
deliveryChanges.contact | New data contact | NO | ||
deliveryChanges.packages | New data packages | NO | ||
deliveryChanges.cod | number | Use this option if the driver needs to collect money from your client | NO | |
deliveryChanges.referenceId | string | Extern id | NO | |
deliveryChanges.addTags | array of numbers | List of tags IDs created in the system you want to add | NO | |
deliveryChanges.removeTags | array of numbers | List of tags IDs created in the system you want to remove | NO | |
deliveryChanges.extraData | array of objects | List of objects with extra information on delivery | NO | |
recalculatePrice | boolean | After the change, the price changes or not. | YES | true/false |
reorderRoute | boolean | After the change, the route changes order or not. | YES | true/false |
Response
Property | Type | Description |
---|---|---|
code | string | Result code. |
message | string | Result description. |