Skip to main content

Billing and the free trial

A Budget Thing account can try a paid plan free for 14 days, once. This page describes the fields the billing API adds for it. All of them are additive: no existing field changed meaning, and a client that ignores them keeps working.

OperationMethod and pathWhat this page covers
get-account-billingGET /v1/account/billingTrial offer, trialing, trialEndsAt, trialRejection
preview-change-planPOST /v1/plan/change/previewTrial offer, trialEndsAt, amountDueNowMinor
create-billing-checkout-sessionPOST /v1/account/billing/checkout-sessiontrialDays
change-billing-planPOST /v1/account/billing/change-plantrialEndsAt, amountDueNowMinor

These endpoints act on the signed-in account.

The trial is released behind the server setting BILLING_TRIAL_ENABLED, which is off by default. While it is off, no account is eligible and none of these fields offers a trial.

Who gets a trial​

The server decides; a client cannot ask for a trial. An account is eligible when it has never had a paid subscription and has never started (or been refused) a trial. Deleting the account and signing up again doesn't make it eligible, and neither does using a card that already paid for Budget Thing or already started a trial on another account.

The offer is on the trial object:

{ "trial": { "eligible": true, "days": 14 } }

trial is returned by GET /v1/account/billing and by POST /v1/plan/change/preview. eligible is true only for an account that can still start the trial; days is the trial length, 14. The public plan list (GET /v1/plans) is the same for everyone and carries no trial information.

Starting a trial​

POST /v1/account/billing/checkout-session returns the Checkout link as before, plus trialDays:

{ "sessionId": "cs_...", "checkoutUrl": "https://checkout.stripe.com/...", "trialDays": 14 }

trialDays is 14 when the session starts a free trial and 0 when it doesn't (the account isn't eligible). The request body is unchanged; there is no field to request or refuse a trial. Checkout collects a card for the trial. Nothing is charged until the trial ends.

The trialing state​

While the trial runs, GET /v1/account/billing reports:

FieldTypeNotes
billingStatestringtrialing. It reads canceling instead once the customer has canceled during the trial.
trialingbooleantrue for the whole trial, including after the customer cancels.
trialEndsAtdate-time, optionalThe end of the trial. The first charge is on this date, or, after a cancel, this is when the account moves to the Free plan. Only present while trialing.
cancelAtPeriodEnd, cancellationEffectiveDateKeep working. A cancel during the trial takes effect on trialEndsAt.
subscriptionStatusstringtrialing.

The account has the full entitlements of the plan during the trial, with one exception: managed bank connections (bank_connections.managed.max) are capped at 3, or at the plan's own limit when that is lower. Existing connections are never removed. The limit returns to the plan's value when the trial converts. Every endpoint that reports entitlements shows the capped value while the trial runs.

When the trial ends, the first invoice is paid and billingState becomes active. If the customer canceled, the subscription ends instead: the account moves to the Free plan, its data is kept and creating new items beyond the Free limits is blocked, the same as any voluntary cancellation. A canceled trial is never scheduled for deletion.

A refused trial​

If the card used at Checkout already paid for Budget Thing or already started a trial, or the account already had a trial, the subscription is canceled immediately, with no invoice and no charge. The account is left on its previous plan with no subscription, and GET /v1/account/billing explains why:

FieldValueMeaning
trialRejectioncard_already_usedThis card has already been used for a free trial or a paid plan.
trialRejectiontrial_already_usedThe account already started a trial.

trialRejection is absent otherwise. trial.eligible is false from then on, so the next Checkout session has trialDays: 0 and subscribes normally. Use trialRejection on the page the customer lands on after Checkout.

Changing plan during the trial​

An upgrade, a downgrade or a billing-interval change keeps the remaining trial. It never starts a second trial and never charges before the trial ends. Both POST /v1/plan/change/preview and the response of POST /v1/account/billing/change-plan report it while the account is trialing:

FieldTypeNotes
trialEndsAtdate-timeUnchanged by the change. The first charge, on the new price, is on this date.
amountDueNowMinorinteger0. Minor currency units.

Both fields are absent when the account is not trialing.

The trial-ending reminder​

Three days before the trial ends, the account owner gets an email with the plan, the price, the date of the first charge and a link to Billing to cancel. It is sent once per subscription and isn't tied to marketing preferences. It is not sent to a customer who has already canceled.