> ## Documentation Index
> Fetch the complete documentation index at: https://docs.dodopayments.com/llms.txt
> Use this file to discover all available pages before exploring further.

# v1.52.4 (2025年9月3日)

> 基于使用的计费，公共退款收据API，100%订阅折扣，以及支付中的结账会话ID

## 新功能 🚀

### 基于使用的计费

根据实际消费精确计费。定义计量器，摄取事件，并自动将使用量转换为费用。

* **灵活聚合**：计数、求和（按属性）、最大值、最后值
* **事件筛选**：使用丰富的比较运算符和 AND/OR 逻辑，仅包含相关事件
* **产品关联**：将计量器关联到产品，并设置单位价格和可选的免费阈值
* **分析**：跟踪趋势、事件流和每位客户的用量

<CardGroup cols={2}>
  <Card title="Feature Overview" icon="rocket" href="/features/usage-based-billing/introduction">
    学习概念、组件和端到端的数据流。
  </Card>

  <Card title="Integration Guide" icon="code" href="/developer-resources/usage-based-billing-guide">
    逐步设置计量器、产品和事件摄取。
  </Card>
</CardGroup>

<Warning>
  基于使用量的计费目前处于测试阶段。
</Warning>

### 100% 订阅折扣

对任何数量的计费周期应用100%的折扣，以支持免费期、赞助或促销活动。发票反映全额折扣，按比例分配遵循您的计划设置。

### 小改进

* 退款收据 API 现已公开可用。请参阅文档：[/api-reference/refunds/get-refund-receipt](/api-reference/refunds/get-refund-receipt)。
* 在获取支付 API 响应和支付 webhook 中添加了 `checkout session ID`，以帮助将支付与其来源结账会话相关联。
