Skip to content
스토어 연동
마지막 업데이트

게임 캐시 잔액 조회 API

소개

실캐시, 보너스캐시, 선물 불가 캐시 등의 잔액 정보를 불러옵니다.

기본정보

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_GAMEgame_id 값과 동일 (플랫폼에서 부여)

Response

Body

NameTypeRequiredDefault ValueExampleDescription
resultstring(3)Y000결과 코드 값. 000 일경우 성공, 그외 오류.
messagestring(256)YOK응답 메시지
valuejson arrayN응답 값

value

NameTypeRequiredDefault ValueExampleDescription
cashamtdecimal numberN--실캐시+보너스캐시수
cash_realdecimal numberN--실캐시 잔액
cash_bonusdecimal numberN--보너스캐시 잔액
no_present_cashdecimal numberN--선물 불가캐시

Sample

Request

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

Response

응답성공

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

응답실패

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

Return Code

HTTP Status codeCodeMessageDescription
200000OK성공
200999unexpected error-
401999Authorization has been denied for this request-
4062001실 게임 캐시 잔액이 원장과 일치하지 않습니다.-
4062002보너스 게임 캐시 잔액이 원장과 일치하지 않습니다.-
4062003실 게임 캐시 잔액이 0보다 작습니다.-
4062004보너스 게임 캐시 잔액이 0보다 작습니다.-
4062005DB 예외 에러-
2002000번대 ~ 3000번대Internal Error내부오류: SGS 기술PM에 문의 부탁드립니다.

문의사항


문의사항이 있다면 디스코드 또는나 store.support@smilegate.com로 문의해 주세요.