[lightMode]
User Information Details
GET
https://accounts.salla.sa/oauth2/user/info[updatedIn] 2 months ago
This endpoint allows you to fetch User information based on the Access Token you have received, with a detailed response showcasing Store information.
:::tip
The ID
, email
, name
, mobile
and role
are the information of the user who authorized the app to be installed and it is not always the store owner as it can be one of the store team.
:::
Request
Request samples
[api.label.responses]
Success(200)
HTTP Code: 200
Content Type : JSONapplication/json
[response.label.jsonSchema]
status
number
optional
Response Status
Example:
200
success
boolean
optional
Whether or not the response is successful
Default:
true
data
object (UserInformation)
optional
id
number
required
A unique identifier assigned to a user of a system.
Example:
1689171978
name
string
required
User full given name.
Example:
Test User
mobile
string
required
User mobile number
Example:
+96652318526
role
enum<string>
required
User Role. Value can be either user
or team
, where user
can be an admin, as a the owner of the store, while team
can be referred to employees.
Allowed values:
userteam
Example:
user
created_at
string
required
User account creation date
Example:
2021-03-27 21:51:56
merchant
object
required
[api.label.example]
{
"status": 200,
"success": true,
"data": {
"id": 1689171978,
"name": "Test User",
"email": "[email protected]",
"mobile": "+96652318526",
"role": "user",
"created_at": "2021-03-27 21:51:56",
"merchant": {
"id": 847769313,
"username": "User_name123",
"name": "User Name",
"avatar": "https://i.ibb.co/jyqRQfQ/avatar-male.webp",
"store_location": "21.589481104199123,39.67869125586653",
"plan": "pro",
"status": "active",
"domain": "https://www.domain.com",
"tax_number": "424243241321234",
"commercial_number": "3552100509",
"created_at": "2021-12-31 12:59:59"
}
}
}
[updatedIn] 2 months ago