Skip to content
Store Dev
Cập nhật lần cuối

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


text
GET /member/v3.0/{game_id}
Host: https://api.onstove.com (Live)
      https://api.gate8.com (Sandbox)
Content-Type: application/json

Request


NameTypeRequiredDefault ValueExampleDescription
AuthorizationStringY-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)

NameTypeRequiredDefault ValueExampleDescription
search_typeStringY-MEMBER_NOType: member_no / guid
valueStringY-12345678-

Response


Body

NameTypeRequiredDefault ValueExampleDescription
codeintY0Response code
messageStringYsuccessResponse message
valueObjectNResponse data

value

NameTypeRequiredDefault ValueExampleDescription
member_noStringY-108131345Platform unique ID
guidStringN-20000025262Game-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

text
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

json
// Successful response
{
    "code": 0,
    "message": "success",
    "value": {
        "member_no": 20005061986,
        "guid": 200000000397
    }
}
json
// Invalid parameter
{
    "code": 40000,
    "message": "bad request"
}
json
// Invalid game_id
{
  "code": 41002,
  "message": "Invalid game id"
}

Return Code


HTTP Status codeCodeMessageDescription
2000SuccessSuccessful response
20040000bad requestInvalid parameters - Missing token - Missing query parameters
20041002Invalid game idIncorrect game_id - game_id in token does not match requested game_id
40140101Invalid game idCalled 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.