Skip to content
All changes

Billing charges, emails and screens that say what really happened

An end-to-end pass over billing found plan changes that charged the wrong amount, emails that misdescribed a trial or a lost plan, and screens that hid what a plan includes. They are fixed, and one usage response changes status.

Improved
7
  • BillingBehaviour change: a usage report refused because a hard-capped quota is used up now answers 402 with the code QUOTA_EXHAUSTED, the quota slug and when it resets, instead of 400. A bad request still answers 400 and the rate limiter 429. Code that checked for 400 to detect a used-up quota should check for 402 or the code; the SDK error carries all three fields from @buildbase/sdk 1.0.0.
  • WorkspacesBehaviour change: a workspace name created or renamed through the API is stored as typed, so GET /workspaces and the workspace webhooks now return Zoe & Son's <Lab> instead of an HTML-escaped Zoe &amp; Son's. Escape the name wherever you put it into HTML, Markdown or a chat message; React does it for you.
  • BillingBehaviour change: buying a credit pack or an add-on in a currency other than the one the workspace or person is already billed in now answers 400 with the code SUBSCRIPTION_CURRENCY_MISMATCH, as a plan checkout does, instead of charging in the billed currency anyway. A purchase that names no currency is unchanged and is charged in the billed currency.
  • BillingBehaviour change: a workspace's or person's billing currency is now set when a checkout is paid, not when it is opened. A Checkout that is opened and left unpaid no longer ties the customer to its currency, so they can still buy in the currency they chose. Opening a checkout in one currency closes that customer's open checkouts in another.
  • BillingBehaviour change: in an organization that has not connected Stripe, a plan checkout (a workspace's or a person's own) and a credit pack purchase now answer 409 with the code STRIPE_NOT_CONNECTED and the message "Payments are not set up for this app yet", instead of a 400 about a missing price or missing Stripe credentials. Publishing an add-on offer in the console says to connect Stripe first. Code that read the 400 should check for 409 or the code.
  • BillingBilling emails say what happened and what it cost: a trial start gives the trial end and the first charge, a payment receipt gives the amount, plan, period and invoice link, refunds and add-on purchases give their amounts, and a plan lost for non-payment says so with the open invoice, instead of announcing the Free plan as good news.
  • ConsolePricing groups can be archived and restored from their row, and Allowed to all can no longer be turned on for a subscription-managed feature by accident, because it gives the feature to every workspace on every plan.
Fixed
8
  • BillingA customer who downgraded and then changed their plan again in the same period was credited at the cheaper plan instead of the one they paid for. The unused time of the plan they paid for is now credited.
  • BillingAn upgrade left waiting on a declined card no longer bills the usage before the change twice: the carried usage is held back until the upgrade is paid, and dropped if it never is.
  • BillingA dispute that arrives before its credit pack purchase is recorded is retried until it can take the credits back, a trial ended early no longer sends a trial ending soon email, and a plan's monthly credits are granted when a scheduled downgrade onto it takes effect.
  • BillingA refund made before its credit pack purchase is recorded now takes the credits back as soon as the pack is granted, instead of leaving them with the buyer.
  • BillingA credit pack priced in only some of your organization's billing currencies can be bought by a workspace that has not paid for anything yet. It is sold in the first of your currencies the pack has a price in, where before only your first currency was tried and the purchase was refused.
  • AuthenticationSomeone who signs up through an invitation link goes straight in. The link already proves the address, so no code is sent, but the sign-up page still asked for one and the only way on was back to sign in.
  • AgentsA blueprint exported from a billing setup with graduated seat or overage prices now plans back with no changes, and one default pricing group is allowed for workspaces and another for people.
  • DocumentationBilling code samples format money with the currency's own decimals, so a yen price is no longer shown a hundred times too small, and pages that use SDK features newer than the published release say so.

Use what shipped this week

Everything in this release is already in the console and the SDK.

Free plan7-day free trial on paid plansNo credit card required