跳到主要内容
版本:202201

查询所有折扣码列表

GET 

/openapi/2022-01/discount_codes

返回所有折扣码的列表。

请求

Query参数

    limit int32

    Limit per page

    page int32

    Page number

    need_detail_url boolean

    若为 true,则在响应中返回详情 URL。

响应

200

数据结构
    pageinteger
    默认值: 0
    示例: 1
    limitinteger
    默认值: 0
    示例: 20
    totalstring
    示例: 1
    data object[]
  • Array [
  • allocation_limitstring
    示例: 1
    allocation_limit_amountstring
    示例: 0.0000
    allocation_methodstring
    示例:
    app_idstring
    示例:
    codestring
    示例: 123234
    customer_selectionstring
    示例: all
    detail_urlstring
    示例: tzt.myshoplaza.com/promotions/coupon/1783371b-76c1-41ab-a09c-531ff54425fc
    discount_typestring
    示例: percentage
    ends_atstring
    示例: -1
    entitled_filter_idsarray
    entitled_filter_listarray
    entitled_product_idsarray
    idstring
    示例: 1783371b-76c1-41ab-a09c-531ff54425fc
    is_admin_showstring
    示例: 1
    once_per_customerstring
    示例: 1
    prerequisitestring
    示例: 0
    prerequisite_customer_idsarray
    prerequisite_customer_segment_idsarray
    product_num
    progressstring
    示例: ongoing
    sortstring
    示例: {"by":"title","direction":"asc"}
    starts_atstring
    示例: 1682652119
    statusstring
    示例: 1
    target_price_typestring
    示例: combined_price
    target_selectionstring
    示例: all
    target_typestring
    示例: line_item
    times_usedstring
    示例: 0
    titlestring
    示例: tzt-优惠码-促进成交
    usage_limitstring
    示例: 1
    use_with_otherstring
    示例: 0
    using_statestring
    示例: normal
    valueinteger
    默认值: 0
    示例: 1
    value_typestring
    示例: percentage
    variant_product_idsarray
  • ]