Skip to content
Store Dev
Last Updated

Game Cash Balance API

Introduction

Retrieves balance information for paid cash, bonus cash, and non-giftable cash.

Basic Information

text
GET /bill/v2.0/cash/{game_code}/balance
Host:
   https://api.gate8.com (SandBox)
   https://api.onstove.com (Live)
Content-Type: application/json

Request

NameTypeRequiredDefault ValueExampleDescription
AuthorizationStringYBearerUser Access Token

Path Variable

NameTypeRequiredDefault ValueExampleDescription
game_codestring(40)Y-STOVE_GAMESame as game_id (assigned by the platform).

Response

Body

NameTypeRequiredDefault ValueExampleDescription
resultstring(3)Y000Result code: 000 indicates success; other values indicate an error.
messagestring(256)YOKResponse message
valuejson arrayNResponse value

value

NameTypeRequiredDefault ValueExampleDescription
cashamtdecimal numberN--Total paid cash and bonus cash
cash_realdecimal numberN--Paid cash balance
cash_bonusdecimal numberN--Bonus cash balance
no_present_cashdecimal numberN--Non-giftable cash

Sample

Request

text
GET /bill/v2.0/cash/{game_code}/balance
HTTP/1.1
Host: api.onstove.com
Connection: keep-alive

Response

Successful response

json
{
  "value": {
        "cashamt": 5000,
        "cash_real":2500,
        "cash_bonus":1500,
        "no_present_cash":1000
    },
    "result": "000",
    "message": "OK"
}

Failed response

json
{
  "result":"999",
  "message":"Authorization has been denied for this request"
}

Return Code

HTTP Status codeCodeMessageDescription
200000OKSuccess
200999unexpected error-
401999Authorization has been denied for this request-
4062001The paid game cash balance does not match the ledger.-
4062002The bonus game cash balance does not match the ledger.-
4062003The paid game cash balance is less than zero.-
4062004The bonus game cash balance is less than zero.-
4062005Database exception error-
2002000–3000 rangeInternal ErrorInternal error: Contact the SGS technical PM.

Contact Us


If you have any questions, please contact us on Discord or by email at store.support@smilegate.com.