Pass the menu and read the page

SignupFolio

9 decimal places for a unit price on a landing page

Recurly's decimal pricing supports up to nine decimal places on items and add-ons, so a rate such as $0.005 for each GB can be set exactly as you write it on the page. Nine is a ceiling, not a target, and the goal is to keep the price on the signup page identical to the rate the billing system charges.

Everyday takeaways

  • Write the unit price with the same precision you bill. Recurly's decimal pricing lets you set prices with up to nine decimal places on items, item-backed add-ons, and usage and non-usage add-ons, using any pricing model. Recurly documentation The figure on the landing page should match the figure in the subscription character for character.
  • Count the decimal places before a price goes live. A rate derived from a conversion or a usage multiplier can quietly grow past nine places, so count them at the moment the number is set rather than discovering the mismatch on the first invoice.
  • Confirm which API version your integration uses. Decimal pricing on non-usage add-ons, items, and item-backed add-ons is tied to the V3 API, so an integration on the older V2 API can only carry decimal prices on usage-based add-ons.
  • Check the account's creation date early in the launch plan. Accounts created on or before May 7, 2018 must enable two settings before decimal pricing can be used, and the order of those steps matters.
  • Test the total as well as the unit price. A value can read correctly to a person and still fail a payment system's divisibility check, so run a full-quantity example through the same path a real charge follows and confirm the result before the page goes live.

What the nine-decimal ceiling covers

Recurly's decimal pricing supports up to nine decimal places on items and add-ons. The documentation presents that limit as the way to get precise unit-level billing for businesses whose cost for each unit is a fractional value. Recurly documentation The limit sets how precise a price can be, not how precise it must be. A price with two decimal places and a price with eight both sit inside the same allowance, and the right choice depends on what your unit cost actually requires.

For a growth lead writing a usage price on a signup page, the useful way to read the ceiling is as a design constraint. The published price can carry at most nine decimal places, so an internal cost calculated to more places must be rounded before it is entered as the price. Round the published rate to no more than nine decimal places and keep that same figure in the subscription; repricing to whole cents would reintroduce the unit-level rounding that decimal pricing removes. The cost arithmetic then happens before the figure is published, not after.

The situation the feature was built for is a rate measured in fractions of a cent for each unit. Whole-cent pricing forces rounding at the unit level, and that rounding distorts the rate the customer sees. Decimal pricing removes that rounding step as long as the rate stays within nine places, which makes the landing page a faithful statement of what the subscription will bill. Without that match, the page is an approximation that the invoice has to correct later.

Two checks follow from this. First, copy the rate from the price book without rewriting it, so the page and the subscription hold the same characters. Second, count the decimal places before publication. The ceiling is simple to state but easy to exceed when a rate comes from a calculation rather than a list price. A quick count when the number is set prevents a mismatch that would otherwise show up as a billing complaint.

Which API versions accept a decimal unit price

Recurly's documentation says decimal pricing is available on usage and non-usage add-ons, as well as on Items including item-backed add-ons, through the Admin Console and the V3 API dated 2021-02-25. Recurly documentation That date is the one that matters for a current integration. A team building on the V3 API can set decimal prices across the full set of object types the feature covers.

The older V2 API is narrower. The same documentation states that the V2 API only supports decimal pricing on usage-based add-ons at this time. The phrase "at this time" marks the restriction as a present limitation of that version, so the decision should rest on the version your team actually calls. The table below compares the two versions row by row on the same four measures.

MeasureV2 APIV3 API (2021-02-25)
Usage-based add-onsYesYes
Non-usage add-onsNoYes
ItemsNoYes
Item-backed add-onsNoYes

Read the table against your price structure. A usage meter price works on either version, which is why usage pricing is often where teams first see the feature. A flat recurring charge attached as a non-usage add-on, or a plan item with a decimal price, needs the V3 API. If the rate on your signup page belongs to any row marked "No" for V2, the integration has to move to V3 before the decimal price can be carried through. Checking this before the page is built avoids a late change to the signup flow.

Checking an account created on or before May 7, 2018

Recurly's documentation sets a condition tied to the site's creation date. If the Recurly site was created on or before May 7, 2018, you must enable Credit Invoices and Only Bill What Changed before using decimal pricing. Recurly documentation The condition is written as a precondition, so the sequence matters. Enabling decimal pricing first and the two settings afterward is not the order the documentation describes.

The steps below put that condition into a launch sequence.

StepActionCondition from the documentation
1Confirm the site creation dateSite created on or before May 7, 2018
2Enable Credit InvoicesRequired before decimal pricing
3Enable Only Bill What ChangedRequired before decimal pricing
4Set the decimal unit priceUsed only after steps 2 and 3

The practical question is who owns step one. The creation date is a fact about the account, so the check belongs in the launch plan with a named owner, not in the final days before the signup page goes live. If the date falls on or before May 7, 2018, steps two and three are required, and the team should schedule them before anyone publishes a decimal rate. The stated requirement covers only sites created on or before May 7, 2018; for later sites, confirm the current requirements with the vendor before publishing. Writing the four steps into the launch checklist makes the order visible to everyone who touches the page.

Reading the display format once decimals are set

Zoho Books ties its display formats to the decimal setting. Its currency help page says: "Format: Based on the decimal places you choose, various format options will be displayed." Zoho Books help The number of decimal places is the input, and the format options are the output. Choose the decimal count first, then select a format from the options that appear, rather than picking a format and hoping the places line up with the price.

This matters for a landing page because a unit rate can look different in one system than in another when the display setting and the price setting disagree. A team that publishes a rate such as $0.005 for each GB needs the format shown in its accounting view to carry the same decimal places. Otherwise a reader comparing the page with a statement sees two different figures for one price.

A simple sequence keeps the two aligned. Decide the decimal count for the rate. Open the currency format options and find the one that displays that many places. Select it, then compare one sample figure from the price book with the same figure as it appears in the product. If the two differ, check both the format setting and the rate itself, since the mismatch may come from the display format or from a rate rounded before publication, and settle it before launch. Repeating this check after any change to the rate keeps the display and the price in step over time.

Why a payout rejects a value not divisible by 100

Stripe's currency documentation gives a concrete case of an amount that fails. It says: "You can't submit a payout for the full balance, HUF 10.45, because the amount value of 1045 isn't evenly divisible by 100." Stripe documentation The quote shows that the integer form of an amount is a rule in its own right. The value the system accepts has to divide evenly by 100 for that payout, and 1045 does not.

The lesson for a unit price is about the path from the rate to the total. A rate can be exact on the signup page while the total takes a form a downstream system rejects. The amount in the example is HUF 10.45, a value with two decimal places, and its integer form 1045 is the number that fails the divisibility check. A value that reads correctly to a person is not guaranteed to be the value a payment system accepts, so the team should check the integer representation as well as the displayed one.

Three steps follow directly from that rejection. Test the path with a full-quantity example that runs through the same logic a customer's charge follows. Inspect the integer form of the total, not only the decimal form shown to people. Keep the rounding rule in one place so that the price on the page and the amount sent for payment are computed the same way. A mismatch found at this stage costs far less than a payout that fails after the charge has already been taken.

Pricing a usage-based charge on a signup page

Recurly's documentation uses a usage example to show why precision matters, describing a video streaming company that sets a $0.005 for each GB rate exactly and computes the total correctly regardless of consumption. Recurly documentation The sentence does two things. It confirms the rate can be entered at full precision, and it says the total stays correct whatever consumption turns out to be.

For a signup page, the rate line can read "$0.005 for each GB" with no wording that hints at rounding. A prospect who sees the rate and later sees the invoice should find that the two agree. The landing page sets the expectation, and the billing system's job is to honor it.

A usage-based rate differs from a flat fee in one important way. A flat fee is a single amount for each period, but a usage-based rate multiplies by consumption, which varies from customer to customer. Prospects will mentally multiply the rate by their own expected usage, so the precision of the number has to be trustworthy. Keep the rate identical on the page and in the price book, and describe the meter in plain words so the reader knows what is being counted.

A useful test before publishing is to pick a consumption figure a prospect might plausibly enter, multiply the stated rate by it by hand, and compare the result with what the billing system would charge for the same usage. If the two match, the page is doing its job. If they differ, the problem is almost always a rate that was rounded somewhere between the price book and the page.

Comparing decimal places and display formats in a table

Zoho Books ties its display options to the decimal setting. Its currency help page says: "Format: Based on the decimal places you choose, various format options will be displayed." Zoho Books help Stripe's currency documentation shows a different kind of check, one that applies to the integer form of an amount: "You can't submit a payout for the full balance, HUF 10.45, because the amount value of 1045 isn't evenly divisible by 100." Stripe documentation

The table gathers the figures from these sources and the Recurly documentation so the two kinds of check can be compared side by side:

FigureValueWhere it applies
Decimal places allowed on items and add-onsUp to nineRecurly decimal pricing
Example usage rate$0.005Recurly usage example
Divisor in the payout check100Stripe payout example
Example amount in the payout checkHUF 10.45 (integer form 1045)Stripe payout example

The nine-place ceiling limits how precise a price can be. In Stripe's example, the payout amount had to divide evenly by 100. These are separate constraints, and a rate can satisfy one while failing the other. A price with a few decimal places is well inside the ceiling, yet its total still has to pass the integer check.

The Zoho line adds a sequencing point. Because the format options follow from the decimal count, the decimal count should be settled first. Choosing the number of places before selecting a format keeps the displayed figure consistent with the rate that was set.

Which one should you pick?

Recurly's documentation draws the main line for this decision. Decimal pricing is available on usage and non-usage add-ons, as well as on Items including item-backed add-ons, through the Admin Console and the V3 API (2021-02-25). The V2 API, by contrast, "only supports decimal pricing on usage based add-ons at this time." Recurly documentation

The choice follows from the structure of the rate:

  • If the rate is a usage-based add-on, either API version can carry it. The decision then rests on the rest of your integration.
  • If the rate is a non-usage add-on, an Item, or an item-backed add-on, the V3 API is the path the documentation supports.

For most teams, the decision reduces to one question: does the rate belong to a usage meter? A usage-based rate on an integration that already runs on V2 can stay where it is. Any other rate type should be built on V3, because the V2 documentation does not extend decimal pricing to those objects.

The May 7, 2018 condition applies to sites created on or before that date, whichever API path you choose. Settle the API version first, then confirm the account's creation date and the two required settings, and only then publish the decimal rate. Checking the path before the signup page is designed prevents a late change to the flow a prospect sees.

Keeping the displayed total and the charged total aligned

The displayed total on a signup page should match the amount the payment system charges. The Stripe example shows that a value can read correctly to a person and still fail a downstream check. The payout in that example was rejected because the integer form, 1045, was not evenly divisible by 100, even though HUF 10.45 looks like a valid amount. Stripe documentation

Three steps keep the two totals aligned. First, compute the total with one rounding rule, kept in one place, so the page and the payment request use the same calculation. If two code paths round differently, the displayed figure and the charged figure will drift apart over time. Second, check the integer form of the total, not only the decimal form shown to people, since the Stripe rejection depended on that form. Third, make sure the decimal count used for the total matches the decimal count selected in the display settings. The Zoho Books help page notes that the available format options follow from the decimal places chosen, so a mismatch there can make a correct total look wrong to a reader comparing it with a statement. Zoho Books help

A full-quantity test run through the same path a real charge follows will expose both kinds of mismatch. Compare the figure on the page, the figure in the request, and the figure in the account view. If all three agree, the total is aligned.

Launch checks for the signup page

A short checklist, run in order, catches most problems before a unit price goes live:

  • Confirm the API version and object type. A usage-based add-on can use either version; a non-usage add-on, Item, or item-backed add-on needs V3, as the Recurly documentation describes.
  • Confirm the account's creation date. For a site created on or before May 7, 2018, enable Credit Invoices and Only Bill What Changed before any decimal rate is used.
  • Count the decimal places in the rate. The documented ceiling is nine on items and add-ons, so a rate with more places needs to be redefined before publication.
  • Copy the rate from the price book without rewriting it, so the page and the subscription hold identical characters.
  • Set the display format to the decimal count of the rate, using the options that the Zoho Books help page says follow from that choice.
  • Run a full-quantity example and inspect the integer form of the total. The Stripe documentation shows why the integer check matters.

Assign an owner to each item. A checklist with no owners tends to get skipped in the final days before launch, when the pressure to publish is highest.

Related guides: Seat price bands on a landing page: 3 to state up front · 3 price settings for an auto-renewable subscription trial · Card trial costs: 3 parts of a payment form price.

Reader questions

Can I use more than nine decimal places? The Recurly documentation says decimal pricing supports up to nine decimal places on items and add-ons, and it does not describe a higher limit. Plan around nine. If a rate needs more places, redefine the unit before it reaches the signup page.

Does decimal pricing work on the V2 API? Only for usage-based add-ons. The documentation states that the V2 API "only supports decimal pricing on usage based add-ons at this time." Recurly documentation

Does the May 7, 2018 condition apply to every account? The documentation's condition covers sites created on or before May 7, 2018. For later sites, that particular requirement does not appear in the source, so confirm the current setup with the vendor before launch.

Why do the format options change when I change the decimal count? According to Zoho Books, the format options displayed depend on the decimal places chosen. Zoho Books help Set the decimal count first, then select the format.

Why did a payout fail when the amount looked valid? Stripe's example rejected HUF 10.45 because its integer form, 1045, is not evenly divisible by 100. Stripe documentation Check the integer form of every total before it is charged.

Is a usage rate safe to publish at full precision? The Recurly example describes a $0.005 for each GB rate that is set exactly as written, with the total computed correctly regardless of consumption. Recurly documentation

Which path should a flat recurring charge use? Recurly's documentation lists non-usage add-ons among the objects that support decimal pricing through the V3 API dated 2021-02-25. A flat charge attached as a non-usage add-on therefore belongs on V3.

Sources and check date

Related posts

More posts