跳到主要内容
版本:202201

查询优惠券列表

GET 

/openapi/2022-01/coupons

分页获取系统中可用的优惠券列表。

请求

Query参数

    page int32

    Page number

    limit int32

    Limit count per page

    progress string

    按优惠券进度筛选。

    • not_started: 未开始。
    • ongoing: 进行中。
    • finished: 已结束。
    type string

    按优惠券类型筛选。

    • fixed_amount: 固定金额折扣。
    • percentage: 百分比折扣。
    • voucher: 代金券。
    keywords string

    Search coupons' title

响应

200

数据结构
    pageinteger
    默认值: 0
    示例: 0
    limitinteger
    默认值: 0
    示例: 10
    totalinteger
    默认值: 0
    示例: 2
    data object[]
  • Array [
  • idstring
    示例: 202314454241654711
    store_idinteger
    默认值: 0
    示例: 11218
    life_cycle_typestring
    示例: begin_end
    survival_timeinteger
    默认值: 0
    示例: 86400
    starts_atinteger
    默认值: 0
    示例: 1673246985
    ends_atinteger
    默认值: 0
    示例: -1
    statusinteger
    默认值: 0
    示例: 0
    discount_typestring
    示例: percentage
    value_typestring
    示例: percentage
    valuestring
    示例: 10
    usage_limitinteger
    默认值: 0
    示例: -1
    once_per_customerinteger
    默认值: 0
    示例: 0
    titlestring
    示例: coupon1
    stockinteger
    默认值: 0
    示例: 0
    codestring
    示例:
    prerequisiteinteger
    默认值: 0
    示例: 0
    is_admin_showinteger
    默认值: 0
    示例: 0
    target_selectionstring
    示例: all
    progressstring
    示例: ongoing
    using_statestring
    示例:
    allocation_limit_amountstring
    示例: 0
    entitled_area_listarray
    prerequisite_quantity_range object[]
  • Array [
  • greater_than_or_equal_tostring
    示例:
    valuestring
    示例:
    value_conditionstring
    示例:
    target_typestring
    示例:
    target_data
    target_data_variant
    target_data_collection
  • ]
  • prerequisite_subtotal_range object[]
  • Array [
  • greater_than_or_equal_tostring
    示例:
    valuestring
    示例:
    value_conditionstring
    示例:
    target_typestring
    示例:
    target_data
    target_data_variant
    target_data_collection
  • ]
  • entitled_product_idsarray
    entitled_variant_idsarray
    entitled_sortarray
    times_usedinteger
    默认值: 0
    示例: 1
    sort object
    bystring
    示例: sales
    directionstring
    示例: desc
    use_with_otherinteger
    默认值: 0
    示例: 0
    prerequisite_customer_idsarray
    prerequisite_customer_segment_idsarray
    config object
    banner_urlstring
    示例:
    banner_sizestring
    示例:
    count_down object
    show_count_downboolean
    默认值: true
    示例: false
    formatstring
    示例:
    background_color_startstring
    示例:
    background_color_endstring
    示例:
    colorstring
    示例:
    count_down_background_colorstring
    示例:
    count_down_colorstring
    示例:
    detail_page_show_codeboolean
    默认值: true
    示例: false
    allocation_methodstring
    示例:
    allocation_limitinteger
    默认值: 0
    示例: 0
    customer_selectionstring
    示例:
    entitled_collection_idsarray
    tips object
    msgstring
    示例:
    countdownstring
    示例:
    countdown_daystring
    示例:
    use_codestring
    示例:
    copy_codestring
    示例:
    entitled_extra_list
    prerequisite_customer_range
    buysPrerequisiteValueinteger
    默认值: 0
    示例: 0
    getsMaxOrderUseValueinteger
    默认值: 0
    示例: 0
    getsDiscountValueinteger
    默认值: 0
    示例: 0
    only_valid_first_order_customerboolean
    默认值: true
    示例: false
  • ]