Get coupon
GET/openapi/2026-07/coupons/:id
Gets coupon campaign details by ID.
Request
Path Parameters
Coupon ID
Responses
- 200
OK
- application/json
- Schema
- Example
Schema
begin_end: Uses explicit start and end timestampssurvival: Uses survival_time after claimingpercentage: Percentage discount with no-condition or quantity conditionamount_percentage: Percentage discount with amount conditionfixed_amount: Fixed amount discount with no-condition or amount conditionitem_fixed_amount: Fixed amount discount with quantity conditionpercentage: Percentage discountfixed_amount: Fixed amount reductionvoucher: Free voucher style benefit- Array [
- ]
- Array [
- ]
error code
error message
data object
coupon object
The queried coupon payload
Coupon ID
Coupon title displayed to merchants
Merchant-side note
Coupon lifecycle type:
Distribution start timestamp
Distribution end timestamp
Usage start timestamp
Usage end timestamp
Valid duration after claiming
Discount threshold strategy type:
Discount value
Discount value type:
Whether the coupon quantity is unlimited
Remaining coupon stock
Maximum claims per customer
Whether this coupon can be used with other discounts
prerequisite_subtotal_range object[]
Amount-based prerequisite ranges
The lower bound of the threshold, inclusive
The threshold value represented as a string
prerequisite_quantity_range object[]
Quantity-based prerequisite ranges
The lower bound of the threshold, inclusive
The threshold value represented as a string
Product IDs eligible for this coupon
Collection IDs eligible for this coupon
Eligible customer segment IDs
Eligible customer IDs
sort object
Sort options for selected products
The field used to sort selected products
The sort direction, for example asc or desc
config object
Storefront visual configuration
The banner image URL
count_down object
Countdown presentation configuration
The ending background color of the countdown banner
The starting background color of the countdown banner
The primary text color in coupon countdown components
The background color of the countdown timer block
The text color of the countdown timer value
Whether coupon code is shown on the detail page countdown area
Whether countdown visualization is enabled
{
"code": "string",
"message": "string",
"data": {
"coupon": {
"id": "string",
"title": "string",
"remarks": "string",
"life_cycle_type": "string",
"starts_at": 0,
"ends_at": 0,
"use_coupon_starts_at": 0,
"use_coupon_ends_at": 0,
"survival_time": 0,
"discount_type": "string",
"value": "string",
"value_type": "string",
"unlimited_usage": true,
"stock": 0,
"once_per_customer": 0,
"user_with_other": true,
"prerequisite_subtotal_range": [
{
"greater_than_or_equal_to": "string",
"value": "string"
}
],
"prerequisite_quantity_range": [
{
"greater_than_or_equal_to": "string",
"value": "string"
}
],
"entitled_product_ids": [
"string"
],
"entitled_collection_ids": [
"string"
],
"prerequisite_customer_segment_ids": [
"string"
],
"prerequisite_customer_ids": [
"string"
],
"sort": {
"by": "string",
"direction": "string"
},
"config": {
"banner_url": "string",
"count_down": {
"background_color_end": "string",
"background_color_start": "string",
"color": "string",
"count_down_background_color": "string",
"count_down_color": "string",
"detail_page_show_code": true,
"show_count_down": true
}
}
}
}
}