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

통합 쿠폰함 쿠폰 사용 API

소개

쿠폰함 쿠폰을 사용합니다.

기본정보

text
POST /coupon/v3.0/{user_token_type}/couponbox/use
Host:
   https://api.onstove.com (LIVE)    
   https://api.gate8.com (SB)
Content-Type: application/json

Request

NameTypeRequiredDefault ValueExampleDescription
AuthorizationStringY-사용자의 인증을 통해 발급 되는 access token

Path Variable

NameTypeRequiredDefault ValueExampleDescription
user_token_typestringY-web유저토근종류 공통 - 모든 타입의 토큰 사용

Parameter

NameTypeRequiredDefault ValueExampleDescription
game_codestringY-STOVE_ID게임ID (플랫폼에서 부여)
coupon_box_idInt64Y-10169쿠폰박스 일련번호
world_noStringN-1게임 월드 번호
character_noStringN-52345642회원 캐릭 번호
client_ipaddrStringY-10.5.24.52회원 접속 아이피
lang_codeStringY-ko언어코드

Response

Body

NameTypeRequiredDefault ValueExampleDescription
resultStringY-000응답 코드
messageStringY-OK응답 메시지
valueBooleanY-true응답 값

Sample

Request

text
curl --location --request POST 'https://api.onstove.com/coupon/v3.0/web/couponbox/use' \
--header 'Authorization: Bearer {{access_token}}'
{
    "lang_code": "KO",
    "game_code" : "STOVE_ID",
    "coupon_box_id":3,
    "world_no":"world1",
    "character_no":"456",
    "client_ipaddr": "127.0.0.1"
}

Response

응답 성공 예제

text
{
    "value": true,
    "result": "000",
    "message": "OK"
}

응답 실패 예제

text
{
    "result": "5105",
    "message": "잘못된 쿠폰 번호입니다. 쿠폰 번호를 확인해주시기 바랍니다. (1회 실패)"
}

Return Code

HTTP Status codeCodeMessageDescription
200999unexpected error시스템오류
401999Authorization has been denied for this request
40140101invalid token토큰 복호화가 안되는 경우
40140102invalid token복호화 했으나 포맷이 다른 경우
40140103expired token토큰이 만료된 경우
40140104expired token관리자의 무효처리에 의해 토큰이 만료된 경우
50050000internal error장애 상황(DB 연결 불가 등)
2006007해당 쿠폰을 찾을 수 없습니다.(없는 쿠폰박스 ID 입니다.)-
2006008해당 유저가 가지고 있는 쿠폰이 아닙니다.-
2006009쿠폰을 사용 가능한 날짜가 아닙니다.-
2006032쿠폰 사용 가능한 횟수가 초과되었습니다.-
2007014캐릭터를 선택해 주세요.캐릭터 선택이 필요한 쿠폰인 경우
2006010해당 월드에서 사용할 수 없는 쿠폰 입니다.-
2005162해당 국가에서 사용할 수 없는 쿠폰 입니다.-
200그 외Internal Error내부오류: *STOVE 기술PM팀으로 문의 바랍니다.

문의사항


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