Create coupon
POST/openapi/2026-07/coupons
Creates a coupon campaign.
Request
- application/json
- Body
- Example
Bodyrequired
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 [
- ]
title: Sort by product titleprice: Sort by product pricesales: Sort by sales volumereal_sales: Sort by real sales volumeasc: Ascending orderdesc: Descending order
coupon objectrequired
Coupon payload
The coupon title displayed to merchants
Internal note for merchant-side management
Coupon lifecycle type:
Coupon distribution start timestamp
Coupon distribution end timestamp. -1 means no expiry
Coupon usage start timestamp
Coupon usage end timestamp
Valid duration in seconds after receiving the coupon
Discount threshold strategy type:
Discount value, such as percentage or fixed amount
Discount value type:
Whether the coupon quantity is unlimited. true means unlimited, false means limited. Defaults to false
Remaining coupon stock. Required when unlimited_usage is false
Maximum receive count per customer
Whether this coupon can be used with other discounts
prerequisite_subtotal_range object[]
Amount-based prerequisite ranges. Required when discount_type is amount_percentage
The lower bound of the threshold, inclusive
The threshold value represented as a string
prerequisite_quantity_range object[]
Quantity-based prerequisite ranges. Required when discount_type is item_fixed_amount
The lower bound of the threshold, inclusive
The threshold value represented as a string
Product IDs explicitly eligible for this coupon
Collection IDs explicitly eligible for this coupon
Customer segment IDs eligible for this coupon
Explicit customer IDs eligible for this coupon
sort object
Sort options for selected entitled products
The field used to sort selected products. Defaults to title:
The sort direction. Defaults to asc:
config object
Coupon storefront visual configuration
Checkout page type (e.g., three_step)
Specifies whether the order requires shipping
Indicates whether product prices include taxes
market_setting object
Specifies market-specific configurations for the order (e.g., regional taxes, currency settings)
Primary market language
Market language (e.g., en-US)
Market configuration ID
Market currency code (e.g., USD)
market_currency_symbol object
Market currency symbol
Currency code (e.g., USD)
Currency symbol (e.g., $)
Content displayed to the left of the number (e.g., $)
Content displayed to the right of the number
Market base ID
Market base currency (e.g., USD)
market_base_currency_symbol object
Market base currency symbol
Currency code (e.g., USD)
Currency symbol (e.g., $)
Content displayed to the left of the number (e.g., $)
Content displayed to the right of the number
Primary market ID
Primary market currency code (e.g., USD)
primary_market_currency_symbol object
Primary market currency symbol
Currency code (e.g., USD)
Currency symbol (e.g., $)
Content displayed to the left of the number (e.g., $)
Content displayed to the right of the number
market_price_setting object
Market price settings
Local currency enable status
Custom rate enable status
Custom rate: primary market currency to market base currency
Rate: primary market currency to market base currency or local currency
Back rate: market base currency or local currency to primary market currency
Actual exchange rate: primary market currency to market base currency or local currency
Rate: market base currency to local currency
Local to rate
Price adjustment
Enable price rounding
Market country (e.g., US)
{
"coupon": {
"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": {
"page_type": "string",
"requires_shipping": true,
"product_tax_included": true,
"market_setting": {
"primary_market_lang": "string",
"market_lang": "string",
"market_id": "string",
"market_currency": "string",
"market_currency_symbol": {
"code": "string",
"val": "string",
"left": "string",
"right": "string"
},
"market_base_id": "string",
"market_base_currency": "string",
"market_base_currency_symbol": {
"code": "string",
"val": "string",
"left": "string",
"right": "string"
},
"primary_market_id": "string",
"primary_market_currency": "string",
"primary_market_currency_symbol": {
"code": "string",
"val": "string",
"left": "string",
"right": "string"
},
"market_price_setting": {
"local_currency_enabled": true,
"custom_rate_enabled": true,
"custom_rate": 0,
"rate": 0,
"back_rate": 0,
"actual_rate": 0,
"base_to_rate": 0,
"local_to_rate": 0,
"adjust": 0,
"price_round_enabled": true
},
"market_country": "string"
}
}
}
}
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 created 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
}
}
}
}
}