版本:202201
查询所有折扣码列表
GET/openapi/2022-01/discount_codes
返回所有折扣码的列表。
请求
Query参数
limit int32
Limit per page
page int32
Page number
need_detail_url boolean
若为 true,则在响应中返回详情 URL。
响应
- 200
- 400
200
- application/json
- 数据结构
- 示例
- Result
数据结构
- Array [
- ]
pageinteger
默认值:
0示例:
1limitinteger
默认值:
0示例:
20totalstring
示例:
1data object[]
allocation_limitstring
示例:
1allocation_limit_amountstring
示例:
0.0000allocation_methodstring
示例:
app_idstring
示例:
codestring
示例:
123234customer_selectionstring
示例:
alldetail_urlstring
示例:
tzt.myshoplaza.com/promotions/coupon/1783371b-76c1-41ab-a09c-531ff54425fcdiscount_typestring
示例:
percentageends_atstring
示例:
-1entitled_filter_idsarray
entitled_filter_listarray
entitled_product_idsarray
idstring
示例:
1783371b-76c1-41ab-a09c-531ff54425fcis_admin_showstring
示例:
1once_per_customerstring
示例:
1prerequisitestring
示例:
0prerequisite_customer_idsarray
prerequisite_customer_segment_idsarray
product_num
progressstring
示例:
ongoingsortstring
示例:
{"by":"title","direction":"asc"}starts_atstring
示例:
1682652119statusstring
示例:
1target_price_typestring
示例:
combined_pricetarget_selectionstring
示例:
alltarget_typestring
示例:
line_itemtimes_usedstring
示例:
0titlestring
示例:
tzt-优惠码-促进成交usage_limitstring
示例:
1use_with_otherstring
示例:
0using_statestring
示例:
normalvalueinteger
默认值:
0示例:
1value_typestring
示例:
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
无 Schema