Version: 202201
Coupon List
GET/openapi/2022-01/coupons
Retrieves a paginated list of coupons available in the system.
Request
Query Parameters
page int32
Page number
limit int32
Limit count per page
progress string
Progress of coupons, available: not_started, ongoing, finished
type string
Type of coupons, available: fixed_amount, percentage
keywords string
Search coupons' title
Responses
- 200
200
- application/json
- Schema
- Example
- Result
Schema
- Array [
- Array [
- ]
- Array [
- ]
- ]
pageinteger
Default value:
0Example:
0limitinteger
Default value:
0Example:
10totalinteger
Default value:
0Example:
2data object[]
idstring
Example:
202314454241654711store_idinteger
Default value:
0Example:
11218life_cycle_typestring
Example:
begin_endsurvival_timeinteger
Default value:
0Example:
86400starts_atinteger
Default value:
0Example:
1673246985ends_atinteger
Default value:
0Example:
-1statusinteger
Default value:
0Example:
0discount_typestring
Example:
percentagevalue_typestring
Example:
percentagevaluestring
Example:
10usage_limitinteger
Default value:
0Example:
-1once_per_customerinteger
Default value:
0Example:
0titlestring
Example:
coupon1stockinteger
Default value:
0Example:
0codestring
Example:
prerequisiteinteger
Default value:
0Example:
0is_admin_showinteger
Default value:
0Example:
0target_selectionstring
Example:
allprogressstring
Example:
ongoingusing_statestring
Example:
allocation_limit_amountstring
Example:
0entitled_area_listarray
prerequisite_quantity_range object[]
greater_than_or_equal_tostring
Example:
valuestring
Example:
value_conditionstring
Example:
target_typestring
Example:
target_data
target_data_variant
target_data_collection
prerequisite_subtotal_range object[]
greater_than_or_equal_tostring
Example:
valuestring
Example:
value_conditionstring
Example:
target_typestring
Example:
target_data
target_data_variant
target_data_collection
entitled_product_idsarray
entitled_variant_idsarray
entitled_sortarray
times_usedinteger
Default value:
0Example:
1sort object
bystring
Example:
salesdirectionstring
Example:
descuse_with_otherinteger
Default value:
0Example:
0prerequisite_customer_idsarray
prerequisite_customer_segment_idsarray
config object
banner_urlstring
Example:
banner_sizestring
Example:
count_down object
show_count_downboolean
Default value:
trueExample:
falseformatstring
Example:
background_color_startstring
Example:
background_color_endstring
Example:
colorstring
Example:
count_down_background_colorstring
Example:
count_down_colorstring
Example:
detail_page_show_codeboolean
Default value:
trueExample:
falseallocation_methodstring
Example:
allocation_limitinteger
Default value:
0Example:
0customer_selectionstring
Example:
entitled_collection_idsarray
tips object
msgstring
Example:
countdownstring
Example:
countdown_daystring
Example:
use_codestring
Example:
copy_codestring
Example:
entitled_extra_list
prerequisite_customer_range
buysPrerequisiteValueinteger
Default value:
0Example:
0getsMaxOrderUseValueinteger
Default value:
0Example:
0getsDiscountValueinteger
Default value:
0Example:
0only_valid_first_order_customerboolean
Default value:
trueExample:
false{
"page": 0,
"limit": 10,
"total": 2,
"data": [
{
"id": "202314454241654711",
"store_id": 11218,
"life_cycle_type": "begin_end",
"survival_time": 86400,
"starts_at": 1673246985,
"ends_at": -1,
"status": 0,
"discount_type": "percentage",
"value_type": "percentage",
"value": "10",
"usage_limit": -1,
"once_per_customer": 0,
"title": "coupon1",
"stock": 0,
"code": "",
"prerequisite": 0,
"is_admin_show": 0,
"target_selection": "all",
"progress": "ongoing",
"using_state": "",
"allocation_limit_amount": "0",
"entitled_area_list": [
null
],
"prerequisite_quantity_range": [
{
"greater_than_or_equal_to": "",
"value": "",
"value_condition": "",
"target_type": "",
"target_data": {},
"target_data_variant": {},
"target_data_collection": {}
}
],
"prerequisite_subtotal_range": [
{
"greater_than_or_equal_to": "",
"value": "",
"value_condition": "",
"target_type": "",
"target_data": {},
"target_data_variant": {},
"target_data_collection": {}
}
],
"entitled_product_ids": [
null
],
"entitled_variant_ids": [
null
],
"entitled_sort": [
null
],
"times_used": 1,
"sort": {
"by": "sales",
"direction": "desc"
},
"use_with_other": 0,
"prerequisite_customer_ids": [
null
],
"prerequisite_customer_segment_ids": [
null
],
"config": {
"banner_url": "",
"banner_size": "",
"count_down": {
"show_count_down": false,
"format": "",
"background_color_start": "",
"background_color_end": "",
"color": "",
"count_down_background_color": "",
"count_down_color": "",
"detail_page_show_code": false
}
},
"allocation_method": "",
"allocation_limit": 0,
"customer_selection": "",
"entitled_collection_ids": [
null
],
"tips": {
"msg": "",
"countdown": "",
"countdown_day": "",
"use_code": "",
"copy_code": ""
},
"entitled_extra_list": {},
"prerequisite_customer_range": {},
"buysPrerequisiteValue": 0,
"getsMaxOrderUseValue": 0,
"getsDiscountValue": 0,
"only_valid_first_order_customer": false
}
]
}
{
"page": 0,
"limit": 10,
"total": 2,
"data": [
{
"id": "202314454241654711",
"store_id": 11218,
"life_cycle_type": "begin_end",
"survival_time": 86400,
"starts_at": 1673246985,
"ends_at": -1,
"status": 0,
"discount_type": "percentage",
"value_type": "percentage",
"value": "10",
"usage_limit": -1,
"once_per_customer": 0,
"title": "coupon1",
"stock": 0,
"code": "",
"prerequisite": 0,
"is_admin_show": 0,
"target_selection": "all",
"progress": "ongoing",
"using_state": "",
"allocation_limit_amount": "0",
"entitled_area_list": [],
"prerequisite_quantity_range": [
{
"greater_than_or_equal_to": "",
"value": "",
"value_condition": "",
"target_type": "",
"target_data": null,
"target_data_variant": null,
"target_data_collection": null
}
],
"prerequisite_subtotal_range": [
{
"greater_than_or_equal_to": "",
"value": "",
"value_condition": "",
"target_type": "",
"target_data": null,
"target_data_variant": null,
"target_data_collection": null
}
],
"entitled_product_ids": [],
"entitled_variant_ids": [],
"entitled_sort": [],
"times_used": 1,
"sort": {
"by": "sales",
"direction": "desc"
},
"use_with_other": 0,
"prerequisite_customer_ids": [],
"prerequisite_customer_segment_ids": [],
"config": {
"banner_url": "",
"banner_size": "",
"count_down": {
"show_count_down": false,
"format": "",
"background_color_start": "",
"background_color_end": "",
"color": "",
"count_down_background_color": "",
"count_down_color": "",
"detail_page_show_code": false
}
},
"allocation_method": "",
"allocation_limit": 0,
"customer_selection": "",
"entitled_collection_ids": [],
"tips": {
"msg": "",
"countdown": "",
"countdown_day": "",
"use_code": "",
"copy_code": ""
},
"entitled_extra_list": null,
"prerequisite_customer_range": null,
"buysPrerequisiteValue": 0,
"getsMaxOrderUseValue": 0,
"getsDiscountValue": 0,
"only_valid_first_order_customer": false
},
{
"id": "202310134632812624",
"store_id": 11218,
"life_cycle_type": "begin_end",
"survival_time": 86400,
"starts_at": 1673246985,
"ends_at": -1,
"status": 0,
"discount_type": "percentage",
"value_type": "percentage",
"value": "10",
"usage_limit": -1,
"once_per_customer": 0,
"title": "coupon2",
"stock": 0,
"code": "",
"prerequisite": 0,
"is_admin_show": 0,
"target_selection": "all",
"progress": "ongoing",
"using_state": "",
"allocation_limit_amount": "0",
"entitled_area_list": [],
"prerequisite_quantity_range": [
{
"greater_than_or_equal_to": "",
"value": "",
"value_condition": "",
"target_type": "",
"target_data": null,
"target_data_variant": null,
"target_data_collection": null
}
],
"prerequisite_subtotal_range": [
{
"greater_than_or_equal_to": "",
"value": "",
"value_condition": "",
"target_type": "",
"target_data": null,
"target_data_variant": null,
"target_data_collection": null
}
],
"entitled_product_ids": [],
"entitled_variant_ids": [],
"entitled_sort": [],
"times_used": 0,
"sort": {
"by": "sales",
"direction": "desc"
},
"use_with_other": 0,
"prerequisite_customer_ids": [],
"prerequisite_customer_segment_ids": [],
"config": {
"banner_url": "",
"banner_size": "",
"count_down": {
"show_count_down": false,
"format": "",
"background_color_start": "",
"background_color_end": "",
"color": "",
"count_down_background_color": "",
"count_down_color": "",
"detail_page_show_code": false
}
},
"allocation_method": "",
"allocation_limit": 0,
"customer_selection": "",
"entitled_collection_ids": [],
"tips": {
"msg": "",
"countdown": "",
"countdown_day": "",
"use_code": "",
"copy_code": ""
},
"entitled_extra_list": null,
"prerequisite_customer_range": null,
"buysPrerequisiteValue": 0,
"getsMaxOrderUseValue": 0,
"getsDiscountValue": 0,
"only_valid_first_order_customer": false
}
]
}