API reference
RoutiGo Configuration REST API
Configure the vehicles, shifts and skills that RoutiGo plans with. Every call is scoped to the company provided (either implicitly via API-KEY authentication or explicitly when using the Bearer token authentication), and the vehicle and shift calls to the service centre given in the path.
Version 2.0Base URL https://api.routigo.com/apiFormat JSONSpec OpenAPI 3.1.0 · download
Authentication: API key or Bearer token
Send your key in the X-API-KEY header with every call.
Send a token in the Authorization: Bearer header.
17 calls
Skills are capabilities a vehicle can have and a shipment can require.
A vehicle is the resource a service centre plans with: its type, start and end location, skills, its capacity and limits.
A shift defines when a vehicle of a service centre is available for planning: its start time, its end time and whether the vehicle returns to the depot afterwards.
About this API
Authentication
All requests must be authenticated. This API supports the following methods:
- X-API-KEY — API key for standard client access, passed as a request header.
- Bearer token — JWT token passed via the
Authorization: Bearer <token>header.
In case the Bearer token is used, a second header should be added, namely the X-COMPANY-CODE header
with the company code as the value. An API-key is always bound to a single company and requires no extra header to be set.
For more information, see the Authentication section.
Skills
Skills are capabilities a vehicle can have and a shipment can require. Planning only assigns a shipment to a vehicle that has every skill the shipment needs, which makes skills the way to express requirements such as a tail lift, a cooled compartment or a certified driver.
Skills are configured per company: RoutiGo-defined skills are switched on or off, and user-defined skills are created by the company itself. Only a skill that is enabled for the company can be assigned to a vehicle, so enable it here before referencing it in the Vehicles calls.
RoutiGo Configuration REST API · Skills↑ Index
Fetch all enabled skills, including both user-defined and routigo-defined skills.
Returns the skill codes that are currently enabled for the company set in the X-COMPANY-CODE header, both RoutiGo-defined and user-defined. These are the values a vehicle's skills list may contain. Responds with 204 when no skill is enabled. Requires the ADMIN, PLANNER, SUBCO, READONLY or SEARCHONLY role for the company.
/v2 /configuration /vrp /skillsParameters
Header
The code of the company the request is made for. Every resource is scoped to this company. See the security schemes for when it is needed.
Returns
Enabled skills successfully found and returned.
Example response · 200
[ "string" ]
There are no enabled skills to return.
No response body. A 204 status is the confirmation.
Authentication information is missing or invalid. See the response for more detailed error description.
Example response · 401
Could not find a proper way to authenticate.
The user (or API key) does not have enough permissions to execute the request. See the response for more detailed error description.
Example response · 403
User does not have enough permissions to execute the request.
The requested resource does not exist. See the response for more detailed error description.
Example response · 404
The requested resource does not exist.
Unexpected error. Please contact RoutiGo for more details
Example response · 500
An error has occurred while processing the request.
RoutiGo Configuration REST API · Skills↑ Index
Retrieve all routigo-defined skills.
Returns the state of the RoutiGo-defined skills of the company set in the X-COMPANY-CODE header. Responds with 204 when the company has no VRP configuration yet. Requires the ADMIN, PLANNER, SUBCO, READONLY or SEARCHONLY role for the company.
/v2 /configuration /vrp /skills /routigoDefinedSkillsParameters
Header
The code of the company the request is made for. Every resource is scoped to this company. See the security schemes for when it is needed.
Returns
Routigo-defined skills successfully found and returned.
This skill guarantees shipments are delivered in an eco-friendly way by using electric vehicles.
e.g. true
Example response · 200
{
"zeroEmission": true
}There are no routigo-defined skills to return.
No response body. A 204 status is the confirmation.
Authentication information is missing or invalid. See the response for more detailed error description.
Example response · 401
Could not find a proper way to authenticate.
The user (or API key) does not have enough permissions to execute the request. See the response for more detailed error description.
Example response · 403
User does not have enough permissions to execute the request.
The requested resource does not exist. See the response for more detailed error description.
Example response · 404
The requested resource does not exist.
Unexpected error. Please contact RoutiGo for more details
Example response · 500
An error has occurred while processing the request.
RoutiGo Configuration REST API · Skills↑ Index
Enable/disable routigo-defined skills.
Enables or disables the RoutiGo-defined skills for the company set in the X-COMPANY-CODE header and returns the new state. Disabling a skill stops it from being accepted on new vehicle definitions, vehicles that already have it keep it. Requires the ADMIN role for the company.
/v2 /configuration /vrp /skills /routigoDefinedSkillsParameters
Header
The code of the company the request is made for. Every resource is scoped to this company. See the security schemes for when it is needed.
Request body required
RoutigoDefinedSkills object is used to represent the states of routigo-defined skills in the system
This skill guarantees shipments are delivered in an eco-friendly way by using electric vehicles.
e.g. true
Returns
Routigo-defined skills are successfully updated.
This skill guarantees shipments are delivered in an eco-friendly way by using electric vehicles.
e.g. true
Example response · 200
{
"zeroEmission": true
}Authentication information is missing or invalid. See the response for more detailed error description.
Example response · 401
Could not find a proper way to authenticate.
The user (or API key) does not have enough permissions to execute the request. See the response for more detailed error description.
Example response · 403
User does not have enough permissions to execute the request.
The requested resource does not exist. See the response for more detailed error description.
Example response · 404
The requested resource does not exist.
Unexpected error. Please contact RoutiGo for more details
Example response · 500
An error has occurred while processing the request.
RoutiGo Configuration REST API · Skills↑ Index
Fetch all user-defined skills.
Returns every user-defined skill of the company set in the X-COMPANY-CODE header, enabled and disabled alike. Responds with 204 when the company has none. Requires the ADMIN, PLANNER, SUBCO, READONLY or SEARCHONLY role for the company.
/v2 /configuration /vrp /skills /userDefinedSkillsParameters
Header
The code of the company the request is made for. Every resource is scoped to this company. See the security schemes for when it is needed.
Returns
User-defined skills successfully found and returned.
A unique identifier for the skill.
e.g. drillingMachine
The human-readable name of the skill. It provides a descriptive label for the skillCode, making it easier to understand the skill's purpose or function.
e.g. drilling machine
Indicates whether the skill is currently enabled or disabled.
e.g. true
Example response · 200
[
{
"skillCode": "drillingMachine",
"skillName": "drilling machine",
"enabled": true
}
]There are no user-defined skills to return.
No response body. A 204 status is the confirmation.
Authentication information is missing or invalid. See the response for more detailed error description.
Example response · 401
Could not find a proper way to authenticate.
The user (or API key) does not have enough permissions to execute the request. See the response for more detailed error description.
Example response · 403
User does not have enough permissions to execute the request.
The requested resource does not exist. See the response for more detailed error description.
Example response · 404
The requested resource does not exist.
Unexpected error. Please contact RoutiGo for more details
Example response · 500
An error has occurred while processing the request.
RoutiGo Configuration REST API · Skills↑ Index
Create a user-defined skill.
Creates a user-defined skill for the company set in the X-COMPANY-CODE header. The skill code must be unique within the company, may only contain letters, digits, underscores and dashes, and is at most 255 characters long. The new skill is enabled immediately. Requires the ADMIN role for the company.
/v2 /configuration /vrp /skills /userDefinedSkillsParameters
Header
The code of the company the request is made for. Every resource is scoped to this company. See the security schemes for when it is needed.
Request body required
The user-defined skill to create.
A unique identifier for the skill.
e.g. drillingMachine
The human-readable name of the skill. It provides a descriptive label for the skillCode, making it easier to understand the skill's purpose or function.
e.g. drilling machine
Returns
The user-defined skill is successfully created.
A unique identifier for the skill.
e.g. drillingMachine
The human-readable name of the skill. It provides a descriptive label for the skillCode, making it easier to understand the skill's purpose or function.
e.g. drilling machine
Indicates whether the skill is currently enabled or disabled.
e.g. true
Example response · 201
{
"skillCode": "drillingMachine",
"skillName": "drilling machine",
"enabled": true
}Authentication information is missing or invalid. See the response for more detailed error description.
Example response · 401
Could not find a proper way to authenticate.
The user (or API key) does not have enough permissions to execute the request. See the response for more detailed error description.
Example response · 403
User does not have enough permissions to execute the request.
The requested resource does not exist. See the response for more detailed error description.
Example response · 404
The requested resource does not exist.
Unexpected error. Please contact RoutiGo for more details
Example response · 500
An error has occurred while processing the request.
RoutiGo Configuration REST API · Skills↑ Index
Fetch a specific user-defined skill using its skill code.
Returns one user-defined skill of the company set in the X-COMPANY-CODE header by its skill code. Responds with 404 when the company has no skill with that code. Requires the ADMIN, PLANNER, SUBCO, READONLY or SEARCHONLY role for the company.
/v2 /configuration /vrp /skills /userDefinedSkills /{userDefinedSkillCode}Parameters
Header
The code of the company the request is made for. Every resource is scoped to this company. See the security schemes for when it is needed.
Returns
The specified user-defined skill successfully found and returned.
A unique identifier for the skill.
e.g. drillingMachine
The human-readable name of the skill. It provides a descriptive label for the skillCode, making it easier to understand the skill's purpose or function.
e.g. drilling machine
Indicates whether the skill is currently enabled or disabled.
e.g. true
Example response · 200
{
"skillCode": "drillingMachine",
"skillName": "drilling machine",
"enabled": true
}Authentication information is missing or invalid. See the response for more detailed error description.
Example response · 401
Could not find a proper way to authenticate.
The user (or API key) does not have enough permissions to execute the request. See the response for more detailed error description.
Example response · 403
User does not have enough permissions to execute the request.
The requested resource does not exist. See the response for more detailed error description.
Example response · 404
The requested resource does not exist.
Unexpected error. Please contact RoutiGo for more details
Example response · 500
An error has occurred while processing the request.
RoutiGo Configuration REST API · Skills↑ Index
Update a user-defined skill.
Changes the name and the enabled state of an existing user-defined skill; the skill code cannot be changed. Disabling a skill stops it from being accepted on new vehicle definitions, vehicles that already have it keep it. Responds with 400 when the company has no skill with that code. Requires the ADMIN role for the company.
/v2 /configuration /vrp /skills /userDefinedSkills /{userDefinedSkillCode}Parameters
Path
The user-defined skillCode
Header
The code of the company the request is made for. Every resource is scoped to this company. See the security schemes for when it is needed.
Request body required
The UserDefinedSkillToUpdate object is used to represent the state and the name of a specific user-defined skill in the system
The human-readable name of the skill.
e.g. drilling machine
Indicates whether the skill is currently enabled or disabled.
e.g. true
Returns
The user-defined skill is successfully updated.
A unique identifier for the skill.
e.g. drillingMachine
The human-readable name of the skill. It provides a descriptive label for the skillCode, making it easier to understand the skill's purpose or function.
e.g. drilling machine
Indicates whether the skill is currently enabled or disabled.
e.g. true
Example response · 200
{
"skillCode": "drillingMachine",
"skillName": "drilling machine",
"enabled": true
}Authentication information is missing or invalid. See the response for more detailed error description.
Example response · 401
Could not find a proper way to authenticate.
The user (or API key) does not have enough permissions to execute the request. See the response for more detailed error description.
Example response · 403
User does not have enough permissions to execute the request.
The requested resource does not exist. See the response for more detailed error description.
Example response · 404
The requested resource does not exist.
Unexpected error. Please contact RoutiGo for more details
Example response · 500
An error has occurred while processing the request.
Vehicles
A vehicle is the resource a service centre plans with: its type, start and end location, skills, its capacity and limits. Vehicles are managed per service centre.
Relation to shifts
A vehicle is never planned on its own — it only enters planning through a shift. A shift refers to exactly one vehicle by its identifier, and the same vehicle can be used by several shifts, for example a morning and an evening shift on the same van. In short: a vehicle describes what drives, a shift describes when it drives.
Because a shift inherits the locations, skills, capacity and limits of its vehicle:
- changing a vehicle changes every shift that uses it.
- a vehicle that is still used by a shift cannot be deleted — delete or reassign those shifts first.
- when a vehicle has no end location, the routes of its shifts end at its start location.
Create the vehicle first, then the shifts that use it.
RoutiGo Configuration REST API · Vehicles↑ Index
Fetch all vehicles of a service centre
Returns every vehicle of the given service centre, or an empty list when it has none. Requires the ADMIN, PLANNER, SUBCO, READONLY or SEARCHONLY role on the service centre.
/v2 /configuration /serviceCentre /{serviceCentreCode} /vehicleParameters
Path
The service centre code
Header
The code of the company the request is made for. Every resource is scoped to this company. See the security schemes for when it is needed.
Returns
Vehicles successfully found and returned
A unique identifier for the vehicle, generated by the system
e.g. 23487234-7623476236-B76
A readable identifier for the vehicle, provided by the user.
e.g. Sprinter
The type of the vehicle, used during planning to assume driving speed and accessible roads
startLocationrequiredPhysicalLocation 5 fieldsThe location the vehicle starts its routes from.
The location the vehicle starts its routes from.
The identifier of the location. Supplied by the caller and stored as given; the location is matched on its coordinates, not on this value.
e.g. depot-maarssen
A user given name, used for visualisation
e.g. Maarssen
The address of the location, also used for visualisation
e.g. Bisonspoor 3006, Maarssen
The latitude of the location
e.g. 52.364827
The longitude of the location
e.g. 5.892628
endLocationoptionalPhysicalLocation| null 5 fieldsThe location the vehicle ends its routes at. When absent, routes end at the start location.
The location the vehicle ends its routes at. When absent, routes end at the start location.
The identifier of the location. Supplied by the caller and stored as given; the location is matched on its coordinates, not on this value.
e.g. depot-maarssen
A user given name, used for visualisation
e.g. Maarssen
The address of the location, also used for visualisation
e.g. Bisonspoor 3006, Maarssen
The latitude of the location
e.g. 52.364827
The longitude of the location
e.g. 5.892628
Specifies a list of skills that the vehicle possesses.
e.g. ["forklift"]
capacityoptionalCapacityDto| null 2 fieldsThe capacity of the vehicle, expressed in the capacity unit configured for the service centre. Absent when the vehicle has no capacity or the service centre has no capacity unit.
The capacity of the vehicle, expressed in the capacity unit configured for the service centre. Absent when the vehicle has no capacity or the service centre has no capacity unit.
Amount of packages
e.g. 35
Name of the package, used for visualisation
e.g. Kratten
The number of maximum amount of stops this vehicle can visit in a route
e.g. 30
The maximum amount of kilometers this vehicle can drive in a route. (e.g. before recharging)
e.g. 280
The maximum amount of hours this vehicle can spend on the road in a route. e.g. as dictated by law.
e.g. PT11H30M
The driving speed factor. Used to adjust the speed at which planning assumes this vehicle drives.
e.g. 0.95
The service time speed factor. Used to adjust the speed at which services are performed, this is the duration of a stop.
e.g. 0.95
Example response · 200
[
{
"identifier": "23487234-7623476236-B76",
"name": "Sprinter",
"vehicleType": "CAR",
"startLocation": {
"id": "depot-maarssen",
"displayName": "Maarssen",
"address": "Bisonspoor 3006, Maarssen",
"latitude": 52.364827,
"longitude": 5.892628
},
"endLocation": {
"id": "depot-maarssen",
"displayName": "Maarssen",
"address": "Bisonspoor 3006, Maarssen",
"latitude": 52.364827,
"longitude": 5.892628
},
"skills": [
"forklift"
],
"capacity": {
"amount": 35,
"description": "Kratten"
},
"maxStops": 30,
"maxDistance": 280,
"maxDrivingTime": "PT11H30M",
"speedFactor": 0.95,
"serviceTimeFactor": 0.95
}
]Authentication information is missing or invalid. See the response for more detailed error description.
Example response · 401
Could not find a proper way to authenticate.
The user (or API key) does not have enough permissions to execute the request. See the response for more detailed error description.
Example response · 403
User does not have enough permissions to execute the request.
The requested resource does not exist. See the response for more detailed error description.
Example response · 404
The requested resource does not exist.
Unexpected error. Please contact RoutiGo for more details
Example response · 500
An error has occurred while processing the request.
RoutiGo Configuration REST API · Vehicles↑ Index
Create a vehicle
Creates a vehicle for the given service centre and returns it with its generated identifier. Every skill in the list must be enabled for the company, and a capacity amount can only be given when the service centre has a capacity unit configured. When no end location is given, the routes of this vehicle's shifts end at the start location. Locations are matched on their coordinates and reused when the service centre already has them. Requires the ADMIN role on the service centre.
/v2 /configuration /serviceCentre /{serviceCentreCode} /vehicleParameters
Path
The service centre code
Header
The code of the company the request is made for. Every resource is scoped to this company. See the security schemes for when it is needed.
Request body required
The vehicle to create.
A readable identifier for the vehicle, provided by the user.
e.g. Sprinter
The type of the vehicle, used during planning to assume driving speed and accessible roads
startLocationrequiredPhysicalLocation 5 fieldsThe location the vehicle starts its routes from. Matched on coordinates and reused when the service centre already has it.
The location the vehicle starts its routes from. Matched on coordinates and reused when the service centre already has it.
The identifier of the location. Supplied by the caller and stored as given; the location is matched on its coordinates, not on this value.
e.g. depot-maarssen
A user given name, used for visualisation
e.g. Maarssen
The address of the location, also used for visualisation
e.g. Bisonspoor 3006, Maarssen
The latitude of the location
e.g. 52.364827
The longitude of the location
e.g. 5.892628
endLocationoptionalPhysicalLocation| null 5 fieldsThe location the vehicle ends its routes at. Omit it to let routes end at the start location.
The location the vehicle ends its routes at. Omit it to let routes end at the start location.
The identifier of the location. Supplied by the caller and stored as given; the location is matched on its coordinates, not on this value.
e.g. depot-maarssen
A user given name, used for visualisation
e.g. Maarssen
The address of the location, also used for visualisation
e.g. Bisonspoor 3006, Maarssen
The latitude of the location
e.g. 52.364827
The longitude of the location
e.g. 5.892628
Specifies a list of skills that the vehicle possesses.
e.g. ["forklift"]
The number of maximum amount of stops this vehicle can visit in a route
e.g. 30
The maximum amount of kilometers this vehicle can drive in a route. (e.g. before recharging)
e.g. 280
The maximum amount of hours this vehicle can spend on the road in a route. e.g. as dictated by law.
e.g. PT11H30M
The driving speed factor. Used to adjust the speed at which planning assumes this vehicle drives.
e.g. 0.95
The service time speed factor. Used to adjust the speed at which services are performed, this is the duration of a stop.
e.g. 0.95
Capacity of the vehicle in the configured amount.
e.g. 35
Returns
Vehicle is successfully created
A unique identifier for the vehicle, generated by the system
e.g. 23487234-7623476236-B76
A readable identifier for the vehicle, provided by the user.
e.g. Sprinter
The type of the vehicle, used during planning to assume driving speed and accessible roads
startLocationrequiredPhysicalLocation 5 fieldsThe location the vehicle starts its routes from.
The location the vehicle starts its routes from.
The identifier of the location. Supplied by the caller and stored as given; the location is matched on its coordinates, not on this value.
e.g. depot-maarssen
A user given name, used for visualisation
e.g. Maarssen
The address of the location, also used for visualisation
e.g. Bisonspoor 3006, Maarssen
The latitude of the location
e.g. 52.364827
The longitude of the location
e.g. 5.892628
endLocationoptionalPhysicalLocation| null 5 fieldsThe location the vehicle ends its routes at. When absent, routes end at the start location.
The location the vehicle ends its routes at. When absent, routes end at the start location.
The identifier of the location. Supplied by the caller and stored as given; the location is matched on its coordinates, not on this value.
e.g. depot-maarssen
A user given name, used for visualisation
e.g. Maarssen
The address of the location, also used for visualisation
e.g. Bisonspoor 3006, Maarssen
The latitude of the location
e.g. 52.364827
The longitude of the location
e.g. 5.892628
Specifies a list of skills that the vehicle possesses.
e.g. ["forklift"]
capacityoptionalCapacityDto| null 2 fieldsThe capacity of the vehicle, expressed in the capacity unit configured for the service centre. Absent when the vehicle has no capacity or the service centre has no capacity unit.
The capacity of the vehicle, expressed in the capacity unit configured for the service centre. Absent when the vehicle has no capacity or the service centre has no capacity unit.
Amount of packages
e.g. 35
Name of the package, used for visualisation
e.g. Kratten
The number of maximum amount of stops this vehicle can visit in a route
e.g. 30
The maximum amount of kilometers this vehicle can drive in a route. (e.g. before recharging)
e.g. 280
The maximum amount of hours this vehicle can spend on the road in a route. e.g. as dictated by law.
e.g. PT11H30M
The driving speed factor. Used to adjust the speed at which planning assumes this vehicle drives.
e.g. 0.95
The service time speed factor. Used to adjust the speed at which services are performed, this is the duration of a stop.
e.g. 0.95
Example response · 201
{
"identifier": "23487234-7623476236-B76",
"name": "Sprinter",
"vehicleType": "CAR",
"startLocation": {
"id": "depot-maarssen",
"displayName": "Maarssen",
"address": "Bisonspoor 3006, Maarssen",
"latitude": 52.364827,
"longitude": 5.892628
},
"endLocation": {
"id": "depot-maarssen",
"displayName": "Maarssen",
"address": "Bisonspoor 3006, Maarssen",
"latitude": 52.364827,
"longitude": 5.892628
},
"skills": [
"forklift"
],
"capacity": {
"amount": 35,
"description": "Kratten"
},
"maxStops": 30,
"maxDistance": 280,
"maxDrivingTime": "PT11H30M",
"speedFactor": 0.95,
"serviceTimeFactor": 0.95
}Authentication information is missing or invalid. See the response for more detailed error description.
Example response · 401
Could not find a proper way to authenticate.
The user (or API key) does not have enough permissions to execute the request. See the response for more detailed error description.
Example response · 403
User does not have enough permissions to execute the request.
The requested resource does not exist. See the response for more detailed error description.
Example response · 404
The requested resource does not exist.
Unexpected error. Please contact RoutiGo for more details
Example response · 500
An error has occurred while processing the request.
RoutiGo Configuration REST API · Vehicles↑ Index
Fetch a single vehicle by id
Returns one vehicle of the given service centre. Responds with 404 when no vehicle with this identifier exists in that service centre. Requires the ADMIN, PLANNER, SUBCO, READONLY or SEARCHONLY role on the service centre.
/v2 /configuration /serviceCentre /{serviceCentreCode} /vehicle /{vehicleId}Parameters
Path
The service centre code
A vehicle identifier
Header
The code of the company the request is made for. Every resource is scoped to this company. See the security schemes for when it is needed.
Returns
Vehicle successfully found and returned
A unique identifier for the vehicle, generated by the system
e.g. 23487234-7623476236-B76
A readable identifier for the vehicle, provided by the user.
e.g. Sprinter
The type of the vehicle, used during planning to assume driving speed and accessible roads
startLocationrequiredPhysicalLocation 5 fieldsThe location the vehicle starts its routes from.
The location the vehicle starts its routes from.
The identifier of the location. Supplied by the caller and stored as given; the location is matched on its coordinates, not on this value.
e.g. depot-maarssen
A user given name, used for visualisation
e.g. Maarssen
The address of the location, also used for visualisation
e.g. Bisonspoor 3006, Maarssen
The latitude of the location
e.g. 52.364827
The longitude of the location
e.g. 5.892628
endLocationoptionalPhysicalLocation| null 5 fieldsThe location the vehicle ends its routes at. When absent, routes end at the start location.
The location the vehicle ends its routes at. When absent, routes end at the start location.
The identifier of the location. Supplied by the caller and stored as given; the location is matched on its coordinates, not on this value.
e.g. depot-maarssen
A user given name, used for visualisation
e.g. Maarssen
The address of the location, also used for visualisation
e.g. Bisonspoor 3006, Maarssen
The latitude of the location
e.g. 52.364827
The longitude of the location
e.g. 5.892628
Specifies a list of skills that the vehicle possesses.
e.g. ["forklift"]
capacityoptionalCapacityDto| null 2 fieldsThe capacity of the vehicle, expressed in the capacity unit configured for the service centre. Absent when the vehicle has no capacity or the service centre has no capacity unit.
The capacity of the vehicle, expressed in the capacity unit configured for the service centre. Absent when the vehicle has no capacity or the service centre has no capacity unit.
Amount of packages
e.g. 35
Name of the package, used for visualisation
e.g. Kratten
The number of maximum amount of stops this vehicle can visit in a route
e.g. 30
The maximum amount of kilometers this vehicle can drive in a route. (e.g. before recharging)
e.g. 280
The maximum amount of hours this vehicle can spend on the road in a route. e.g. as dictated by law.
e.g. PT11H30M
The driving speed factor. Used to adjust the speed at which planning assumes this vehicle drives.
e.g. 0.95
The service time speed factor. Used to adjust the speed at which services are performed, this is the duration of a stop.
e.g. 0.95
Example response · 200
{
"identifier": "23487234-7623476236-B76",
"name": "Sprinter",
"vehicleType": "CAR",
"startLocation": {
"id": "depot-maarssen",
"displayName": "Maarssen",
"address": "Bisonspoor 3006, Maarssen",
"latitude": 52.364827,
"longitude": 5.892628
},
"endLocation": {
"id": "depot-maarssen",
"displayName": "Maarssen",
"address": "Bisonspoor 3006, Maarssen",
"latitude": 52.364827,
"longitude": 5.892628
},
"skills": [
"forklift"
],
"capacity": {
"amount": 35,
"description": "Kratten"
},
"maxStops": 30,
"maxDistance": 280,
"maxDrivingTime": "PT11H30M",
"speedFactor": 0.95,
"serviceTimeFactor": 0.95
}Authentication information is missing or invalid. See the response for more detailed error description.
Example response · 401
Could not find a proper way to authenticate.
The user (or API key) does not have enough permissions to execute the request. See the response for more detailed error description.
Example response · 403
User does not have enough permissions to execute the request.
The requested resource does not exist. See the response for more detailed error description.
Example response · 404
The requested resource does not exist.
Unexpected error. Please contact RoutiGo for more details
Example response · 500
An error has occurred while processing the request.
RoutiGo Configuration REST API · Vehicles↑ Index
Update a vehicle
Replaces the definition of an existing vehicle; the vehicle type cannot be changed. Every skill in the list must be enabled for the company, except skills the vehicle already has, which it may keep. The RoutiGo routes of the shifts that use this vehicle are synchronised afterwards. Requires the ADMIN role on the service centre.
/v2 /configuration /serviceCentre /{serviceCentreCode} /vehicle /{vehicleId}Parameters
Path
The service centre code
A vehicle identifier
Header
The code of the company the request is made for. Every resource is scoped to this company. See the security schemes for when it is needed.
Request body required
The vehicle to update to.
A readable identifier for the vehicle, provided by the user.
e.g. Sprinter
startLocationrequiredPhysicalLocation 5 fieldsThe location the vehicle starts its routes from. Matched on coordinates and reused when the service centre already has it.
The location the vehicle starts its routes from. Matched on coordinates and reused when the service centre already has it.
The identifier of the location. Supplied by the caller and stored as given; the location is matched on its coordinates, not on this value.
e.g. depot-maarssen
A user given name, used for visualisation
e.g. Maarssen
The address of the location, also used for visualisation
e.g. Bisonspoor 3006, Maarssen
The latitude of the location
e.g. 52.364827
The longitude of the location
e.g. 5.892628
endLocationoptionalPhysicalLocation| null 5 fieldsThe location the vehicle ends its routes at. Omit it to let routes end at the start location.
The location the vehicle ends its routes at. Omit it to let routes end at the start location.
The identifier of the location. Supplied by the caller and stored as given; the location is matched on its coordinates, not on this value.
e.g. depot-maarssen
A user given name, used for visualisation
e.g. Maarssen
The address of the location, also used for visualisation
e.g. Bisonspoor 3006, Maarssen
The latitude of the location
e.g. 52.364827
The longitude of the location
e.g. 5.892628
Specifies a list of skills that the vehicle possesses.
e.g. ["forklift"]
The number of maximum amount of stops this vehicle can visit in a route
e.g. 30
The maximum amount of kilometers this vehicle can drive in a route. (e.g. before recharging)
e.g. 280
The maximum amount of hours this vehicle can spend on the road in a route. e.g. as dictated by law.
e.g. PT11H30M
The driving speed factor. Used to adjust the speed at which planning assumes this vehicle drives.
e.g. 0.95
The service time speed factor. Used to adjust the speed at which services are performed, this is the duration of a stop.
e.g. 0.95
Capacity of the vehicle in the configured amount.
e.g. 35
Returns
Vehicle is successfully updated
A unique identifier for the vehicle, generated by the system
e.g. 23487234-7623476236-B76
A readable identifier for the vehicle, provided by the user.
e.g. Sprinter
The type of the vehicle, used during planning to assume driving speed and accessible roads
startLocationrequiredPhysicalLocation 5 fieldsThe location the vehicle starts its routes from.
The location the vehicle starts its routes from.
The identifier of the location. Supplied by the caller and stored as given; the location is matched on its coordinates, not on this value.
e.g. depot-maarssen
A user given name, used for visualisation
e.g. Maarssen
The address of the location, also used for visualisation
e.g. Bisonspoor 3006, Maarssen
The latitude of the location
e.g. 52.364827
The longitude of the location
e.g. 5.892628
endLocationoptionalPhysicalLocation| null 5 fieldsThe location the vehicle ends its routes at. When absent, routes end at the start location.
The location the vehicle ends its routes at. When absent, routes end at the start location.
The identifier of the location. Supplied by the caller and stored as given; the location is matched on its coordinates, not on this value.
e.g. depot-maarssen
A user given name, used for visualisation
e.g. Maarssen
The address of the location, also used for visualisation
e.g. Bisonspoor 3006, Maarssen
The latitude of the location
e.g. 52.364827
The longitude of the location
e.g. 5.892628
Specifies a list of skills that the vehicle possesses.
e.g. ["forklift"]
capacityoptionalCapacityDto| null 2 fieldsThe capacity of the vehicle, expressed in the capacity unit configured for the service centre. Absent when the vehicle has no capacity or the service centre has no capacity unit.
The capacity of the vehicle, expressed in the capacity unit configured for the service centre. Absent when the vehicle has no capacity or the service centre has no capacity unit.
Amount of packages
e.g. 35
Name of the package, used for visualisation
e.g. Kratten
The number of maximum amount of stops this vehicle can visit in a route
e.g. 30
The maximum amount of kilometers this vehicle can drive in a route. (e.g. before recharging)
e.g. 280
The maximum amount of hours this vehicle can spend on the road in a route. e.g. as dictated by law.
e.g. PT11H30M
The driving speed factor. Used to adjust the speed at which planning assumes this vehicle drives.
e.g. 0.95
The service time speed factor. Used to adjust the speed at which services are performed, this is the duration of a stop.
e.g. 0.95
Example response · 200
{
"identifier": "23487234-7623476236-B76",
"name": "Sprinter",
"vehicleType": "CAR",
"startLocation": {
"id": "depot-maarssen",
"displayName": "Maarssen",
"address": "Bisonspoor 3006, Maarssen",
"latitude": 52.364827,
"longitude": 5.892628
},
"endLocation": {
"id": "depot-maarssen",
"displayName": "Maarssen",
"address": "Bisonspoor 3006, Maarssen",
"latitude": 52.364827,
"longitude": 5.892628
},
"skills": [
"forklift"
],
"capacity": {
"amount": 35,
"description": "Kratten"
},
"maxStops": 30,
"maxDistance": 280,
"maxDrivingTime": "PT11H30M",
"speedFactor": 0.95,
"serviceTimeFactor": 0.95
}Authentication information is missing or invalid. See the response for more detailed error description.
Example response · 401
Could not find a proper way to authenticate.
The user (or API key) does not have enough permissions to execute the request. See the response for more detailed error description.
Example response · 403
User does not have enough permissions to execute the request.
The requested resource does not exist. See the response for more detailed error description.
Example response · 404
The requested resource does not exist.
Unexpected error. Please contact RoutiGo for more details
Example response · 500
An error has occurred while processing the request.
RoutiGo Configuration REST API · Vehicles↑ Index
Delete a vehicle
Deletes a vehicle. A vehicle that is still used by a shift cannot be deleted; delete or reassign those shifts first. Requires the ADMIN role on the service centre.
/v2 /configuration /serviceCentre /{serviceCentreCode} /vehicle /{vehicleId}Parameters
Path
The service centre code
A vehicle identifier
Header
The code of the company the request is made for. Every resource is scoped to this company. See the security schemes for when it is needed.
Returns
Vehicle is successfully deleted
No response body. A 200 status is the confirmation.
Authentication information is missing or invalid. See the response for more detailed error description.
Example response · 401
Could not find a proper way to authenticate.
The user (or API key) does not have enough permissions to execute the request. See the response for more detailed error description.
Example response · 403
User does not have enough permissions to execute the request.
The requested resource does not exist. See the response for more detailed error description.
Example response · 404
The requested resource does not exist.
Unexpected error. Please contact RoutiGo for more details
Example response · 500
An error has occurred while processing the request.
Shifts
A shift defines when a vehicle of a service centre is available for planning: its start time, its end time and whether the vehicle returns to the depot afterwards. A shift is identified by its route name and route code, which together must be unique within the service centre.
Relation to vehicles
Every shift references exactly one vehicle, through the vehicle identifier, and that vehicle must exist in the same service centre. The shift itself only carries the time window: the start and end location, the skills, the capacity and the limits used for planning all come from the vehicle it points at. One vehicle can carry several shifts, but a shift can never exist without a vehicle.
RoutiGo Configuration REST API · Shifts↑ Index
Fetch all shifts of a service centre
Returns every shift of the given service centre, or an empty list when it has none. Requires the ADMIN, PLANNER, SUBCO, READONLY or SEARCHONLY role on the service centre.
/v2 /configuration /serviceCentre /{serviceCentreCode} /shiftParameters
Path
The service centre code
Header
The code of the company the request is made for. Every resource is scoped to this company. See the security schemes for when it is needed.
Returns
Shifts successfully found and returned
A unique identifier for the shift, generated by the system
e.g. 23487234-7623476236-B76
The service centre the shift belongs to.
e.g. AMS
The name of the route this shift should relate to, combined with the route code to create a unique identifier
e.g. Rit
The code of the route this shift should relate to, combined with the route name to create a unique identifier
e.g. 01
vehiclerequiredVehicle 12 fieldsEither a specific vehicle or a vehicle type, depending on planning preferences
Either a specific vehicle or a vehicle type, depending on planning preferences
A unique identifier for the vehicle, generated by the system
e.g. 23487234-7623476236-B76
A readable identifier for the vehicle, provided by the user.
e.g. Sprinter
The type of the vehicle, used during planning to assume driving speed and accessible roads
startLocationrequiredPhysicalLocation 5 fieldsThe location the vehicle starts its routes from.
The location the vehicle starts its routes from.
The identifier of the location. Supplied by the caller and stored as given; the location is matched on its coordinates, not on this value.
e.g. depot-maarssen
A user given name, used for visualisation
e.g. Maarssen
The address of the location, also used for visualisation
e.g. Bisonspoor 3006, Maarssen
The latitude of the location
e.g. 52.364827
The longitude of the location
e.g. 5.892628
endLocationoptionalPhysicalLocation| null 5 fieldsThe location the vehicle ends its routes at. When absent, routes end at the start location.
The location the vehicle ends its routes at. When absent, routes end at the start location.
The identifier of the location. Supplied by the caller and stored as given; the location is matched on its coordinates, not on this value.
e.g. depot-maarssen
A user given name, used for visualisation
e.g. Maarssen
The address of the location, also used for visualisation
e.g. Bisonspoor 3006, Maarssen
The latitude of the location
e.g. 52.364827
The longitude of the location
e.g. 5.892628
Specifies a list of skills that the vehicle possesses.
e.g. ["forklift"]
capacityoptionalCapacityDto| null 2 fieldsThe capacity of the vehicle, expressed in the capacity unit configured for the service centre. Absent when the vehicle has no capacity or the service centre has no capacity unit.
The capacity of the vehicle, expressed in the capacity unit configured for the service centre. Absent when the vehicle has no capacity or the service centre has no capacity unit.
Amount of packages
e.g. 35
Name of the package, used for visualisation
e.g. Kratten
The number of maximum amount of stops this vehicle can visit in a route
e.g. 30
The maximum amount of kilometers this vehicle can drive in a route. (e.g. before recharging)
e.g. 280
The maximum amount of hours this vehicle can spend on the road in a route. e.g. as dictated by law.
e.g. PT11H30M
The driving speed factor. Used to adjust the speed at which planning assumes this vehicle drives.
e.g. 0.95
The service time speed factor. Used to adjust the speed at which services are performed, this is the duration of a stop.
e.g. 0.95
The time at which the shift starts
e.g. PT09H
The time at which the shift ends
e.g. PT17H
Boolean flag indicating if the courier should return back to the depot after finishing the shift
e.g. true
Example response · 200
[
{
"identifier": "23487234-7623476236-B76",
"serviceCentreCode": "AMS",
"routeName": "Rit",
"routeCode": "01",
"vehicle": {
"identifier": "23487234-7623476236-B76",
"name": "Sprinter",
"vehicleType": "CAR",
"startLocation": {
"id": "depot-maarssen",
"displayName": "Maarssen",
"address": "Bisonspoor 3006, Maarssen",
"latitude": 52.364827,
"longitude": 5.892628
},
"endLocation": {
"id": "depot-maarssen",
"displayName": "Maarssen",
"address": "Bisonspoor 3006, Maarssen",
"latitude": 52.364827,
"longitude": 5.892628
},
"skills": [
"forklift"
],
"capacity": {
"amount": 35,
"description": "Kratten"
},
"maxStops": 30,
"maxDistance": 280,
"maxDrivingTime": "PT11H30M",
"speedFactor": 0.95,
"serviceTimeFactor": 0.95
},
"startTime": "PT09H",
"endTime": "PT17H",
"returnToDepot": true
}
]Authentication information is missing or invalid. See the response for more detailed error description.
Example response · 401
Could not find a proper way to authenticate.
The user (or API key) does not have enough permissions to execute the request. See the response for more detailed error description.
Example response · 403
User does not have enough permissions to execute the request.
The requested resource does not exist. See the response for more detailed error description.
Example response · 404
The requested resource does not exist.
Unexpected error. Please contact RoutiGo for more details
Example response · 500
An error has occurred while processing the request.
RoutiGo Configuration REST API · Shifts↑ Index
Create a shift
Creates a shift for the given service centre and returns it with its generated identifier. The route name and route code together must be unique within the service centre, the referenced vehicle must exist in the same service centre, and the end time, when given, must lie after the start time. The shift is also registered as a route in RoutiGo. Requires the ADMIN or PLANNER role on the service centre.
/v2 /configuration /serviceCentre /{serviceCentreCode} /shiftParameters
Path
The service centre code
Header
The code of the company the request is made for. Every resource is scoped to this company. See the security schemes for when it is needed.
Request body required
The shift to create.
The name of the route this shift should relate to, combined with the route code to create a unique identifier
e.g. Rit
The code of the route this shift should relate to, combined with the route name to create a unique identifier
e.g. 01
The identifier of the vehicle that should be used in this shift.
e.g. 23487234-7623476236-B76
The time at which the shift starts
e.g. PT09H
The time at which the shift ends
e.g. PT17H
Boolean flag indicating if the courier should return back to the depot after finishing the shift
e.g. true
Returns
Shift is successfully created
A unique identifier for the shift, generated by the system
e.g. 23487234-7623476236-B76
The service centre the shift belongs to.
e.g. AMS
The name of the route this shift should relate to, combined with the route code to create a unique identifier
e.g. Rit
The code of the route this shift should relate to, combined with the route name to create a unique identifier
e.g. 01
vehiclerequiredVehicle 12 fieldsEither a specific vehicle or a vehicle type, depending on planning preferences
Either a specific vehicle or a vehicle type, depending on planning preferences
A unique identifier for the vehicle, generated by the system
e.g. 23487234-7623476236-B76
A readable identifier for the vehicle, provided by the user.
e.g. Sprinter
The type of the vehicle, used during planning to assume driving speed and accessible roads
startLocationrequiredPhysicalLocation 5 fieldsThe location the vehicle starts its routes from.
The location the vehicle starts its routes from.
The identifier of the location. Supplied by the caller and stored as given; the location is matched on its coordinates, not on this value.
e.g. depot-maarssen
A user given name, used for visualisation
e.g. Maarssen
The address of the location, also used for visualisation
e.g. Bisonspoor 3006, Maarssen
The latitude of the location
e.g. 52.364827
The longitude of the location
e.g. 5.892628
endLocationoptionalPhysicalLocation| null 5 fieldsThe location the vehicle ends its routes at. When absent, routes end at the start location.
The location the vehicle ends its routes at. When absent, routes end at the start location.
The identifier of the location. Supplied by the caller and stored as given; the location is matched on its coordinates, not on this value.
e.g. depot-maarssen
A user given name, used for visualisation
e.g. Maarssen
The address of the location, also used for visualisation
e.g. Bisonspoor 3006, Maarssen
The latitude of the location
e.g. 52.364827
The longitude of the location
e.g. 5.892628
Specifies a list of skills that the vehicle possesses.
e.g. ["forklift"]
capacityoptionalCapacityDto| null 2 fieldsThe capacity of the vehicle, expressed in the capacity unit configured for the service centre. Absent when the vehicle has no capacity or the service centre has no capacity unit.
The capacity of the vehicle, expressed in the capacity unit configured for the service centre. Absent when the vehicle has no capacity or the service centre has no capacity unit.
Amount of packages
e.g. 35
Name of the package, used for visualisation
e.g. Kratten
The number of maximum amount of stops this vehicle can visit in a route
e.g. 30
The maximum amount of kilometers this vehicle can drive in a route. (e.g. before recharging)
e.g. 280
The maximum amount of hours this vehicle can spend on the road in a route. e.g. as dictated by law.
e.g. PT11H30M
The driving speed factor. Used to adjust the speed at which planning assumes this vehicle drives.
e.g. 0.95
The service time speed factor. Used to adjust the speed at which services are performed, this is the duration of a stop.
e.g. 0.95
The time at which the shift starts
e.g. PT09H
The time at which the shift ends
e.g. PT17H
Boolean flag indicating if the courier should return back to the depot after finishing the shift
e.g. true
Example response · 201
{
"identifier": "23487234-7623476236-B76",
"serviceCentreCode": "AMS",
"routeName": "Rit",
"routeCode": "01",
"vehicle": {
"identifier": "23487234-7623476236-B76",
"name": "Sprinter",
"vehicleType": "CAR",
"startLocation": {
"id": "depot-maarssen",
"displayName": "Maarssen",
"address": "Bisonspoor 3006, Maarssen",
"latitude": 52.364827,
"longitude": 5.892628
},
"endLocation": {
"id": "depot-maarssen",
"displayName": "Maarssen",
"address": "Bisonspoor 3006, Maarssen",
"latitude": 52.364827,
"longitude": 5.892628
},
"skills": [
"forklift"
],
"capacity": {
"amount": 35,
"description": "Kratten"
},
"maxStops": 30,
"maxDistance": 280,
"maxDrivingTime": "PT11H30M",
"speedFactor": 0.95,
"serviceTimeFactor": 0.95
},
"startTime": "PT09H",
"endTime": "PT17H",
"returnToDepot": true
}Authentication information is missing or invalid. See the response for more detailed error description.
Example response · 401
Could not find a proper way to authenticate.
The user (or API key) does not have enough permissions to execute the request. See the response for more detailed error description.
Example response · 403
User does not have enough permissions to execute the request.
The requested resource does not exist. See the response for more detailed error description.
Example response · 404
The requested resource does not exist.
Unexpected error. Please contact RoutiGo for more details
Example response · 500
An error has occurred while processing the request.
RoutiGo Configuration REST API · Shifts↑ Index
Fetch a single shift by id
Returns one shift of the given service centre. Responds with 404 when no shift with this identifier exists in that service centre. Requires the ADMIN, PLANNER, SUBCO, READONLY or SEARCHONLY role on the service centre.
/v2 /configuration /serviceCentre /{serviceCentreCode} /shift /{shiftId}Parameters
Path
The service centre code
A shift identifier
Header
The code of the company the request is made for. Every resource is scoped to this company. See the security schemes for when it is needed.
Returns
Shift successfully found and returned
A unique identifier for the shift, generated by the system
e.g. 23487234-7623476236-B76
The service centre the shift belongs to.
e.g. AMS
The name of the route this shift should relate to, combined with the route code to create a unique identifier
e.g. Rit
The code of the route this shift should relate to, combined with the route name to create a unique identifier
e.g. 01
vehiclerequiredVehicle 12 fieldsEither a specific vehicle or a vehicle type, depending on planning preferences
Either a specific vehicle or a vehicle type, depending on planning preferences
A unique identifier for the vehicle, generated by the system
e.g. 23487234-7623476236-B76
A readable identifier for the vehicle, provided by the user.
e.g. Sprinter
The type of the vehicle, used during planning to assume driving speed and accessible roads
startLocationrequiredPhysicalLocation 5 fieldsThe location the vehicle starts its routes from.
The location the vehicle starts its routes from.
The identifier of the location. Supplied by the caller and stored as given; the location is matched on its coordinates, not on this value.
e.g. depot-maarssen
A user given name, used for visualisation
e.g. Maarssen
The address of the location, also used for visualisation
e.g. Bisonspoor 3006, Maarssen
The latitude of the location
e.g. 52.364827
The longitude of the location
e.g. 5.892628
endLocationoptionalPhysicalLocation| null 5 fieldsThe location the vehicle ends its routes at. When absent, routes end at the start location.
The location the vehicle ends its routes at. When absent, routes end at the start location.
The identifier of the location. Supplied by the caller and stored as given; the location is matched on its coordinates, not on this value.
e.g. depot-maarssen
A user given name, used for visualisation
e.g. Maarssen
The address of the location, also used for visualisation
e.g. Bisonspoor 3006, Maarssen
The latitude of the location
e.g. 52.364827
The longitude of the location
e.g. 5.892628
Specifies a list of skills that the vehicle possesses.
e.g. ["forklift"]
capacityoptionalCapacityDto| null 2 fieldsThe capacity of the vehicle, expressed in the capacity unit configured for the service centre. Absent when the vehicle has no capacity or the service centre has no capacity unit.
The capacity of the vehicle, expressed in the capacity unit configured for the service centre. Absent when the vehicle has no capacity or the service centre has no capacity unit.
Amount of packages
e.g. 35
Name of the package, used for visualisation
e.g. Kratten
The number of maximum amount of stops this vehicle can visit in a route
e.g. 30
The maximum amount of kilometers this vehicle can drive in a route. (e.g. before recharging)
e.g. 280
The maximum amount of hours this vehicle can spend on the road in a route. e.g. as dictated by law.
e.g. PT11H30M
The driving speed factor. Used to adjust the speed at which planning assumes this vehicle drives.
e.g. 0.95
The service time speed factor. Used to adjust the speed at which services are performed, this is the duration of a stop.
e.g. 0.95
The time at which the shift starts
e.g. PT09H
The time at which the shift ends
e.g. PT17H
Boolean flag indicating if the courier should return back to the depot after finishing the shift
e.g. true
Example response · 200
{
"identifier": "23487234-7623476236-B76",
"serviceCentreCode": "AMS",
"routeName": "Rit",
"routeCode": "01",
"vehicle": {
"identifier": "23487234-7623476236-B76",
"name": "Sprinter",
"vehicleType": "CAR",
"startLocation": {
"id": "depot-maarssen",
"displayName": "Maarssen",
"address": "Bisonspoor 3006, Maarssen",
"latitude": 52.364827,
"longitude": 5.892628
},
"endLocation": {
"id": "depot-maarssen",
"displayName": "Maarssen",
"address": "Bisonspoor 3006, Maarssen",
"latitude": 52.364827,
"longitude": 5.892628
},
"skills": [
"forklift"
],
"capacity": {
"amount": 35,
"description": "Kratten"
},
"maxStops": 30,
"maxDistance": 280,
"maxDrivingTime": "PT11H30M",
"speedFactor": 0.95,
"serviceTimeFactor": 0.95
},
"startTime": "PT09H",
"endTime": "PT17H",
"returnToDepot": true
}Authentication information is missing or invalid. See the response for more detailed error description.
Example response · 401
Could not find a proper way to authenticate.
The user (or API key) does not have enough permissions to execute the request. See the response for more detailed error description.
Example response · 403
User does not have enough permissions to execute the request.
The requested resource does not exist. See the response for more detailed error description.
Example response · 404
The requested resource does not exist.
Unexpected error. Please contact RoutiGo for more details
Example response · 500
An error has occurred while processing the request.
RoutiGo Configuration REST API · Shifts↑ Index
Update a shift
Replaces the start time, end time, vehicle and return-to-depot flag of an existing shift; the route name and route code cannot be changed. The referenced vehicle must exist in the same service centre. The corresponding route in RoutiGo is updated as well. Requires the ADMIN or PLANNER role on the service centre.
/v2 /configuration /serviceCentre /{serviceCentreCode} /shift /{shiftId}Parameters
Path
The service centre code
A shift identifier
Header
The code of the company the request is made for. Every resource is scoped to this company. See the security schemes for when it is needed.
Request body required
The shift to update to.
The time at which the shift starts
e.g. PT09H
The time at which the shift ends
e.g. PT17H
The identifier of the vehicle that should be used in this shift.
e.g. 23487234-7623476236-B76
Boolean flag indicating if the courier should return back to the depot after finishing the shift
e.g. true
Returns
Shift is successfully updated
A unique identifier for the shift, generated by the system
e.g. 23487234-7623476236-B76
The service centre the shift belongs to.
e.g. AMS
The name of the route this shift should relate to, combined with the route code to create a unique identifier
e.g. Rit
The code of the route this shift should relate to, combined with the route name to create a unique identifier
e.g. 01
vehiclerequiredVehicle 12 fieldsEither a specific vehicle or a vehicle type, depending on planning preferences
Either a specific vehicle or a vehicle type, depending on planning preferences
A unique identifier for the vehicle, generated by the system
e.g. 23487234-7623476236-B76
A readable identifier for the vehicle, provided by the user.
e.g. Sprinter
The type of the vehicle, used during planning to assume driving speed and accessible roads
startLocationrequiredPhysicalLocation 5 fieldsThe location the vehicle starts its routes from.
The location the vehicle starts its routes from.
The identifier of the location. Supplied by the caller and stored as given; the location is matched on its coordinates, not on this value.
e.g. depot-maarssen
A user given name, used for visualisation
e.g. Maarssen
The address of the location, also used for visualisation
e.g. Bisonspoor 3006, Maarssen
The latitude of the location
e.g. 52.364827
The longitude of the location
e.g. 5.892628
endLocationoptionalPhysicalLocation| null 5 fieldsThe location the vehicle ends its routes at. When absent, routes end at the start location.
The location the vehicle ends its routes at. When absent, routes end at the start location.
The identifier of the location. Supplied by the caller and stored as given; the location is matched on its coordinates, not on this value.
e.g. depot-maarssen
A user given name, used for visualisation
e.g. Maarssen
The address of the location, also used for visualisation
e.g. Bisonspoor 3006, Maarssen
The latitude of the location
e.g. 52.364827
The longitude of the location
e.g. 5.892628
Specifies a list of skills that the vehicle possesses.
e.g. ["forklift"]
capacityoptionalCapacityDto| null 2 fieldsThe capacity of the vehicle, expressed in the capacity unit configured for the service centre. Absent when the vehicle has no capacity or the service centre has no capacity unit.
The capacity of the vehicle, expressed in the capacity unit configured for the service centre. Absent when the vehicle has no capacity or the service centre has no capacity unit.
Amount of packages
e.g. 35
Name of the package, used for visualisation
e.g. Kratten
The number of maximum amount of stops this vehicle can visit in a route
e.g. 30
The maximum amount of kilometers this vehicle can drive in a route. (e.g. before recharging)
e.g. 280
The maximum amount of hours this vehicle can spend on the road in a route. e.g. as dictated by law.
e.g. PT11H30M
The driving speed factor. Used to adjust the speed at which planning assumes this vehicle drives.
e.g. 0.95
The service time speed factor. Used to adjust the speed at which services are performed, this is the duration of a stop.
e.g. 0.95
The time at which the shift starts
e.g. PT09H
The time at which the shift ends
e.g. PT17H
Boolean flag indicating if the courier should return back to the depot after finishing the shift
e.g. true
Example response · 200
{
"identifier": "23487234-7623476236-B76",
"serviceCentreCode": "AMS",
"routeName": "Rit",
"routeCode": "01",
"vehicle": {
"identifier": "23487234-7623476236-B76",
"name": "Sprinter",
"vehicleType": "CAR",
"startLocation": {
"id": "depot-maarssen",
"displayName": "Maarssen",
"address": "Bisonspoor 3006, Maarssen",
"latitude": 52.364827,
"longitude": 5.892628
},
"endLocation": {
"id": "depot-maarssen",
"displayName": "Maarssen",
"address": "Bisonspoor 3006, Maarssen",
"latitude": 52.364827,
"longitude": 5.892628
},
"skills": [
"forklift"
],
"capacity": {
"amount": 35,
"description": "Kratten"
},
"maxStops": 30,
"maxDistance": 280,
"maxDrivingTime": "PT11H30M",
"speedFactor": 0.95,
"serviceTimeFactor": 0.95
},
"startTime": "PT09H",
"endTime": "PT17H",
"returnToDepot": true
}Authentication information is missing or invalid. See the response for more detailed error description.
Example response · 401
Could not find a proper way to authenticate.
The user (or API key) does not have enough permissions to execute the request. See the response for more detailed error description.
Example response · 403
User does not have enough permissions to execute the request.
The requested resource does not exist. See the response for more detailed error description.
Example response · 404
The requested resource does not exist.
Unexpected error. Please contact RoutiGo for more details
Example response · 500
An error has occurred while processing the request.
RoutiGo Configuration REST API · Shifts↑ Index
Delete a shift
Deletes a shift and removes the corresponding route from RoutiGo. Requires the ADMIN or PLANNER role on the service centre.
/v2 /configuration /serviceCentre /{serviceCentreCode} /shift /{shiftId}Parameters
Path
The service centre code
A shift identifier
Header
The code of the company the request is made for. Every resource is scoped to this company. See the security schemes for when it is needed.
Returns
Shift is successfully deleted
No response body. A 200 status is the confirmation.
Authentication information is missing or invalid. See the response for more detailed error description.
Example response · 401
Could not find a proper way to authenticate.
The user (or API key) does not have enough permissions to execute the request. See the response for more detailed error description.
Example response · 403
User does not have enough permissions to execute the request.
The requested resource does not exist. See the response for more detailed error description.
Example response · 404
The requested resource does not exist.
Unexpected error. Please contact RoutiGo for more details
Example response · 500
An error has occurred while processing the request.