- 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
Header
| Name | Type | Required | Default Value | Example | Description |
|---|---|---|---|---|---|
| Authorization | String | Y | Bearer | User Access Token |
Path Variable
| Name | Type | Required | Default Value | Example | Description |
|---|---|---|---|---|---|
| game_code | string(40) | Y | - | STOVE_GAME | Same as game_id (assigned by the platform). |
Response
Body
| Name | Type | Required | Default Value | Example | Description |
|---|---|---|---|---|---|
| result | string(3) | Y | 000 | Result code: 000 indicates success; other values indicate an error. | |
| message | string(256) | Y | OK | Response message | |
| value | json array | N | Response value |
value
| Name | Type | Required | Default Value | Example | Description |
|---|---|---|---|---|---|
| cashamt | decimal number | N | - | - | Total paid cash and bonus cash |
| cash_real | decimal number | N | - | - | Paid cash balance |
| cash_bonus | decimal number | N | - | - | Bonus cash balance |
| no_present_cash | decimal number | N | - | - | 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 code | Code | Message | Description |
|---|---|---|---|
| 200 | 000 | OK | Success |
| 200 | 999 | unexpected error | - |
| 401 | 999 | Authorization has been denied for this request | - |
| 406 | 2001 | The paid game cash balance does not match the ledger. | - |
| 406 | 2002 | The bonus game cash balance does not match the ledger. | - |
| 406 | 2003 | The paid game cash balance is less than zero. | - |
| 406 | 2004 | The bonus game cash balance is less than zero. | - |
| 406 | 2005 | Database exception error | - |
| 200 | 2000–3000 range | Internal Error | Internal 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.