- 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
Header
| Name | Type | Required | Default Value | Example | Description |
|---|---|---|---|---|---|
| Authorization | String | Y | - | Access token issued through user authentication. |
Path Variable
| Name | Type | Required | Default Value | Example | Description |
|---|---|---|---|---|---|
| user_token_type | string | Y | - | web | User token type; all token types are supported. |
Paramater (Query String)
| Name | Type | Required | Default Value | Example | Description |
|---|---|---|---|---|---|
| game_code | string | Y | - | STOVE_ID | Game ID assigned by the platform. |
| coupon_box_id | Int64 | Y | - | 10169 | Coupon box serial number |
| lang_code | String | Y | - | ko | Korean: "ko", English: "en", Japanese: "ja", Chinese: "zh". |
Response
Body
| Name | Type | Required | Default Value | Example | Description |
|---|---|---|---|---|---|
| result | String | Y | - | 000 | Response code |
| message | String | Y | - | OK | Response message |
| value | Object | Y | - | 000 | Response value |
Value
| Name | Type | Required | Default Value | Example | Description |
|---|---|---|---|---|---|
| coupon_type | Int32 | Y | - | 1 | Coupon type |
| coupon_name | String(100) | Y | - | Test coupon | Coupon name |
| coupon_notice | String(2^31-1) | N | - | Precautions for using the coupon. | Coupon precautions |
| coupon_no | String(100) | Y | - | 9255CUCC581TTB2P | Coupon code |
| register_date | Int64 | Y | - | 1706668740000 | Registration timestamp (UTC+0). |
| use_date | Int64 | N | 0 | 1806668740000 | Redemption timestamp (UTC+0). |
| game_code | String(45) | Y | - | 45 | Game ID assigned by the platform. |
| world_nos | String(45) Array | N | - | 1,2 | Coupon restrictions: eligible worlds. |
| reward_infos | Object Array | Y | - | - | Reward information |
| limits | Object Array | Y | - | - | Restriction information (only 12: discount-eligible products is added). |
| use_start_date | Int64 | Y | - | 1574271081523 | Start of the redemption period (timestamp, UTC+0). |
| use_end_date | Int64 | Y | - | 1574271081523 | End of the redemption period (timestamp, UTC+0). |
| use_state | Int32 | Y | - | 1 | Coupon status code |
| game_code | String(45) | Y | - | 45 | Game ID assigned by the platform. |
| world_nos | String(45) Array | N | - | 1,2 | Coupon restrictions: eligible worlds. |
| reward_infos | Object Array | Y | - | Reward information | |
| limits | Object Array | Y | - | Restriction information (only 12: discount-eligible products is added). | |
| use_start_date | Int64 | Y | - | 1574271081523 | Start of the redemption period (timestamp, UTC+0). |
| use_end_date | Int64 | Y | - | 1574271081523 | End of the redemption period (timestamp, UTC+0). |
| use_state | Int32 | Y | - | 1 | Coupon status code |
| reward_supplier | Int16 | Y | 2 | 2 | Reward supplier |
| reward_receiver | Int16 | Y | 1 | 1 | Reward recipient criteria |
| limit_login_country | bool | Y | - | false | Whether the access country is eligible for this coupon |
| valid_coupon_img_url | String | N | - | https://d2psesh1x3i95y.cloudfront.net/qa/application_no/10009/iop-billing-center/car1.png | Image URL for redeemable coupons in the PC coupon box. |
| invalid_coupon_img_url | String | N | - | Coupon image | Image URL for redeemed or expired coupons in the PC coupon box. |
| mobile_coupon_img_url | String | N | - | https://d2psesh1x3i95y.cloudfront.net/qa/application_no/10009/iop-billing-center/208_157.png | Image for redeemed or expired coupons in the mobile coupon box. |
| coupon_box_id | Int64 | N | 0 | 10169 | Coupon box serial number |
limits
| Name | Type | Required | Default Value | Example | Description |
|---|---|---|---|---|---|
| limit_code | Int32 | Y | - | 1 | Restriction category code |
| limit_value | String(32) | Y | - | world1,world2 | Restriction value |
reward_infos
| Name | Type | Required | Default Value | Example | Description |
|---|---|---|---|---|---|
| reward_type | Int32 | Y | - | 2 | Coupon reward code |
| reward_name | String | Y | - | Blue Flame Wings (30 days) | Reward name |
| reward_value | Double | Y | - | 3 | Reward value |
| reward_additional_info | Object | N | - | Additional reward information; currently provided only for discount rewards (128). |
reward_additional_info
| Name | Type | Required | Default Value | Example | Description |
|---|---|---|---|---|---|
| discount_type | Int16 | Y | - | 1 | Discount type |
| discount_goods | String Array | Y | - | 1231,9023 | Discount-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 code | Code | Message | Description |
|---|---|---|---|
| 200 | 999 | unexpected error | - |
| 401 | 40100 | no token | Token is missing. |
| 401 | 40101 | invalid token | Token cannot be decrypted. |
| 401 | 40102 | invalid token | Token was decrypted, but the format is invalid. |
| 401 | 40103 | expired token | Token has expired. |
| 401 | 40104 | expired token | Token expired because an administrator invalidated it. |
| 500 | 50000 | internal error | Service failure, such as a database connection failure. |
| 200 | Other | Internal error | Internal 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.