Skip to content
Store Dev
Last Updated

Coupon Box Coupon Details API

Introduction

Retrieves detailed information about a coupon in the coupon box.

Basic Information

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

Request

NameTypeRequiredDefault ValueExampleDescription
AuthorizationStringY-Access token issued through user authentication.

Path Variable

NameTypeRequiredDefault ValueExampleDescription
user_token_typestringY-webUser token type; all token types are supported.

Paramater (Query String)

NameTypeRequiredDefault ValueExampleDescription
game_codestringY-STOVE_IDGame ID assigned by the platform.
coupon_box_idInt64Y-10169Coupon box serial number
lang_codeStringY-koKorean: "ko", English: "en", Japanese: "ja", Chinese: "zh".

Response

Body

NameTypeRequiredDefault ValueExampleDescription
resultStringY-000Response code
messageStringY-OKResponse message
valueObjectY-000Response value

Value

NameTypeRequiredDefault ValueExampleDescription
coupon_typeInt32Y-1Coupon type
coupon_nameString(100)Y-Test couponCoupon name
coupon_noticeString(2^31-1)N-Precautions for using the coupon.Coupon precautions
coupon_noString(100)Y-9255CUCC581TTB2PCoupon code
register_dateInt64Y-1706668740000Registration timestamp (UTC+0).
use_dateInt64N01806668740000Redemption timestamp (UTC+0).
game_codeString(45)Y-45Game ID assigned by the platform.
world_nosString(45) ArrayN-1,2Coupon restrictions: eligible worlds.
reward_infosObject ArrayY--Reward information
limitsObject ArrayY--Restriction information (only 12: discount-eligible products is added).
use_start_dateInt64Y-1574271081523Start of the redemption period (timestamp, UTC+0).
use_end_dateInt64Y-1574271081523End of the redemption period (timestamp, UTC+0).
use_stateInt32Y-1Coupon status code
game_codeString(45)Y-45Game ID assigned by the platform.
world_nosString(45) ArrayN-1,2Coupon restrictions: eligible worlds.
reward_infosObject ArrayY-Reward information
limitsObject ArrayY-Restriction information (only 12: discount-eligible products is added).
use_start_dateInt64Y-1574271081523Start of the redemption period (timestamp, UTC+0).
use_end_dateInt64Y-1574271081523End of the redemption period (timestamp, UTC+0).
use_stateInt32Y-1Coupon status code
reward_supplierInt16Y22Reward supplier
reward_receiverInt16Y11Reward recipient criteria
limit_login_countryboolY-falseWhether the access country is eligible for this coupon
valid_coupon_img_urlStringN-https://d2psesh1x3i95y.cloudfront.net/qa/application_no/10009/iop-billing-center/car1.pngImage URL for redeemable coupons in the PC coupon box.
invalid_coupon_img_urlStringN-Coupon imageImage URL for redeemed or expired coupons in the PC coupon box.
mobile_coupon_img_urlStringN-https://d2psesh1x3i95y.cloudfront.net/qa/application_no/10009/iop-billing-center/208_157.pngImage for redeemed or expired coupons in the mobile coupon box.
coupon_box_idInt64N010169Coupon box serial number

limits

NameTypeRequiredDefault ValueExampleDescription
limit_codeInt32Y-1Restriction category code
limit_valueString(32)Y-world1,world2Restriction value

reward_infos

NameTypeRequiredDefault ValueExampleDescription
reward_typeInt32Y-2Coupon reward code
reward_nameStringY-Blue Flame Wings (30 days)Reward name
reward_valueDoubleY-3Reward value
reward_additional_infoObjectN-Additional reward information; currently provided only for discount rewards (128).

reward_additional_info

NameTypeRequiredDefault ValueExampleDescription
discount_typeInt16Y-1Discount type
discount_goodsString ArrayY-1231,9023Discount-eligible products (maximum 100).

Sample

Request

text
curl --location --request GET'http://api.onstove.com/coupon/v3.0/web/couponbox/list/4300407?lang_code=ko&game_code=CAOA' \
--header 'Authorization: Bearer {{access_token}}'

Response

Content-Type : application/json

json
{
  "value": {
    "coupon_type": 1,
    "coupon_name": "Test coupon",
    "coupon_notice": "Coupon precautions",
    "coupon_no": "AB90A2B0PSF0CA50",
    "register_date": 1574271081523,
    "use_date": 1574271081523,
    "game_code": "290",
    "world_nos": [],
    "reward_infos": [
      {
        "reward_type": 2,
        "reward_name": "Blue Flame Wings (30 days)",
        "reward_value": 3
      },
      {
        "reward_type": 32,
        "reward_name": "3000 CASH",
        "reward_value": 3000
      }
    ],
    "use_start_date": 1561939200000,
    "use_end_date": 1593586305000,
    "use_state": 2,
    "reward_supplier": 2,
    "reward_receiver": 1
  },
  "result": "000",
  "message": "OK"
}

Failed response example

json
{
    "message": "invalid token",
    "code": 40101
}

Return Code

HTTP Status codeCodeMessageDescription
200999unexpected error-
40140100no tokenToken is missing.
40140101invalid tokenToken cannot be decrypted.
40140102invalid tokenToken was decrypted, but the format is invalid.
40140103expired tokenToken has expired.
40140104expired tokenToken expired because an administrator invalidated it.
50050000internal errorService failure, such as a database connection failure.
200OtherInternal errorInternal error: Contact the STOVE technical PM team.

Contact Us


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