Error Structure

Error Structure

{
	"code": "domain_error",
	"message": "Error description"
}
AttributeDescriptionRequired
code*It is composed of the domain that is handling the request as a prefix and a short description or type of the error in snake case.true
message*A human-readable description of what is causing that error.true
reasonsThe details of the error caused. Ex: DRIVERS_LICENSE_INVALID for a customer's invalid driver's license. Check the domain error section for more details and how to treat itfalse
paramUsed to identify the invalid param passed via request. Ex: customerUUIDfalse

Validation error example

{
	"code":"rental_validation_error",
	"message":"Validation error",
	"param": "customerUUID"
}

Customer

Customer is validated on customer creation and update.

Validation Error

{
   "code":"customer_request_validation",
   "message":"*message",
   "errors":[
      {
         "property":"*propertyName",
         "message":"*errorMessage"
      }
   ],
   "reasons":[
      "FAILURE_REASON"
   ]
}

customer request validation messages

messagereasonerrorMessage
Payload is invalidPayload validation failed
Payload can not be readProperty is missingProperty must be provided
Required request body is missingRequest Body is empt
JSON parse errorWrong json format

Authorization Error

{
	"code":"customer_unauthorized",
	"message":"Unauthorized"
}

System Error

{
	"code":"customer_internal_server_error",
	"message": "Internal server error"
}

Rental

Driver Checks Error

Driver Checks are performed during create reservation and start rental requests and validate the data of customers persisted previously during the creation process, by our partners.

Driver Check Error Example

{
	"code":"rental_driver_check",
	"message":"Driver check error",
	"reasons":[
		"DRIVERS_LICENSE_INVALID",
		"TNC_NOT_ACCEPTED"
	]
}

Driver Check Failed Reasons

Driver Check (409)Instruction to the user
DRIVERS_LICENSE_INVALIDCheck your driver's license data
DRIVERS_LICENSE_EXPIREDUpdate your driver's license data
MIN_AGE_NOT_REACHEDThis vehicle is not available for drivers under 21
TNC_NOT_ACCEPTEDRead and confirm our Terms and Conditions

Criteria Not Met Error

Every single end rental request is submitted to a vehicle check, that checks every criteria that secures the vehicle before starting the process of ending a rental.

End Rental Criteria Not Met Error Example

{
	"code":"rental_criteria_not_met",
	"message":"Criteria not met",
	"reasons":[
		"CARKEY"
	]
}

End Rental Criteria Reasons

Open End Rental Criterium (409)Instruction to the user
IGNITIONTurn off the ignition
KEY_IN_IGNITIONRemove the key from the ignition and return it to the keyholder
CARKEYReturn the key to the keyholder
OUTOFAREAReturn the vehicle to the business area
FUELCARDReturn the fuel card to the cardholder
PARKCARDReturn the parking card to the cardholder
LIGHTSTurn off the lights
HANDBRAKEPull up the hand brake
WINDOW_LEFTClose the front left window
WINDOW_LEFT_REARClose the rear left window
WINDOW_RIGHTClose the front right window
WINDOW_RIGHT_REARClose the rear right window
SUNROOFClose the sunroof
DOOR_LEFTClose the front left door
DOOR_LEFT_REARClose the rear left door
DOOR_RIGHTClose the front right door
DOOR_RIGHT_REARClose the rear right door
TRUNKClose the trunk
VEHICLE_NOT_CONNECTEDWait a bit. If the status persists, please call us.
GEAR_POSITIONPut the gear in the Park (P) position.
VEHICLE_BLOCKED_BY_PHYSICAL_KEYPlease, return the physical key to the holder and let the vehicle doors unlocked

Vehicle Not Available

The api will throw the error code: RENTAL_VEHICLE_NOT_AVAILABLE in the following situation:

  • The vin informed contains a invalid hardware type for partner
  • The vehicle is disconnected
  • The vehicle is not in a rentable (green) state.

Geolocations

All geolocation data is served statically. The only error code to expect is a 404, if the API user made a mistake with the path, i.e. by using a non-existing location name. The 404 error body is a "The specified key does not exist." message, returned in xml format, independent of the accept header.