Download OpenAPI specification:Download
Part of Bettermile Route API responsible for tour management
Tour has been successfully created
Error response returned when the request is invalid. In most cases this implies that some data in the request is either missing or has incorrect format.
Error response returned when the provided API key is missing or invalid
Error response returned whenever the server fails to process the request
{- "date": "2019-08-24",
- "assignment": "string",
- "depot": "string",
- "depotIsDestination": false
}
{- "data": {
- "tourId": "eb2f92e7-0760-4174-a0f6-c120b0ef2ec8"
}
}
List of tours matching the provided criteria
Error response returned when the request is invalid. In most cases this implies that some data in the request is either missing or has incorrect format.
Error response returned when the provided API key is missing or invalid
Error response returned whenever the server fails to process the request
{- "data": [
- {
- "tourId": "eb2f92e7-0760-4174-a0f6-c120b0ef2ec8",
- "date": "2019-08-24",
- "assignment": "string",
- "depot": "string",
- "created": "2019-08-24T14:15:22Z"
}
]
}
Full tour information, excluding the current sequence
Error response returned when the request is invalid. In most cases this implies that some data in the request is either missing or has incorrect format.
Error response returned when the provided API key is missing or invalid
Error response returned in cases the requested endpoint or data can't be found
Error response returned whenever the server fails to process the request
{- "data": {
- "tourId": "eb2f92e7-0760-4174-a0f6-c120b0ef2ec8",
- "date": "2019-08-24",
- "assignment": "string",
- "depot": "string",
- "created": "2019-08-24T14:15:22Z",
- "jobs": [
- {
- "jobId": "9d222c6d-893e-4e79-8201-3c9ca16a0f39",
- "externalId": "E00013222111",
- "type": "DELIVERY",
- "originalAddress": {
- "street": "string",
- "streetNumber": "string",
- "locality": "string",
- "postalCode": "string",
- "country": "string",
- "streetCoordinates": {
- "lat": 0,
- "lon": 0
}, - "rooftopCoordinates": {
- "lat": 0,
- "lon": 0
}
}, - "redirectOriginalAddress": null,
- "navigationAddress": {
- "street": "string",
- "streetNumber": "string",
- "locality": "string",
- "postalCode": "string",
- "country": "string",
- "streetCoordinates": {
- "lat": 0,
- "lon": 0
}, - "rooftopCoordinates": {
- "lat": 0,
- "lon": 0
}
}, - "state": "UNPROCESSED",
- "outcome": null,
- "timeFrames": [
- {
- "earliest": "14:00:00",
- "latest": "16:00:00",
- "timezone": "Europe/Berlin"
}
]
}
], - "waypoints": [
- {
- "waypointId": "6eeaf5f6-415c-49ff-97fc-2d3cc3a134f5",
- "jobIds": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "jobIdentifiers": [
- {
- "internalId": "6868d0ce-34a2-4e78-b137-31229ba3e81a",
- "externalId": "string"
}
], - "address": {
- "street": "string",
- "streetNumber": "string",
- "locality": "string",
- "postalCode": "string",
- "country": "string",
- "streetCoordinates": {
- "lat": 0,
- "lon": 0
}, - "rooftopCoordinates": {
- "lat": 0,
- "lon": 0
}
}, - "status": "UNPROCESSED",
- "closedAtTimestamp": "2019-08-24T14:15:22Z",
- "stopTimeInSeconds": 0,
- "timeFrame": {
- "earliest": "14:00:00",
- "latest": "16:00:00",
- "timezone": "Europe/Berlin"
}, - "type": { }
}
], - "rttCategory": "GOOD",
- "destination": {
- "address": {
- "street": "string",
- "streetNumber": "string",
- "locality": "string",
- "postalCode": "string",
- "country": "string",
- "streetCoordinates": {
- "lat": 0,
- "lon": 0
}, - "rooftopCoordinates": {
- "lat": 0,
- "lon": 0
}
}, - "eta": "2019-08-24T14:15:22Z"
}, - "unassignedJobIdentifiers": [
- {
- "internalId": "6868d0ce-34a2-4e78-b137-31229ba3e81a",
- "externalId": "string"
}
]
}
}
country | string or null Country as "alpha-2 code" of ISO 3166 (https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes). If this value is not provided, the country of the depot that this tour belongs to will be used. |
lat required | number <double> [ -90 .. 90 ] Latitude |
lon required | number <double> [ -180 .. 180 ] Longitude |
Tour destination has been set successfully
Error response returned when the request is invalid. In most cases this implies that some data in the request is either missing or has incorrect format.
Error response returned when the provided API key is missing or invalid
Error response returned in cases the requested endpoint or data can't be found
Error response returned whenever the server fails to process the request
{- "country": "string",
- "lat": -90,
- "lon": -180
}
{- "data": { }
}
Get potential recalculation gain for tour. Recommended for tours with “fixed” and “use provided” optimization only
Potential recalculation gain - how much time can be saved after tour recalculation.
Error response returned when the request is invalid. In most cases this implies that some data in the request is either missing or has incorrect format.
Error response returned when the provided API key is missing or invalid
Error response returned in cases the requested endpoint or data can't be found
Error response returned in case operation will result in incorrect state of the resource
Error response returned in case operation encounter rate limi
Error response returned whenever the server fails to process the request
{- "data": {
- "potentialGainInSeconds": 0
}
}