capabilities.work

OAuth Token Exchange

A 3-step recipe with Salla. We can help you get access.

Recipe · 3 steps

OAuth Token Exchange

with Salla

Turn an authorization code into an access token and resolve the merchant.

  1. Send the merchant to the authorization endpoint to grant the requested store data scopes; the endpoint redirects back with an authorization code.
  2. Exchange the authorization code for an access token and a refresh token using the authorization_code grant.
  3. Read the authenticated merchant and store profile using the freshly issued access token to confirm the grant succeeded.
What you'll need to have ready
  • clientId: The OAuth client id issued to the Salla app.
  • clientSecret: The OAuth client secret issued to the Salla app.
  • redirectUri: The redirect URI registered for the app.
  • scope: Space-delimited scopes requested (e.g. "offline_access orders.read").
  • state: Opaque value echoed back on the authorization redirect.
  • authorizationCode: The authorization code returned to the redirect URI.
For your developer

Arazzo workflow salla:oauth-token-exchange, 3 operations: authorize → token → getUserInfo. Specs on APIs.io.