Skip to Content
Payrudder

Meters, packages and pricing in the console

Set up what you measure, what you sell and the money rules around it: tax, payment retries and coupons.

A price in Payrudder has three parts: what is measured (meters), what is sold (packages and their versions), and the money rules around them (tax, payment retries, coupons). This page shows where each is set in the console. The order of the API calls is in the usage-based billing guide; the calls themselves are in the API reference.

Every name in bold is a string of the English console. The page was written from the console's texts and its code, not by following it on a screen with a person. Where they differ, the console is right.

Meters

Under Usage and products, open Meters: A meter says what is measured and how usage events add up. A new version of a code can change everything except its decimal places; events are checked against the latest one.

A meter is needed before a package can price or limit usage.

Create a meter

New meter asks for:

Codetext

What your app sends as the meter_code of an event (for example api_calls).

Aggregationchoice

How the events of a period add up.

ChoiceWhat it does
SumAdds up the quantity of every event in the period
CountCounts the events and ignores their quantity
MaximumKeeps the highest quantity reported in the period (seats, storage)
Distinct valuesCounts how many different values of one event property appeared (active users)
Latest valueKeeps the quantity of the most recent event of the period (seats at the end of the month)
Quantity propertytext

The event property that holds the quantity.

Unit, Category, Decimal placestext

A Unit, a Category of your own, and the Decimal places, which are fixed for a code.

Only events withconditions

Conditions on event properties. Events that do not match every line are not counted. Empty counts every event.

Publish version adds a new version of a code.

A distinct-values or latest-value meter keeps that aggregation in every version. Use a new code to change it.

More on events and periods is in Usage metering.

Packages

Packages: Publishing a package that exists adds a new version. A version is fixed once published; subscriptions keep the version they started on. A change of price is therefore always a new version, never an edit.

Create a package

Name it and set the fee

New package takes a Code, a Name and the Fixed fee per month in the account's currency. Use Add a fee in another currency for other currencies, each monthly or yearly.

Price usage

Usage prices: prices are in the account's currency, for what is measured, per billing period. An included quantity is free; the price applies to what is above it.

Per meter you choose a model:

  • Per unit.
  • Graduated tiers: each tier has an upper bound, a unit price and an optional flat fee. The last tier is Everything above.
  • Per package of units.

A subscription in another currency needs usage prices in it too.

Set limits

Limits: A quota limits a meter over a window. Usage events are never refused: the API's allowed flag and the alerts tell your app what to do.

A limit has a window, a mode (hard, soft or notify only) and alert percentages. A soft limit bills what is over it, so its meter needs a usage price.

Add a trial or a free tier (optional)

  • Free trial in days (optional): A subscription to this package starts trialing for this many days, with no card; the first fee is invoiced when the trial ends. A few days before it ends the customer is e-mailed and a subscription.trial_will_end webhook event is sent.
  • Charge the first period from the end of the trial: when a trial ends in the middle of a billing period, only the rest of the period is charged.
  • Free tier: no fixed fee, only the limits you set.

Publish

Publish version makes the version.

The same is POST /v1/plans and POST /v1/plans/{code}/versions.

Move customers to a new version

Moving customers from one version to another is Schedule a price change: Moves the customers of one version to another at their next renewal and tells each of them by mail, in their language. Nothing changes before then.

  • The notice is at least 14 days. It is longer for a customer in a country where the platform keeps a longer minimum: a table the operator edits, not legal advice.
  • The optional Start from (optional) makes each subscription move on its first renewal from that date instead of its next renewal. A yearly plan can wait months for it.
  • The dialog lists what it will do and which subscriptions it leaves alone and why: they renew too soon, already have a change waiting, are run by a payment provider, or belong to a blocked customer.

The same is POST /v1/plans/{code}/price-changes.

Tax

The page named Tax holds two settings: the tax rates, then what happens after a declined charge.

Tax rates

Tax: Payrudder adds these rates on top of the price to the invoices it raises, by the customer's country (the rate without a country covers all others). You set the rates and are responsible for them; an invoice a provider issues is taxed by the provider.

Add a rate per country (and Every other country) with a name and a percentage, then Save rates. The same is PUT /v1/tax-rates.

Payrudder is not a tax engine. See Tax and e-invoices.

Payment retries and chargebacks

Payment retries and chargebacks: When a charge is declined, Payrudder tries again after each delay below, then gives the invoice up as uncollectible. Delays are in hours (minutes in a sandbox account).

  • Up to six retries, each a whole number of hours from 1 to 720. With none set, the standard delays are shown.
  • Switch on Block the customer when a chargeback opens to block a customer, with the category chargeback, as soon as their bank opens a dispute (no new purchases, open invoices can no longer be paid). It never lifts by itself: you lift it on the customer. An inquiry does not block.

Then Save settings. The same is /v1/dunning-settings. How retries play out is in Dunning.

Coupons and promotion codes

Coupons: A coupon takes a percentage or an amount off the fixed fee Payrudder invoices in advance: once, for a number of periods, or for as long as the subscription lasts. A subscription run by a provider uses a discount at the provider instead.

The duration is First fee only, A number of fees or Every fee, with an optional Redemptions limit. A coupon cannot be switched on again once deactivated.

Promotions: A coupon says what is taken off. A customer types a promotion code: many codes can point to one coupon, each with its own limit, expiry and rules.

  • Codes are named one per line or generated.
  • Each can be limited to a number of uses, an expiry, a minimum amount, currencies, plans, First purchase only or Once per customer.
  • Redemptions lists every use. A void or a full refund reverses it.

The API is /v1/coupons and /v1/promotion-codes.

Next steps