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.

How to get a key →

17 calls

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.

GET/v2/configuration/vrp/skills

Parameters

Header
X-COMPANY-CODEoptional
string

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.

list ofstring [ ]
Example response · 200
[
  "string"
]

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.

GET/v2/configuration/vrp/skills/routigoDefinedSkills

Parameters

Header
X-COMPANY-CODEoptional
string

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.

RoutigoDefinedSkills
zeroEmissionrequired
boolean

This skill guarantees shipments are delivered in an eco-friendly way by using electric vehicles.

e.g. true

Example response · 200
{
  "zeroEmission": true
}

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.

PUT/v2/configuration/vrp/skills/routigoDefinedSkills

Parameters

Header
X-COMPANY-CODEoptional
string

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

RoutigoDefinedSkills
zeroEmissionrequired
boolean

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.

RoutigoDefinedSkills
zeroEmissionrequired
boolean

This skill guarantees shipments are delivered in an eco-friendly way by using electric vehicles.

e.g. true

Example response · 200
{
  "zeroEmission": true
}

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.

GET/v2/configuration/vrp/skills/userDefinedSkills

Parameters

Header
X-COMPANY-CODEoptional
string

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.

list ofUserDefinedSkill [ ]
skillCoderequired
string

A unique identifier for the skill.

e.g. drillingMachine

skillNamerequired
string

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

enabledrequired
boolean

Indicates whether the skill is currently enabled or disabled.

e.g. true

Example response · 200
[
  {
    "skillCode": "drillingMachine",
    "skillName": "drilling machine",
    "enabled": true
  }
]

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.

POST/v2/configuration/vrp/skills/userDefinedSkills

Parameters

Header
X-COMPANY-CODEoptional
string

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.

UserDefinedSkillToCreate
skillCoderequired
string

A unique identifier for the skill.

e.g. drillingMachine

skillNamerequired
string

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.

UserDefinedSkill
skillCoderequired
string

A unique identifier for the skill.

e.g. drillingMachine

skillNamerequired
string

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

enabledrequired
boolean

Indicates whether the skill is currently enabled or disabled.

e.g. true

Example response · 201
{
  "skillCode": "drillingMachine",
  "skillName": "drilling machine",
  "enabled": true
}

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.

GET/v2/configuration/vrp/skills/userDefinedSkills/{userDefinedSkillCode}

Parameters

Header
X-COMPANY-CODEoptional
string

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.

UserDefinedSkill
skillCoderequired
string

A unique identifier for the skill.

e.g. drillingMachine

skillNamerequired
string

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

enabledrequired
boolean

Indicates whether the skill is currently enabled or disabled.

e.g. true

Example response · 200
{
  "skillCode": "drillingMachine",
  "skillName": "drilling machine",
  "enabled": true
}

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.

PUT/v2/configuration/vrp/skills/userDefinedSkills/{userDefinedSkillCode}

Parameters

Path
userDefinedSkillCoderequired
string

The user-defined skillCode

Header
X-COMPANY-CODEoptional
string

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

UserDefinedSkillToUpdate
skillNamerequired
string

The human-readable name of the skill.

e.g. drilling machine

enabledrequired
boolean

Indicates whether the skill is currently enabled or disabled.

e.g. true

Returns

The user-defined skill is successfully updated.

UserDefinedSkill
skillCoderequired
string

A unique identifier for the skill.

e.g. drillingMachine

skillNamerequired
string

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

enabledrequired
boolean

Indicates whether the skill is currently enabled or disabled.

e.g. true

Example response · 200
{
  "skillCode": "drillingMachine",
  "skillName": "drilling machine",
  "enabled": true
}

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.

GET/v2/configuration/serviceCentre/{serviceCentreCode}/vehicle

Parameters

Path
serviceCentreCoderequired
string

The service centre code

Header
X-COMPANY-CODEoptional
string

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

list ofVehicle [ ]
identifierrequired
string

A unique identifier for the vehicle, generated by the system

e.g. 23487234-7623476236-B76

namerequired
string

A readable identifier for the vehicle, provided by the user.

e.g. Sprinter

vehicleTyperequired
stringCARSMALL_TRUCKEVBIKETRUCK

The type of the vehicle, used during planning to assume driving speed and accessible roads

startLocationrequired
PhysicalLocation 5 fields

The location the vehicle starts its routes from.

idrequired
string

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

displayNamerequired
string

A user given name, used for visualisation

e.g. Maarssen

addressrequired
string

The address of the location, also used for visualisation

e.g. Bisonspoor 3006, Maarssen

latituderequired
number· double

The latitude of the location

e.g. 52.364827

longituderequired
number· double

The longitude of the location

e.g. 5.892628

endLocationoptional
PhysicalLocation| null 5 fields

The location the vehicle ends its routes at. When absent, routes end at the start location.

idrequired
string

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

displayNamerequired
string

A user given name, used for visualisation

e.g. Maarssen

addressrequired
string

The address of the location, also used for visualisation

e.g. Bisonspoor 3006, Maarssen

latituderequired
number· double

The latitude of the location

e.g. 52.364827

longituderequired
number· double

The longitude of the location

e.g. 5.892628

skillsoptional
string [ ]| null

Specifies a list of skills that the vehicle possesses.

e.g. ["forklift"]

capacityoptional
CapacityDto| null 2 fields

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.

amountrequired
integer· int32

Amount of packages

e.g. 35

descriptionrequired
string

Name of the package, used for visualisation

e.g. Kratten

maxStopsoptional
integer· int32| null

The number of maximum amount of stops this vehicle can visit in a route

e.g. 30

maxDistanceoptional
number· double| null

The maximum amount of kilometers this vehicle can drive in a route. (e.g. before recharging)

e.g. 280

maxDrivingTimeoptional
string| null

The maximum amount of hours this vehicle can spend on the road in a route. e.g. as dictated by law.

e.g. PT11H30M

speedFactoroptional
number· double

The driving speed factor. Used to adjust the speed at which planning assumes this vehicle drives.

e.g. 0.95

serviceTimeFactoroptional
number· double

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
  }
]

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.

POST/v2/configuration/serviceCentre/{serviceCentreCode}/vehicle

Parameters

Path
serviceCentreCoderequired
string

The service centre code

Header
X-COMPANY-CODEoptional
string

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.

VehicleDefinitionToCreateDto
namerequired
string

A readable identifier for the vehicle, provided by the user.

e.g. Sprinter

vehicleTyperequired
stringCARSMALL_TRUCKEVBIKETRUCK

The type of the vehicle, used during planning to assume driving speed and accessible roads

startLocationrequired
PhysicalLocation 5 fields

The location the vehicle starts its routes from. Matched on coordinates and reused when the service centre already has it.

idrequired
string

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

displayNamerequired
string

A user given name, used for visualisation

e.g. Maarssen

addressrequired
string

The address of the location, also used for visualisation

e.g. Bisonspoor 3006, Maarssen

latituderequired
number· double

The latitude of the location

e.g. 52.364827

longituderequired
number· double

The longitude of the location

e.g. 5.892628

endLocationoptional
PhysicalLocation| null 5 fields

The location the vehicle ends its routes at. Omit it to let routes end at the start location.

idrequired
string

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

displayNamerequired
string

A user given name, used for visualisation

e.g. Maarssen

addressrequired
string

The address of the location, also used for visualisation

e.g. Bisonspoor 3006, Maarssen

latituderequired
number· double

The latitude of the location

e.g. 52.364827

longituderequired
number· double

The longitude of the location

e.g. 5.892628

skillsoptional
string [ ]| null

Specifies a list of skills that the vehicle possesses.

e.g. ["forklift"]

maxStopsoptional
integer· int32| null

The number of maximum amount of stops this vehicle can visit in a route

e.g. 30

maxDistanceoptional
number· double| null

The maximum amount of kilometers this vehicle can drive in a route. (e.g. before recharging)

e.g. 280

maxDrivingTimeoptional
string| null

The maximum amount of hours this vehicle can spend on the road in a route. e.g. as dictated by law.

e.g. PT11H30M

speedFactoroptional
number· double

The driving speed factor. Used to adjust the speed at which planning assumes this vehicle drives.

e.g. 0.95

serviceTimeFactoroptional
number· double

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

capacityAmountoptional
integer· int32| null

Capacity of the vehicle in the configured amount.

e.g. 35

Returns

Vehicle is successfully created

Vehicle
identifierrequired
string

A unique identifier for the vehicle, generated by the system

e.g. 23487234-7623476236-B76

namerequired
string

A readable identifier for the vehicle, provided by the user.

e.g. Sprinter

vehicleTyperequired
stringCARSMALL_TRUCKEVBIKETRUCK

The type of the vehicle, used during planning to assume driving speed and accessible roads

startLocationrequired
PhysicalLocation 5 fields

The location the vehicle starts its routes from.

idrequired
string

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

displayNamerequired
string

A user given name, used for visualisation

e.g. Maarssen

addressrequired
string

The address of the location, also used for visualisation

e.g. Bisonspoor 3006, Maarssen

latituderequired
number· double

The latitude of the location

e.g. 52.364827

longituderequired
number· double

The longitude of the location

e.g. 5.892628

endLocationoptional
PhysicalLocation| null 5 fields

The location the vehicle ends its routes at. When absent, routes end at the start location.

idrequired
string

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

displayNamerequired
string

A user given name, used for visualisation

e.g. Maarssen

addressrequired
string

The address of the location, also used for visualisation

e.g. Bisonspoor 3006, Maarssen

latituderequired
number· double

The latitude of the location

e.g. 52.364827

longituderequired
number· double

The longitude of the location

e.g. 5.892628

skillsoptional
string [ ]| null

Specifies a list of skills that the vehicle possesses.

e.g. ["forklift"]

capacityoptional
CapacityDto| null 2 fields

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.

amountrequired
integer· int32

Amount of packages

e.g. 35

descriptionrequired
string

Name of the package, used for visualisation

e.g. Kratten

maxStopsoptional
integer· int32| null

The number of maximum amount of stops this vehicle can visit in a route

e.g. 30

maxDistanceoptional
number· double| null

The maximum amount of kilometers this vehicle can drive in a route. (e.g. before recharging)

e.g. 280

maxDrivingTimeoptional
string| null

The maximum amount of hours this vehicle can spend on the road in a route. e.g. as dictated by law.

e.g. PT11H30M

speedFactoroptional
number· double

The driving speed factor. Used to adjust the speed at which planning assumes this vehicle drives.

e.g. 0.95

serviceTimeFactoroptional
number· double

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
}

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.

GET/v2/configuration/serviceCentre/{serviceCentreCode}/vehicle/{vehicleId}

Parameters

Path
serviceCentreCoderequired
string

The service centre code

vehicleIdrequired
string

A vehicle identifier

Header
X-COMPANY-CODEoptional
string

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

Vehicle
identifierrequired
string

A unique identifier for the vehicle, generated by the system

e.g. 23487234-7623476236-B76

namerequired
string

A readable identifier for the vehicle, provided by the user.

e.g. Sprinter

vehicleTyperequired
stringCARSMALL_TRUCKEVBIKETRUCK

The type of the vehicle, used during planning to assume driving speed and accessible roads

startLocationrequired
PhysicalLocation 5 fields

The location the vehicle starts its routes from.

idrequired
string

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

displayNamerequired
string

A user given name, used for visualisation

e.g. Maarssen

addressrequired
string

The address of the location, also used for visualisation

e.g. Bisonspoor 3006, Maarssen

latituderequired
number· double

The latitude of the location

e.g. 52.364827

longituderequired
number· double

The longitude of the location

e.g. 5.892628

endLocationoptional
PhysicalLocation| null 5 fields

The location the vehicle ends its routes at. When absent, routes end at the start location.

idrequired
string

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

displayNamerequired
string

A user given name, used for visualisation

e.g. Maarssen

addressrequired
string

The address of the location, also used for visualisation

e.g. Bisonspoor 3006, Maarssen

latituderequired
number· double

The latitude of the location

e.g. 52.364827

longituderequired
number· double

The longitude of the location

e.g. 5.892628

skillsoptional
string [ ]| null

Specifies a list of skills that the vehicle possesses.

e.g. ["forklift"]

capacityoptional
CapacityDto| null 2 fields

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.

amountrequired
integer· int32

Amount of packages

e.g. 35

descriptionrequired
string

Name of the package, used for visualisation

e.g. Kratten

maxStopsoptional
integer· int32| null

The number of maximum amount of stops this vehicle can visit in a route

e.g. 30

maxDistanceoptional
number· double| null

The maximum amount of kilometers this vehicle can drive in a route. (e.g. before recharging)

e.g. 280

maxDrivingTimeoptional
string| null

The maximum amount of hours this vehicle can spend on the road in a route. e.g. as dictated by law.

e.g. PT11H30M

speedFactoroptional
number· double

The driving speed factor. Used to adjust the speed at which planning assumes this vehicle drives.

e.g. 0.95

serviceTimeFactoroptional
number· double

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
}

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.

PUT/v2/configuration/serviceCentre/{serviceCentreCode}/vehicle/{vehicleId}

Parameters

Path
serviceCentreCoderequired
string

The service centre code

vehicleIdrequired
string

A vehicle identifier

Header
X-COMPANY-CODEoptional
string

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.

VehicleDefinitionToUpdateDto
namerequired
string

A readable identifier for the vehicle, provided by the user.

e.g. Sprinter

startLocationrequired
PhysicalLocation 5 fields

The location the vehicle starts its routes from. Matched on coordinates and reused when the service centre already has it.

idrequired
string

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

displayNamerequired
string

A user given name, used for visualisation

e.g. Maarssen

addressrequired
string

The address of the location, also used for visualisation

e.g. Bisonspoor 3006, Maarssen

latituderequired
number· double

The latitude of the location

e.g. 52.364827

longituderequired
number· double

The longitude of the location

e.g. 5.892628

endLocationoptional
PhysicalLocation| null 5 fields

The location the vehicle ends its routes at. Omit it to let routes end at the start location.

idrequired
string

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

displayNamerequired
string

A user given name, used for visualisation

e.g. Maarssen

addressrequired
string

The address of the location, also used for visualisation

e.g. Bisonspoor 3006, Maarssen

latituderequired
number· double

The latitude of the location

e.g. 52.364827

longituderequired
number· double

The longitude of the location

e.g. 5.892628

skillsoptional
string [ ]| null

Specifies a list of skills that the vehicle possesses.

e.g. ["forklift"]

maxStopsoptional
integer· int32| null

The number of maximum amount of stops this vehicle can visit in a route

e.g. 30

maxDistanceoptional
number· double| null

The maximum amount of kilometers this vehicle can drive in a route. (e.g. before recharging)

e.g. 280

maxDrivingTimeoptional
string| null

The maximum amount of hours this vehicle can spend on the road in a route. e.g. as dictated by law.

e.g. PT11H30M

speedFactoroptional
number· double

The driving speed factor. Used to adjust the speed at which planning assumes this vehicle drives.

e.g. 0.95

serviceTimeFactoroptional
number· double

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

capacityAmountoptional
integer· int32| null

Capacity of the vehicle in the configured amount.

e.g. 35

Returns

Vehicle is successfully updated

Vehicle
identifierrequired
string

A unique identifier for the vehicle, generated by the system

e.g. 23487234-7623476236-B76

namerequired
string

A readable identifier for the vehicle, provided by the user.

e.g. Sprinter

vehicleTyperequired
stringCARSMALL_TRUCKEVBIKETRUCK

The type of the vehicle, used during planning to assume driving speed and accessible roads

startLocationrequired
PhysicalLocation 5 fields

The location the vehicle starts its routes from.

idrequired
string

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

displayNamerequired
string

A user given name, used for visualisation

e.g. Maarssen

addressrequired
string

The address of the location, also used for visualisation

e.g. Bisonspoor 3006, Maarssen

latituderequired
number· double

The latitude of the location

e.g. 52.364827

longituderequired
number· double

The longitude of the location

e.g. 5.892628

endLocationoptional
PhysicalLocation| null 5 fields

The location the vehicle ends its routes at. When absent, routes end at the start location.

idrequired
string

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

displayNamerequired
string

A user given name, used for visualisation

e.g. Maarssen

addressrequired
string

The address of the location, also used for visualisation

e.g. Bisonspoor 3006, Maarssen

latituderequired
number· double

The latitude of the location

e.g. 52.364827

longituderequired
number· double

The longitude of the location

e.g. 5.892628

skillsoptional
string [ ]| null

Specifies a list of skills that the vehicle possesses.

e.g. ["forklift"]

capacityoptional
CapacityDto| null 2 fields

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.

amountrequired
integer· int32

Amount of packages

e.g. 35

descriptionrequired
string

Name of the package, used for visualisation

e.g. Kratten

maxStopsoptional
integer· int32| null

The number of maximum amount of stops this vehicle can visit in a route

e.g. 30

maxDistanceoptional
number· double| null

The maximum amount of kilometers this vehicle can drive in a route. (e.g. before recharging)

e.g. 280

maxDrivingTimeoptional
string| null

The maximum amount of hours this vehicle can spend on the road in a route. e.g. as dictated by law.

e.g. PT11H30M

speedFactoroptional
number· double

The driving speed factor. Used to adjust the speed at which planning assumes this vehicle drives.

e.g. 0.95

serviceTimeFactoroptional
number· double

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
}

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.

DELETE/v2/configuration/serviceCentre/{serviceCentreCode}/vehicle/{vehicleId}

Parameters

Path
serviceCentreCoderequired
string

The service centre code

vehicleIdrequired
string

A vehicle identifier

Header
X-COMPANY-CODEoptional
string

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 body

No response body. A 200 status is the confirmation.

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.

GET/v2/configuration/serviceCentre/{serviceCentreCode}/shift

Parameters

Path
serviceCentreCoderequired
string

The service centre code

Header
X-COMPANY-CODEoptional
string

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

list ofShift [ ]
identifierrequired
string

A unique identifier for the shift, generated by the system

e.g. 23487234-7623476236-B76

serviceCentreCoderequired
string

The service centre the shift belongs to.

e.g. AMS

routeNamerequired
string

The name of the route this shift should relate to, combined with the route code to create a unique identifier

e.g. Rit

routeCoderequired
string

The code of the route this shift should relate to, combined with the route name to create a unique identifier

e.g. 01

vehiclerequired
Vehicle 12 fields

Either a specific vehicle or a vehicle type, depending on planning preferences

identifierrequired
string

A unique identifier for the vehicle, generated by the system

e.g. 23487234-7623476236-B76

namerequired
string

A readable identifier for the vehicle, provided by the user.

e.g. Sprinter

vehicleTyperequired
stringCARSMALL_TRUCKEVBIKETRUCK

The type of the vehicle, used during planning to assume driving speed and accessible roads

startLocationrequired
PhysicalLocation 5 fields

The location the vehicle starts its routes from.

idrequired
string

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

displayNamerequired
string

A user given name, used for visualisation

e.g. Maarssen

addressrequired
string

The address of the location, also used for visualisation

e.g. Bisonspoor 3006, Maarssen

latituderequired
number· double

The latitude of the location

e.g. 52.364827

longituderequired
number· double

The longitude of the location

e.g. 5.892628

endLocationoptional
PhysicalLocation| null 5 fields

The location the vehicle ends its routes at. When absent, routes end at the start location.

idrequired
string

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

displayNamerequired
string

A user given name, used for visualisation

e.g. Maarssen

addressrequired
string

The address of the location, also used for visualisation

e.g. Bisonspoor 3006, Maarssen

latituderequired
number· double

The latitude of the location

e.g. 52.364827

longituderequired
number· double

The longitude of the location

e.g. 5.892628

skillsoptional
string [ ]| null

Specifies a list of skills that the vehicle possesses.

e.g. ["forklift"]

capacityoptional
CapacityDto| null 2 fields

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.

amountrequired
integer· int32

Amount of packages

e.g. 35

descriptionrequired
string

Name of the package, used for visualisation

e.g. Kratten

maxStopsoptional
integer· int32| null

The number of maximum amount of stops this vehicle can visit in a route

e.g. 30

maxDistanceoptional
number· double| null

The maximum amount of kilometers this vehicle can drive in a route. (e.g. before recharging)

e.g. 280

maxDrivingTimeoptional
string| null

The maximum amount of hours this vehicle can spend on the road in a route. e.g. as dictated by law.

e.g. PT11H30M

speedFactoroptional
number· double

The driving speed factor. Used to adjust the speed at which planning assumes this vehicle drives.

e.g. 0.95

serviceTimeFactoroptional
number· double

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

startTimerequired
string

The time at which the shift starts

e.g. PT09H

endTimeoptional
string| null

The time at which the shift ends

e.g. PT17H

returnToDepotoptional
boolean

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
  }
]

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.

POST/v2/configuration/serviceCentre/{serviceCentreCode}/shift

Parameters

Path
serviceCentreCoderequired
string

The service centre code

Header
X-COMPANY-CODEoptional
string

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.

ShiftToCreateDto
routeNamerequired
string

The name of the route this shift should relate to, combined with the route code to create a unique identifier

e.g. Rit

routeCoderequired
string

The code of the route this shift should relate to, combined with the route name to create a unique identifier

e.g. 01

vehicleIdentifierrequired
string

The identifier of the vehicle that should be used in this shift.

e.g. 23487234-7623476236-B76

startTimerequired
string

The time at which the shift starts

e.g. PT09H

endTimeoptional
string| null

The time at which the shift ends

e.g. PT17H

returnToDepotoptional
boolean

Boolean flag indicating if the courier should return back to the depot after finishing the shift

e.g. true

Returns

Shift is successfully created

Shift
identifierrequired
string

A unique identifier for the shift, generated by the system

e.g. 23487234-7623476236-B76

serviceCentreCoderequired
string

The service centre the shift belongs to.

e.g. AMS

routeNamerequired
string

The name of the route this shift should relate to, combined with the route code to create a unique identifier

e.g. Rit

routeCoderequired
string

The code of the route this shift should relate to, combined with the route name to create a unique identifier

e.g. 01

vehiclerequired
Vehicle 12 fields

Either a specific vehicle or a vehicle type, depending on planning preferences

identifierrequired
string

A unique identifier for the vehicle, generated by the system

e.g. 23487234-7623476236-B76

namerequired
string

A readable identifier for the vehicle, provided by the user.

e.g. Sprinter

vehicleTyperequired
stringCARSMALL_TRUCKEVBIKETRUCK

The type of the vehicle, used during planning to assume driving speed and accessible roads

startLocationrequired
PhysicalLocation 5 fields

The location the vehicle starts its routes from.

idrequired
string

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

displayNamerequired
string

A user given name, used for visualisation

e.g. Maarssen

addressrequired
string

The address of the location, also used for visualisation

e.g. Bisonspoor 3006, Maarssen

latituderequired
number· double

The latitude of the location

e.g. 52.364827

longituderequired
number· double

The longitude of the location

e.g. 5.892628

endLocationoptional
PhysicalLocation| null 5 fields

The location the vehicle ends its routes at. When absent, routes end at the start location.

idrequired
string

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

displayNamerequired
string

A user given name, used for visualisation

e.g. Maarssen

addressrequired
string

The address of the location, also used for visualisation

e.g. Bisonspoor 3006, Maarssen

latituderequired
number· double

The latitude of the location

e.g. 52.364827

longituderequired
number· double

The longitude of the location

e.g. 5.892628

skillsoptional
string [ ]| null

Specifies a list of skills that the vehicle possesses.

e.g. ["forklift"]

capacityoptional
CapacityDto| null 2 fields

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.

amountrequired
integer· int32

Amount of packages

e.g. 35

descriptionrequired
string

Name of the package, used for visualisation

e.g. Kratten

maxStopsoptional
integer· int32| null

The number of maximum amount of stops this vehicle can visit in a route

e.g. 30

maxDistanceoptional
number· double| null

The maximum amount of kilometers this vehicle can drive in a route. (e.g. before recharging)

e.g. 280

maxDrivingTimeoptional
string| null

The maximum amount of hours this vehicle can spend on the road in a route. e.g. as dictated by law.

e.g. PT11H30M

speedFactoroptional
number· double

The driving speed factor. Used to adjust the speed at which planning assumes this vehicle drives.

e.g. 0.95

serviceTimeFactoroptional
number· double

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

startTimerequired
string

The time at which the shift starts

e.g. PT09H

endTimeoptional
string| null

The time at which the shift ends

e.g. PT17H

returnToDepotoptional
boolean

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
}

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.

GET/v2/configuration/serviceCentre/{serviceCentreCode}/shift/{shiftId}

Parameters

Path
serviceCentreCoderequired
string

The service centre code

shiftIdrequired
string

A shift identifier

Header
X-COMPANY-CODEoptional
string

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

Shift
identifierrequired
string

A unique identifier for the shift, generated by the system

e.g. 23487234-7623476236-B76

serviceCentreCoderequired
string

The service centre the shift belongs to.

e.g. AMS

routeNamerequired
string

The name of the route this shift should relate to, combined with the route code to create a unique identifier

e.g. Rit

routeCoderequired
string

The code of the route this shift should relate to, combined with the route name to create a unique identifier

e.g. 01

vehiclerequired
Vehicle 12 fields

Either a specific vehicle or a vehicle type, depending on planning preferences

identifierrequired
string

A unique identifier for the vehicle, generated by the system

e.g. 23487234-7623476236-B76

namerequired
string

A readable identifier for the vehicle, provided by the user.

e.g. Sprinter

vehicleTyperequired
stringCARSMALL_TRUCKEVBIKETRUCK

The type of the vehicle, used during planning to assume driving speed and accessible roads

startLocationrequired
PhysicalLocation 5 fields

The location the vehicle starts its routes from.

idrequired
string

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

displayNamerequired
string

A user given name, used for visualisation

e.g. Maarssen

addressrequired
string

The address of the location, also used for visualisation

e.g. Bisonspoor 3006, Maarssen

latituderequired
number· double

The latitude of the location

e.g. 52.364827

longituderequired
number· double

The longitude of the location

e.g. 5.892628

endLocationoptional
PhysicalLocation| null 5 fields

The location the vehicle ends its routes at. When absent, routes end at the start location.

idrequired
string

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

displayNamerequired
string

A user given name, used for visualisation

e.g. Maarssen

addressrequired
string

The address of the location, also used for visualisation

e.g. Bisonspoor 3006, Maarssen

latituderequired
number· double

The latitude of the location

e.g. 52.364827

longituderequired
number· double

The longitude of the location

e.g. 5.892628

skillsoptional
string [ ]| null

Specifies a list of skills that the vehicle possesses.

e.g. ["forklift"]

capacityoptional
CapacityDto| null 2 fields

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.

amountrequired
integer· int32

Amount of packages

e.g. 35

descriptionrequired
string

Name of the package, used for visualisation

e.g. Kratten

maxStopsoptional
integer· int32| null

The number of maximum amount of stops this vehicle can visit in a route

e.g. 30

maxDistanceoptional
number· double| null

The maximum amount of kilometers this vehicle can drive in a route. (e.g. before recharging)

e.g. 280

maxDrivingTimeoptional
string| null

The maximum amount of hours this vehicle can spend on the road in a route. e.g. as dictated by law.

e.g. PT11H30M

speedFactoroptional
number· double

The driving speed factor. Used to adjust the speed at which planning assumes this vehicle drives.

e.g. 0.95

serviceTimeFactoroptional
number· double

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

startTimerequired
string

The time at which the shift starts

e.g. PT09H

endTimeoptional
string| null

The time at which the shift ends

e.g. PT17H

returnToDepotoptional
boolean

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
}

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.

PUT/v2/configuration/serviceCentre/{serviceCentreCode}/shift/{shiftId}

Parameters

Path
serviceCentreCoderequired
string

The service centre code

shiftIdrequired
string

A shift identifier

Header
X-COMPANY-CODEoptional
string

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.

ShiftToUpdateDto
startTimerequired
string

The time at which the shift starts

e.g. PT09H

endTimeoptional
string| null

The time at which the shift ends

e.g. PT17H

vehicleIdentifierrequired
string

The identifier of the vehicle that should be used in this shift.

e.g. 23487234-7623476236-B76

returnToDepotoptional
boolean

Boolean flag indicating if the courier should return back to the depot after finishing the shift

e.g. true

Returns

Shift is successfully updated

Shift
identifierrequired
string

A unique identifier for the shift, generated by the system

e.g. 23487234-7623476236-B76

serviceCentreCoderequired
string

The service centre the shift belongs to.

e.g. AMS

routeNamerequired
string

The name of the route this shift should relate to, combined with the route code to create a unique identifier

e.g. Rit

routeCoderequired
string

The code of the route this shift should relate to, combined with the route name to create a unique identifier

e.g. 01

vehiclerequired
Vehicle 12 fields

Either a specific vehicle or a vehicle type, depending on planning preferences

identifierrequired
string

A unique identifier for the vehicle, generated by the system

e.g. 23487234-7623476236-B76

namerequired
string

A readable identifier for the vehicle, provided by the user.

e.g. Sprinter

vehicleTyperequired
stringCARSMALL_TRUCKEVBIKETRUCK

The type of the vehicle, used during planning to assume driving speed and accessible roads

startLocationrequired
PhysicalLocation 5 fields

The location the vehicle starts its routes from.

idrequired
string

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

displayNamerequired
string

A user given name, used for visualisation

e.g. Maarssen

addressrequired
string

The address of the location, also used for visualisation

e.g. Bisonspoor 3006, Maarssen

latituderequired
number· double

The latitude of the location

e.g. 52.364827

longituderequired
number· double

The longitude of the location

e.g. 5.892628

endLocationoptional
PhysicalLocation| null 5 fields

The location the vehicle ends its routes at. When absent, routes end at the start location.

idrequired
string

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

displayNamerequired
string

A user given name, used for visualisation

e.g. Maarssen

addressrequired
string

The address of the location, also used for visualisation

e.g. Bisonspoor 3006, Maarssen

latituderequired
number· double

The latitude of the location

e.g. 52.364827

longituderequired
number· double

The longitude of the location

e.g. 5.892628

skillsoptional
string [ ]| null

Specifies a list of skills that the vehicle possesses.

e.g. ["forklift"]

capacityoptional
CapacityDto| null 2 fields

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.

amountrequired
integer· int32

Amount of packages

e.g. 35

descriptionrequired
string

Name of the package, used for visualisation

e.g. Kratten

maxStopsoptional
integer· int32| null

The number of maximum amount of stops this vehicle can visit in a route

e.g. 30

maxDistanceoptional
number· double| null

The maximum amount of kilometers this vehicle can drive in a route. (e.g. before recharging)

e.g. 280

maxDrivingTimeoptional
string| null

The maximum amount of hours this vehicle can spend on the road in a route. e.g. as dictated by law.

e.g. PT11H30M

speedFactoroptional
number· double

The driving speed factor. Used to adjust the speed at which planning assumes this vehicle drives.

e.g. 0.95

serviceTimeFactoroptional
number· double

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

startTimerequired
string

The time at which the shift starts

e.g. PT09H

endTimeoptional
string| null

The time at which the shift ends

e.g. PT17H

returnToDepotoptional
boolean

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
}

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.

DELETE/v2/configuration/serviceCentre/{serviceCentreCode}/shift/{shiftId}

Parameters

Path
serviceCentreCoderequired
string

The service centre code

shiftIdrequired
string

A shift identifier

Header
X-COMPANY-CODEoptional
string

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 body

No response body. A 200 status is the confirmation.