跳到主要内容
版本:202201

查询价格规则列表

GET 

/openapi/2022-01/price_rules

返回可应用于客户订单的价格规则列表。

请求

Query参数

    limit int32

    Result per page, max: 250

    默认值: 50
    starts_at_min int32

    过滤此时间之后开始的价格规则(Unix 时间)。

    starts_at_max int32

    过滤此时间之前开始的价格规则(Unix 时间)。

    ends_at_min int32

    过滤此时间之后结束的价格规则(Unix 时间)。

    ends_at_max int32

    过滤此时间之前结束的价格规则(Unix 时间)。

    times_used int32

    按使用次数过滤价格规则。

响应

200

数据结构
    price_rules object[]
  • Array [
  • idstring
    示例: 91f9a466-7c8c-46e7-9774-64874a641534
    titlestring
    示例: Buy $180 get $20 off,once for one customer
    valueinteger
    默认值: 0
    示例: 20
    value_typestring
    示例: fixed_amount
    usage_limitstring
    示例: -1
    times_usedstring
    示例: 0
    allocation_methodstring
    示例:
    allocation_limitstring
    示例: 0
    once_per_customerstring
    示例: 1
    prerequisitestring
    示例: 1
    customer_selectionstring
    示例: all
    target_selectionstring
    示例: all
    target_typestring
    示例:
    created_atstring
    示例: 2022-06-17 15:00:03
    updated_atstring
    示例: 2022-06-17 15:00:03
    starts_atstring
    示例: 1655431200
    ends_atstring
    示例: -1
    entitled_product_idsarray
    entitled_filter_idsarray
    entitled_filter_listarray
    variant_product_idsarray
    prerequisite_subtotal_range object[]
  • Array [
  • greater_than_or_equal_tostring
    示例: 180
    valuestring
    示例: 20
    value_conditionstring
    示例: less_than_or_equal_to
    target_typestring
    示例:
    target_dataarray
    target_data_variantarray
    target_data_collectionarray
  • ]
  • prerequisite_quantity_range
  • ]