Skip to main content

Get customer data

Exchange Authorization Code for a Token

In your callback endpoint, verify the state parameter and exchange the authorization code for an access token. This step is crucial for ensuring the security of the OAuth 2.0 flow.

Access customer data

With the access token, you can now retrieve customer data. If the scope was set to openid onboarding, additional company information will be included in the response. The structure of the response adheres to the OpenID Connect (OIDC) standard.

Example response

curl -X GET \
-H 'authorization: Bearer xyz' \
https://access.ledyer.com/userinfo \