调至内容部分
创建账户或登录
Stripe 文档徽标
/
询问人工智能
创建账户登录
开始
付款
销售收入
平台和交易市场
资金管理
开发人员资源
API 和 SDK帮助
概览
Billing
概览关于 Billing API
订阅
开账单
基于用量的计费
    概览
    用量计费的工作原理
    用例
    记录计费用量
    提供计费抵用金
      设置计费抵用金
    监测用量
    管理基于用量计费的设置
    高级用量计费
    LLM 令牌计费
高级用量计费
报价
客户管理
用其他产品计费
收入恢复
自动化
测试您的集成
税务
概览
使用 Stripe Tax
管理合规
报告
概览
选择报告
配置报告
多账户报告
Reports API
收入确认
数据
概览
查询商家数据
Sigma
Data Pipeline
导入外部数据
美国
简体中文
首页销售收入Usage-based billingOffer billing credits

Set up billing credits公开预览

Learn how to implement a prepaid billing solution with billing credits.

Use Meters and billing credits to offer credits to your customers when they prepay for usage-based products or services, or as a promotional offering.

Before you begin

Before you can use billing credits, you must set up usage-based billing:

  1. Create a billing meter.
  2. Create a pricing model and add the meter to it.
  3. Create a subscription that includes your customer, product, and usage-based price.

Grant billing credits to your customer

Use the Stripe Dashboard or API to create a credit grant for your customer.

Billing credits only apply to subscription line items that link to a meter price. The (Usage Records API) isn’t supported.

  1. On the Customers page, select the customer name.
  2. On the customer page, under Credit grants, click the plus (+) symbol.
  3. On the New credit grant page, do the following:
  • For Name, enter a name for your credit grant.
  • For Amount, specify the amount of the credit grant.
  • (Optional) Under Effective date, specify a date for when to grant the credit.
  • (Optional) Under Expiry date, specify the date, if any, when the credits expire.
  • (Optional) Under Priority, specify the priority for this credit grant.
  • (Optional) Under Eligibility, specify a list of usage-based prices that this credit grant applies to.
  • Click Create grant.

Apply billing credits to invoices

After the invoice finalizes, Stripe automatically applies all applicable billing credits. The available balance on the credit grant updates based on the amount of billing credits applied to the invoice.

You can find the amount of billing credits applied to an invoice in the Stripe Dashboard.

  1. On the Customers page, select the customer name.
  2. On the customer page, under Invoices, select an invoice.
  3. On the invoice page, under Subtotal, find the line for Credit grant applied.

Retrieve the available billing credit balance

Use the Stripe Dashboard or API to see the available billing credit balance for a customer. When using the API, retrieve the Credit Balance Summary endpoint.

  1. On the Customers page, select the customer name.
  2. On the customer page, under Credit grants, find the list of credit grants that can apply to invoices. You can see the credit grant’s available_balance in the Available column.

List transactions for a credit grant

Use the Stripe Dashboard or API to see the transactions for a specific credit grant or customer. When using the API, call the Credit Balance Transaction endpoint.

  1. On the Customers page, select the customer name.
  2. On the customer page, under Credit grants, select a credit grant.
  3. View details for the credit balance transactions.

可选Fund the credit grant

Use the Stripe Dashboard or API to create a one-off invoice to collect payment from a customer. When using the API, listen for the invoice.paid webhook and grant billing credits to your customer.

  1. On the Customers page, select the customer name.
  2. On the customer page, click Create invoice.
  3. Follow the instructions to create an invoice.

另请参阅

  • Credit application eligibility
  • Usage-based billing
此页面的内容有帮助吗?
是否
  • 需要帮助?联系支持。
  • 查看我们的更改日志。
  • 有问题?联系销售。
  • LLM? Read llms.txt.
  • Powered by Markdoc