---
title: "discount_allocation"

doc_type: static
doc_category: static
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/zh-hans-cn/docs/sline/object/discount-allocation'
  md: 'https://developer.shopline.com/zh-hans-cn/docs/sline/object/discount-allocation.md'
---

# discount_allocation


    
有关适用于一个商品的折扣及具体折扣金额的信息。

    
了解如何在主题中显示折扣，参阅 [折扣优惠](https://developer.shopline.com/zh-hans-cn/docs/online-store-3-0-themes/theme-features/pricing-and-payment/discounts.md)。



## 属性

    <div>
    

        
<ObjectProperty
    name="amount"
    types={[<Mdx>integer</Mdx>]}
>
<ObjectSummary>
商品打折的金额。

> **提示**
>
> 可根据需要使用 [money](https://developer.shopline.com/zh-hans-cn/docs/sline/filter/money.md)、[money_with_currency](https://developer.shopline.com/zh-hans-cn/docs/sline/filter/money-with-currency.md) 或 [money_without_currency](https://developer.shopline.com/zh-hans-cn/docs/sline/filter/money-without-currency.md) filter 输出格式化金额。
</ObjectSummary>
</ObjectProperty>
        
<ObjectProperty
    name="discount_application"
    types={[<Mdx>[discount_application](https://developer.shopline.com/zh-hans-cn/docs/sline/object/discount-application.md)</Mdx>]}
>
<ObjectSummary>
应用于商品的折扣的详细信息。


</ObjectSummary>
</ObjectProperty>
        
    
    </div>


