Question about ConnectMyApps integration
Hi,
I am a developer from ConnectMyApps setting up an integration to your API, and I have a quick question regarding the "EmployerId". I see that in order to retrieve the employer id, you call the root salary endpoint to get info on your own access token, including the employer id, which you then use to access the data endpoints.
In our integration, we need to set up how the user is going to access the API, meaning their credentials. So far I've set it up so that only supply the subscription-key and refreshToken, and then our connector will call the root salary endpoint and retrieve the employer id of the owner of that access token.
I'm wondering if there is any situation where someone might want to use a different employer id than their own credentials? Should I set it up so that they would also have to supply the employer id in addition to the subscription-key and refreshToken, or is it better for the connector to grab the employer id automatically?
Best regards,
Torstein Røsok
-
Hi Torstein,
Your understanding about calling the root endpoint for the employer id is correct.
Each refresh token yields an access token that grants access to a single employer only, so it would not make sense to ask the user which employer id to use.
One clarification about the subscription key: a single key is issued to you as integration partner; unlike the refresh token, it is not specific to each of your users.
Hope this helps!
Log ind for at efterlade en kommentar.
Kommentarer
1 kommentar