Vehicles
Add Vehicle
Changed onEndpoint to add a new Vehicle.
post/business/v2/vehicles
Request
- Base URLhttps://api.soldo.com
- AuthOAuth 2Client credentialsToken URLhttps://api.soldo.com/oauth/authorizeScopesvehicle_write
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"number_plate": "AA000BB",
"description": "Employee electric vehicle",
"reimbursement_rate": 0.45,
"mileage": 125000
}Response
The returned resource is a new Vehicle.
Example response
{
"id": "7bf79328-a7ae-4222-aa54-091ff7f429a7",
"number_plate": "AA000BB",
"description": "Employee electric vehicle",
"creation_time": "2017-06-01T12:48:40Z",
"last_update_time": "2017-06-01T12:48:40Z",
"card_ids": [
"7bf79328-a7ae-4222-aa54-091ff7f429a7",
"2d65bd5e-3fdf-4002-b166-bde7fb8863fa"
],
"reimbursement_rate": 0.45,
"mileage": 125000
}Changes
- warning
changed the pattern of the request property
from^[^<>=]{0,30}$to^[^<>=]{0,255}$ - info
added the new optional request property
- info
the
request property's maxLength was increased from30to255 - info
added the optional property
to the response with the status
- warning
- info
added the new optional request property
- info
added the optional property
to the response with the status
- info