Step 1: Make Sure You Have a Salla Store
Step 2: Prepare Your OAuth2 Details
You’ll need the following credentials from your Salla Store:
Client ID – available in your store dashboard
Client Secret – also available in your store dashboard
Email – linked to your store account (available in your store dashboard)
State – for example
12345678
(you’ll use this value again later)
Here are the main endpoints:
Auth URL:
https://accounts.salla.sa/oauth2/auth
Access Token URL:
https://accounts.salla.sa/oauth2/token
Step 3: Configure Postman
Open Postman and create a new request. Fill in the fields as shown below (see example screenshot in your reference):
Auth URL:
https://accounts.salla.sa/oauth2/auth
Access Token URL:
https://accounts.salla.sa/oauth2/token
Client ID: from your store dashboard
Client Secret: from your store dashboard
State:
12345678
(or your chosen value Keep remembering this value, we will pass this value as a password on the page that will come after clicking on generate token.
Step 4: Handle the State Parameter
When you hit the Generate Token button, Salla will redirect you to a login page.
👉 At this step:
Enter the email associated with your store.
For the password, enter the state value you used earlier (e.g.,
12345678
).
This is a required step for successful authentication.
Note: I have attached a Screenshot at the bottom that can help you get the associated email
Getting ClientId and ClientSecret from the store
Getting the associated Email with the store:
Step 5: Generate the Access Token
Once authenticated, you’ll receive the Access Token. Copy this token — you’ll need it for calling the APIs. In the following image, you can see how we are calling the products api.
0 comments: