User Information
GET {{baseUrl}}/oauth2/user/info
This endpoint allows you to fetch User information based on the Access Token you have received, with a detailed response showcasing Store information.
💡 Note
✅ Do not use the
store
object; it is to be deprecated and will be removed on June 6, 2022. Instead, read the data from themerchant
object.
✅ TheID
,name
,mobile
androle
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.
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Accept | string |
RESPONSES
status: OK
{"status":200,"success":true,"data":{"id":1689171978,"name":"Test User","email":"test@gmail.com","mobile":"+966555555555","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","created_at":"2021-12-31 12:59:59"}}}