- Last Updated
Get Game User ID
This guide explains how to retrieve the user’s ID information from the game server for players using the game.
Feature Overview
The game server can query a user’s ID information (member_no and guid) using either a member_no or a guid.
You must include the API Access Token in the request header for this authentication process.
If you do not have an API Access Token, you must go through the API Token issuance process.
Basic Information
GET /member/v3.0/{game_id}
Host: https://api.onstove.com (Live)
https://api.gate8.com (Sandbox)
Content-Type: application/json
Request
Header
| Name | Type | Required | Default Value | Example | Description |
|---|---|---|---|---|---|
| Authorization | String | Y | - | Bearer {api_access_token} | API Access Token |
**Issue API Access Token **
API Access Tokens are issued via the Issue API Access Token.
Parameter (Query String)
| Name | Type | Required | Default Value | Example | Description |
|---|---|---|---|---|---|
| search_type | String | Y | - | MEMBER_NO | Type: member_no / guid |
| value | String | Y | - | 12345678 | - |
Response
Body
| Name | Type | Required | Default Value | Example | Description |
|---|---|---|---|---|---|
| code | int | Y | 0 | Response code | |
| message | String | Y | success | Response message | |
| value | Object | N | Response data |
value
| Name | Type | Required | Default Value | Example | Description |
|---|---|---|---|---|---|
| member_no | String | Y | - | 108131345 | Platform unique ID |
| guid | String | N | - | 20000025262 | Game-specific unique ID |
About the guid field
The guid is a game-specific ID created when the player agrees to the Game Service Agreement.
If a STOVE member (member_no) has not agreed to the Game Service Agreement, the guid will not be returned in the response.
Sample
Request
curl -L -X GET 'https://api.onstove.com/member/v3.0/MVP_SDK_QA?search_type=member_no&value=20005061986' \
-H 'Authorization: Bearer Es_ulMUjO7OHmk8WfiPE0-zQAppdPEyye6rRRmrZKkw3sdN38bTYANAsco_0kOHc4EPNPGQHKzV4B080JLd1smLs7YkFwpDOwEKi0aqX_qOa7_LVTl-9jvrWfiYQ-XqiUu7HGScjAWth0_K_CXwsdnvogSf3yE3oRSUvD66obgg'
Response
// Successful response
{
"code": 0,
"message": "success",
"value": {
"member_no": 20005061986,
"guid": 200000000397
}
}
// Invalid parameter
{
"code": 40000,
"message": "bad request"
}
// Invalid game_id
{
"code": 41002,
"message": "Invalid game id"
}
Return Code
| HTTP Status code | Code | Message | Description |
|---|---|---|---|
| 200 | 0 | Success | Successful response |
| 200 | 40000 | bad request | Invalid parameters - Missing token - Missing query parameters |
| 200 | 41002 | Invalid game id | Incorrect game_id - game_id in token does not match requested game_id |
| 401 | 40101 | Invalid game id | Called with an invalid Access Token |
Contact Us
If you have any questions, please contact us on Discord or by email at store.support@smilegate.com.