Authorization Token
We mentioned OAuth2 before at here. You might wonder how to interact with our authorization server. Here we will cover it.
Authorization Servier URI & Params
endpoint
GET https://developers.shoplineapp.com/oauth/authorize
client_id
You should obtain client_id
from here.
redirect_uri
Your redirect_uri
should be whitelisted at here. If the redirect_uri
you provide isn't inside this whitelist, you will encounter error in the OAuth flow.
scope
You need to input all your App scopes
separated by space
in this param. You can find the full list here.
response_type
The value of it is always code
merchant_id (optional)
Supply a merchant_id to force login with this merchant_id
Example
Lets assume my app settings are as follows:
The following is the Shopline authorization server uri for my app
https://developers.shoplineapp.com/oauth/authorize?client_id={masked}&response_type=code&redirect_uri=https%3A%2F%2my-awesome-app.shoplineapp.com%2Foauth_callback&scope=addon_products%20agents
Updated 10 months ago