discount_application
有关折扣意图的信息。
要了解如何在主题中显示折扣,请参阅折扣。
Properties | Type | Description |
|---|---|---|
| 折扣金额。 | |
| 折扣的 id。 | |
| 折扣的消息。 | |
| 折扣的类型。 | |
| 享受折扣的商品。 | |
| 折扣的图标 URL。 | |
| 若折扣商品为赠品,则返回 | |
| 折扣的消息。 | |
| string from a set of values, refer to subtype values | 折扣的子类型。 |
| string from a set of values, refer to target_selection values | 订单行项目或运费行的折扣选择方法。 选择方法是否适用于订单行项目或运费行取决于折扣的 |
| string from a set of values, refer to target_type values | 折扣适用的商品类型。 |
| 折扣的标题。 | |
| string from a set of values, refer to type values | 折扣的类型。 |
| 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 values | Description |
|---|---|
| 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"
}