Re: Python Plugin: Volvo EV
Posted: Monday 07 July 2025 17:29
NopeFireWizard wrote: ↑Monday 07 July 2025 15:06 Hi @akamming,
I think, you are correct, but if you rotate the refresh_token, the old one will become invalid and will be "replaced" by the new one.The refresh token under 2 is (or was, since it’s no langer there) langer valid dan 1800s. I’ve Done tests with a refresh token of more than 2 days old and could still obtain a new token
I don't think you can re-use an old "refresh_token" later on
I'm reading currently the Volvo Developer API and I see something, I did not see before.
Have you seen that before?You are also able to retrieve a complete list of any commands that you have sent.
no clueWould that "id_token" be related to control the limitation instead of the current 10.000 calls/day?This API is Rate Limited to prevent malicious activity or accidents that cause service disruptions. The limit is set to 100 request per minute for a combination of the user's Volvo ID and the Client ID sending the request. A given user will have 100 requests per minute per application it uses. Should this limit be exceeded, the API will respond with HTTP code 429.
The invocation methods are more strictly limited to 10 requests per minute. This limit is also set using a combination of Volvo ID and Client ID. This stricter limitation is due to the underlying system's capacity.
Check, i understand, tx for the clear explanationThe 7 days is not only the vision of Thomasddn, it is also stated on the Volvo developer page:
That is what I know and I used that for my flow specification.The access_token has a short lifespan. To create a seamless end-user experience, you will need to refresh the access token before it expires.
By default, refresh token rotation is enabled. Each time you call the Refresh endpoint, a new refresh token is created, and the old token is invalidated. If not rotated, the refresh_token is valid for 7 days. After that, the user has to re-authenticate.
Regards