Version: 202201
Discount Code List
GET/openapi/2022-01/discount_codes
Retrieves a list of discount code.
Request
Query Parameters
limit int32
Limit per page
page int32
Page number
need_detail_url boolean
details url return in responses
Responses
- 200
- 400
200
- application/json
- Schema
- Example
- Result
Schema
- Array [
- ]
pageinteger
Default value:
0Example:
1limitinteger
Default value:
0Example:
20totalstring
Example:
1data object[]
allocation_limitstring
Example:
1allocation_limit_amountstring
Example:
0.0000allocation_methodstring
Example:
app_idstring
Example:
codestring
Example:
123234customer_selectionstring
Example:
alldetail_urlstring
Example:
tzt.myshoplaza.com/promotions/coupon/1783371b-76c1-41ab-a09c-531ff54425fcdiscount_typestring
Example:
percentageends_atstring
Example:
-1entitled_filter_idsarray
entitled_filter_listarray
entitled_product_idsarray
idstring
Example:
1783371b-76c1-41ab-a09c-531ff54425fcis_admin_showstring
Example:
1once_per_customerstring
Example:
1prerequisitestring
Example:
0prerequisite_customer_idsarray
prerequisite_customer_segment_idsarray
product_num
progressstring
Example:
ongoingsortstring
Example:
{"by":"title","direction":"asc"}starts_atstring
Example:
1682652119statusstring
Example:
1target_price_typestring
Example:
combined_pricetarget_selectionstring
Example:
alltarget_typestring
Example:
line_itemtimes_usedstring
Example:
0titlestring
Example:
tzt-优惠码-促进成交usage_limitstring
Example:
1use_with_otherstring
Example:
0using_statestring
Example:
normalvalueinteger
Default value:
0Example:
1value_typestring
Example:
percentagevariant_product_idsarray
{
"page": 1,
"limit": 20,
"total": "1",
"data": [
{
"allocation_limit": "1",
"allocation_limit_amount": "0.0000",
"allocation_method": "",
"app_id": "",
"code": "123234",
"customer_selection": "all",
"detail_url": "tzt.myshoplaza.com/promotions/coupon/1783371b-76c1-41ab-a09c-531ff54425fc",
"discount_type": "percentage",
"ends_at": "-1",
"entitled_filter_ids": [
null
],
"entitled_filter_list": [
null
],
"entitled_product_ids": [
null
],
"id": "1783371b-76c1-41ab-a09c-531ff54425fc",
"is_admin_show": "1",
"once_per_customer": "1",
"prerequisite": "0",
"prerequisite_customer_ids": [
null
],
"prerequisite_customer_segment_ids": [
null
],
"product_num": {},
"progress": "ongoing",
"sort": "{\"by\":\"title\",\"direction\":\"asc\"}",
"starts_at": "1682652119",
"status": "1",
"target_price_type": "combined_price",
"target_selection": "all",
"target_type": "line_item",
"times_used": "0",
"title": "tzt-优惠码-促进成交",
"usage_limit": "1",
"use_with_other": "0",
"using_state": "normal",
"value": 1,
"value_type": "percentage",
"variant_product_ids": [
null
]
}
]
}
{
"page": 1,
"limit": 20,
"total": "1",
"data": [
{
"allocation_limit": "1",
"allocation_limit_amount": "0.0000",
"allocation_method": "",
"app_id": "",
"code": "123234",
"customer_selection": "all",
"detail_url": "tzt.myshoplaza.com/promotions/coupon/1783371b-76c1-41ab-a09c-531ff54425fc",
"discount_type": "percentage",
"ends_at": "-1",
"entitled_filter_ids": [],
"entitled_filter_list": [],
"entitled_product_ids": [],
"id": "1783371b-76c1-41ab-a09c-531ff54425fc",
"is_admin_show": "1",
"once_per_customer": "1",
"prerequisite": "0",
"prerequisite_customer_ids": [],
"prerequisite_customer_segment_ids": [],
"product_num": null,
"progress": "ongoing",
"sort": "{\"by\":\"title\",\"direction\":\"asc\"}",
"starts_at": "1682652119",
"status": "1",
"target_price_type": "combined_price",
"target_selection": "all",
"target_type": "line_item",
"times_used": "0",
"title": "tzt-优惠码-促进成交",
"usage_limit": "1",
"use_with_other": "0",
"using_state": "normal",
"value": 1,
"value_type": "percentage",
"variant_product_ids": []
}
]
}
400
- application/json
No schema