This API for operator to terminate the session of a player

Request

API URL : {NagaGamesAPIDomain}/operator/player/delete-session
HTTP Method : POST

Body Parameters

  • data (JSON)
    Must contain all fields below.
Parameter NameDescriptionData typeRequired
nativeIdIdentifier of the player in Operator’s systemStringYes

Headers

Parameter NameDescriptionData TypeRequired
x-api-keyAPI key of an brandStringYes

Example

curl --location 'https://api.stg.game.topplatform.asia/operator/player/delete-session' \
--header 'accept: application/json' \
--header 'x-api-key: dcc06a5206d926c61b4e9b4b15a074e0124cc2f2332a9157f9bdf845a651695b' \
--header 'Content-Type: application/json' \
--data '{
    "nativeId": "player_demo_1"
}'

Response

Example

Success Response Example (HTTP status code 201)

{
  "message": "Delete Player Session Successfully",
  "statusCode: 200
}

Failure Response Examples (HTTP status code 400)

{
    "statusCode": 400,
    "message": "Player is not found",
    "error": "Bad Request"
}

{
    "statusCode": 400,
    "message": [
        "property nativeId2 should not exist",
        "nativeId should not be empty"
    ],
    "error": "Bad Request"
}
{
    "statusCode": 400,
    "message": "Delete Player Session Fail",
    "error": "Bad Request"
}

Failure Authentication Example (HTTP status code 401)

{
    "statusCode": 401,
    "message": "Unauthorized"
}
Language
Click Try It! to start a request and see the response here!