請求書の使用量を記録する
顧客の使用量を記録し、報告する方法をご紹介します。
Throughout each billing period, you must record usage in Stripe to bill your customers the correct amounts. You can decide how often you record usage in Stripe.
To record usage in Stripe, first configure your meter and then add the recorded usage through the Stripe Dashboard or API.
Configure your meter
Before you can record customer usage, you must configure your meter. After you configure the meter, you can’t make any changes aside from the display name.
Meter attribute | Description |
---|---|
イベント名 | The name of the meter event that you want to record usage for with the meter. When you send usage to Stripe, specify this event name in the event_ field for the meter event. This allows the correct meter to record and aggregate the usage. You can only use an event name with a single meter. |
イベントの取り込み | Specify how to send events to Stripe:
|
集計式 | Specify how to aggregate usage over the billing period:
|
ペイロードキーの上書き | イベントペイロードのどのキーが顧客と使用量の数値を表すかを指定します。
|
Record usage
Record usage in Stripe using the Dashboard or API.
Stripe processes meter events asynchronously, so aggregated usage in meter event summaries and on upcoming invoices might not immediately reflect recently received meter events.
Fix incorrect usage data
If you identify incorrectly recorded events in the current billing period, you can create a meter event adjustment to cancel those events. You must specify the meter event identifier.
You can only cancel events sent to Stripe within the last 24 hours. If you cancel usage that’s included on a finalized invoice, we won’t update the invoice or issue a corrected invoice for the canceled usage. We don’t support billing adjustments for canceled usage on a finalized invoice sent to a customer.
You can also fix incorrectly recorded usage data by recording negative quantities. If the overall cycle usage is negative, Stripe reports the invoice line item usage quantity as 0.