跳到主要内容
版本:202201

查询价格规则详情

GET 

/openapi/2022-01/price_rules/:price_rule_id

通过价格规则 ID 获取指定规则的详细信息。

请求

Path参数

    price_rule_id string必填

    价格规则 ID。

响应

200

数据结构
    price_rule object
    idstring
    示例: 00095d6a-419d-4499-a497-f265fb2edaa5
    titlestring
    示例: title-update
    valueinteger
    默认值: 0
    示例: 0
    value_typestring
    示例: percentage
    usage_limitstring
    示例: -1
    times_usedstring
    示例: 0
    allocation_methodstring
    示例:
    allocation_limitstring
    示例: 0
    once_per_customerstring
    示例: 1
    prerequisitestring
    示例: 1
    customer_selectionstring
    示例: all
    target_selectionstring
    示例: entitled
    target_typestring
    示例:
    created_atstring
    示例: 2020-03-06 17:00:32
    updated_atstring
    示例: 2020-03-12 15:29:44
    starts_atstring
    示例: 1583424000
    ends_atstring
    示例: 1583942399
    entitled_product_idsstring[]
    entitled_variant_idsarray
    prerequisite_quantity_range object[]
  • Array [
  • greater_than_or_equal_tostring
    示例: 1
    valuestring
    示例: 5
    target_typestring
    示例:
    target_dataarray
  • ]
  • prerequisite_subtotal_range