Usage during a free trial

How the usage a customer reports during a free trial is billed, and how to choose it per subscription.

A trial with a metered price bills its usage on the first invoice after the trial. That invoice is issued when the trial's usage period closes, at the trial end plus your usageGraceMinutes, and also holds the fee for the first paid period. The trialUsage billing setting decides how the trial's usage is billed.

The trial ends like any other period (see Renewals and days to pay). The notice goes out renewalNoticeDays before the trial end, the subscription is past_due from the trial end until that invoice is paid, and the invoice is due daysToPay days after the trial end. A trial that ends within 7 days also sends customer.subscription.trial_will_end.

Modes

modeWhat the first invoice after the trial shows
freeEach usage line with its quantity and unit price, at an amount of 0, marked as free trial usage. This is the default.
free_up_toThe usage at its price. A credit grant of amount pays it first, so the customer pays only the usage above amount.
chargedThe usage at its price.

With free_up_to, starting the trial creates a credit grant for the customer: appliesTo usage, category promotional, source trial, effective from the trial start, with the trial's subscription in subscriptionId. It pays the usage of the trial period of this subscription only, and never its fee or a later period's usage. What is left of it expires when the first invoice after the trial is issued, and shows in the balance entries as expired. Its expiresAt is one day plus usageGraceMinutes after the trial end. If you cancel the trial with atPeriodEnd false, expiresAt becomes one day plus usageGraceMinutes after the cancel instead.

amount is an integer in the currency's minor unit, so 5000 means TZS 5,000. amount and currency are required with free_up_to and not allowed with the other modes.

Set the default

Send trialUsage to Update billing settings:

{
  "trialUsage": { "mode": "free_up_to", "amount": 5000, "currency": "TZS" }
}

A change applies to trials started after it. A running trial keeps the value it started with.

Choose per subscription

Send trialUsage with trialDays to Create a subscription to use another mode for that trial. The subscription's trialUsage shows the value in effect.

RequestResult
trialUsage without trialDays400 parameter_invalid, param trialUsage.
trialUsage with free_up_to in another currency than the subscription's prices400 parameter_invalid, param trialUsage.currency.
No trialUsage, and your setting is free_up_to in another currency than the subscription's prices400 parameter_missing, param trialUsage. Send trialUsage with an amount in the subscription's currency, or another mode.
No trialUsage otherwiseYour setting is used.

On this page