Skip to Content
Payrudder

Packages and plans

What a customer buys: a package code, its immutable versions, and how customers move between versions.

What a customer buys is a package. The console says package, the API says plan: they are the same thing (/v1/plans). A package is a code and a series of numbered versions. The version holds the money.

Package and version

Create the package

POST /v1/plans makes the package: a code (what your app uses to refer to it) and a name. Nothing is priced yet.

Publish a version

POST /v1/plans/{code}/versions publishes the next version, numbered 1, 2, 3, and so on.

Read it back

GET /v1/plans/{code}/versions/{version} reads one back, by number or as latest.

A published version is immutable: a change of price is a new version, never an edit.

What a version holds

Which version a customer is on

A subscription keeps the version it started on. Publishing a new version changes nothing for the customers already subscribed. A new subscription gets the latest unless it names a version.

To move existing customers, schedule a price change with POST /v1/plans/{code}/price-changes:

  • It moves the subscriptions of one version to another at their next renewal, no sooner than the notice you give (default 30, at least 14, at most 365 days).
  • Each customer is told by mail in their language.
  • dry_run counts and changes nothing.
  • Subscriptions that cannot be moved are listed in skipped with the reason.
Reason in skipped
renews_soon
has_pending_change
run_by_provider
not_changeable
customer_blocked

See Subscriptions for what happens to one subscription and Versioning for the other versions in the product.

What a package does not do

  • It does not hold the customer's tax: the account's tax rates are applied to every invoice by the customer's country (Tax and e-invoices).
  • It cannot be archived or deleted through the API. A package stays listed (GET /v1/plans, which is not paged) and a version stays readable, because subscriptions refer to it.
  • A discount is a coupon on a subscription, not part of the version (POST /v1/subscriptions/{id}/coupon). It takes something off a fixed fee that Payrudder invoices in advance.

In the console this is the Packages page.

Next steps