Vehicles
Create a vehicle authorization link
Changed onRequired scope: vehicles:write. Returns the link an application user follows to authorize their vehicle account (e.g. Enode or Smartcar) so it can be connected to Monta.
post/api/v1/vehicles/integrations/authorization-link
Request
- Base URLhttps://partner-api.monta.com
- URLhttps://partner-api.monta.com/api/v1/vehicles/integrations/authorization-link
- AuthHTTP bearer
Request body
Example request
{
"userId": 10000,
"redirectUri": "https://example.com/vehicle/callback",
"provider": "enode",
"brandId": 1234,
"scopes": [
"charge-state",
"location"
]
}Response
Authorization link created
Example response
{
"authorizeLink": "https://link.enode.com/abc123",
"token": "8c3f0b2e-1a4d-4f7e-9c2b-1d2e3f4a5b6c",
"provider": "enode",
"authFlow": "enode-sdk"
}Changes
- breaking
request property
/was restricted to a list of enum values - info
added the new
allenum value to the request property/ - info
added the new
charge-stateenum value to the request property/ - info
added the new
control-chargingenum value to the request property/ - info
added the new
locationenum value to the request property/
- breaking