Skip to content

Player Logout

This interface is called by downstream merchants when players log out or when user accounts are frozen. The gateway will update the local player status to Inactive (disabled) and send logout requests to each game provider to disconnect the player from all game lobbies.

API Information

PropertyValue
PathPOST /papi/v1/player/logout
AuthenticationAgent Token (Bearer)
Content-Typeapplication/x-www-form-urlencoded

Request Headers

HeaderValueRequired
AuthorizationBearer {agent_token}✅ Yes

Request Parameters

ParameterTypeRequiredDescription
member_idstringYesThe player's unique account identifier on the merchant side (automatically converted to uppercase)

Request Example

bash
curl -X POST https://api.example.com/papi/v1/player/logout \
  -H "Authorization: Bearer {agent_token}" \
  -d "member_id=player_user_001"

Response Fields

FieldTypeDescription
codeintStatus code, 0 is success
dataobjectResponse data (empty object)
msgstringMessage

Successful Response (HTTP 200)

json
{
  "code": 0,
  "data": {},
  "msg": "logout success"
}

Error Response

Player Not Found (HTTP 200)

json
{
  "code": 7,
  "data": {},
  "msg": "player not found"
}

Invalid Signature / Token (HTTP 200)

json
{
  "code": 1002,
  "data": {},
  "msg": "err.signature.invalid"
}

VCT Gaming Integration Platform