跳到主要内容

discount_application

有关折扣意图的信息。

要了解如何在主题中显示折扣,请参阅折扣

Properties

Type

Description

discount_amount

number

折扣金额。

discount_id

string

折扣的 id。

discount_message

string

折扣的消息。

discount_type

string

折扣的类型。

entitled_product_list

array

享受折扣的商品。

icon

string

折扣的图标 URL。

is_free_gift

boolean

若折扣商品为赠品,则返回 true;否则返回 false

message

string

折扣的消息。

subtype

string from a set of values, refer to subtype values

折扣的子类型。

target_selection

string from a set of values, refer to target_selection values

订单行项目或运费行的折扣选择方法。

选择方法是否适用于订单行项目或运费行取决于折扣的 target_type

target_type

string from a set of values, refer to target_type values

折扣适用的商品类型。

title

string

折扣的标题。

type

string from a set of values, refer to type values

折扣的类型。

value_type

string from a set of values, refer to value_type values

折扣的值类型。

type 可选值

Possible values
automatic
discount_code
discount_coupon
discount_flashsale
discount_rebate

subtype 可选值

Possible values
automatic
buy_x_get_y
discount_code
discount_coupon
discount_flashsale
discount_rebate

value_type 可选值

Possible values
percentage
fixed_amount
buy_x_get_y
fixed_price

target_type 可选值

Possible values
line_item
shipping_line

target_selection 可选值

Possible valuesDescription
all折扣适用于所有订单行项目或运费行。
entitled折扣根据特定条件适用于特定订单行项目或运费行。
explicit折扣适用于特定订单行项目或运费行。
{
"type": "discount_rebate",
"subtype": "discount_rebate",
"title": "满减",
"discount_amount": 20,
"message": "",
"discount_message": "",
"discount_id": "53b13206-6de7-48dd-baa5-a542f5be26f5",
"value_type": "fixed_amount",
"target_type": "line_item",
"apply_method": "",
"target_selection": "entitled",
"discount_type": "discount_rebate",
"entitled_product_list": [
{
"product_id": "b1ab6324-ae4f-4cca-907e-18af16839447",
"variant_id": "4a3d825c-2fac-4f72-a68b-b8604b0935c4",
"price": "205.2",
"quantity": 1
}
],
"icon": "//cdn.shoplazza.com/oss/operation/52a3d7f0a272be85092170dc93eefe81.svg"
}