Skip to Content
Payrudder

Versioning

What carries a version in Payrudder, what does not, and what you can rely on when something changes.

This page describes what exists today; it is not a compatibility promise.

The owner has not decided a versioning and deprecation policy (plan 19 lists it as a decision), so where a rule is missing the page says so.

WhatVersionWhere it is
Platformv0.1.0, the first releasethe change log
Tenant APIv1, in the pathevery route starts with /v1
SDKs and command line0.1.0, one number for alleach SDK's CHANGELOG.md
Plansnumbered, immutable versionsGET /v1/plans/{code}/versions/{version}
Metersversions per codeevents are checked against the latest
Agreementsnumbered versions, material or minorContracts
Payment providers' APIspinned per providerbelow

The API

  • One version, in the path. Every route of the tenant API starts with /v1, and the OpenAPI file says version: v1. A request never names a version: there is no version header, no date-based version and no per-account default, and a webhook body has no API version field.
  • Nothing is deprecated, and no sunset is announced. No route, field or header carries a deprecation marker, and the API sends no Deprecation or Sunset header.
  • What keeps a change from breaking you today. The OpenAPI file and the gateway's routes are held equal by a test that fails when a route is missing from either side. The four SDKs and the console's types are generated from the file, and a check fails when a generated file is stale. A pull request that removes or renames a field of the messages the API is built on fails buf breaking (wire and JSON compatibility) in CI. A commit that breaks the API or an event schema is written with a ! and a BREAKING CHANGE: footer.
  • Releases. v0.1.0 is the first release of the platform. The change log lists each release and the merged pull requests it shipped, by title.
  • What is not written down. An architecture decision says a renamed error key is a breaking change that "follows the API's deprecation rule", but no deprecation rule (how long a route or field is kept, how you are told) is written anywhere in the repository. Until it is, read the change log before you upgrade.

Error keys

Each error carries a stable error.key (Errors); translate the key, not the message. A key is part of the API: renaming one counts as a breaking change. The list of keys is generated from the code (docs/error-keys.md) and checked by a test, and the console has a message for each.

Webhook events

The event envelope is exactly id, type, created, tenant_id and data (Webhooks), and there is no version in the body.

The repository does not promise that the set of event types, or the fields in data, stay as they are: events have been added (the list in Webhooks grows with the product), and the SDKs type the envelope but leave most data payloads untyped.

A receiver that ignores a type it does not know and a field it does not use is the safe one. That is advice, not a documented guarantee.

SDKs and the command line

The four SDKs (TypeScript, Python, Go, PHP) and the payrudder command line share one version number (a default, not agreed) and are released together. Each keeps a CHANGELOG.md in the Keep a Changelog format and says its version numbers follow Semantic Versioning.

The SDKs are at 0.1.0. The TypeScript SDK is published to npm as @payrudder/sdk; Python, Go and PHP carry the same version and are used from a checkout until they are published. node scripts/sdk-release.mjs check verifies that the version is the same in every place it is written and that a 0.0.0 package cannot be published. The publish workflow can only be started by hand, is a dry run unless that is switched off, and refuses 0.0.0.

One method exists for each operation of the OpenAPI file, so an SDK upgrade follows the API's changes: a new operation is a new method, and a removed one a removed method. See SDKs.

Plan versions

A package is a code and a series of numbered, immutable versions (GET /v1/plans/{code}/versions/{version}, where latest is allowed). Publishing a package that exists adds a version; a published version is never edited. A subscription keeps the version it started on, so a change of price reaches existing customers only when you move them.

Moving them is a price change (POST /v1/plans/{code}/price-changes): the subscriptions of one version move to another at their next renewal, no sooner than the notice you give (default 30 days, at least 14, at most 365), and each customer is told by mail in their language.

See Pricing in the console.

Meter versions

A meter is a code with versions. A new version can change everything except its decimal places, and a distinct-values or latest-value meter keeps that aggregation in every version. Events are checked against the latest version of the meter.

Agreements (contracts)

The agreements a seller shows its customers have numbered versions, each marked material or minor. A customer accepts a version; POST /v1/subscriptions is refused until the customer has accepted the current version of each required kind (Contracts).

Providers' API versions

Payrudder pins the version of each payment provider's API it talks to:

ProviderPinned version
Stripeevery request carries Stripe-Version: 2026-09-30.endive (a Stripe account's default version moving does not change what the adapter reads)
Paddleevery request carries Paddle-Version: 1
iyzicothe API has no version header

The provider guides (Stripe, Paddle, iyzico) say what was read from each provider's documentation and what is UNVERIFIED.

This documentation

The site documents one API version, the current one: v1, the version of the OpenAPI file it is built from.

Default (not agreed): when a second path version exists, the pipeline publishes the frozen site of the old version under its own address (/v1/) and the current one at the root, with a link between them. Until then there is nothing to switch between.

An address that was published keeps working. A page that is renamed or removed leaves a redirect at its old address, and a test fails when a page of the site disappears without one (docs-site/pages.txt lists every address the site has had).