Versioning and deprecation
What can change in the API, how you are told, and how much notice you get.
API versions#
The API is version 1, at /v1. Within a version, changes are additive only. A breaking change needs a new version.
What counts as a breaking change#
Removing or renaming an operation, parameter, field or header, or changing what an existing value means, is a breaking change. These are not: a new optional parameter, a new response field, a new error type or a new enum value.
Write tolerant clients#
Ignore response fields you do not know. Treat an unknown error type by its HTTP status (The error body).
Notice periods#
| Change | Notice |
|---|---|
| A breaking change to the API | 12 months |
| A model retirement | 90 days |
| A price change | None: prices follow our suppliers' prices and can change at any time |
| A new gateway release | At least 7 days before it serves traffic; security fixes may be faster and are marked |
Changes are announced in the changelog and by email to the organizations they affect; a price change is shown in the public price list (Price changes). A model that will retire shows its status and retires_at in the catalog. A gateway release is on the release list before it serves traffic, and old and new releases are both valid during a rollout.
Receipt and attestation formats#
Receipts and attestation documents name their format in the format field: panward.receipt/1 and panward.attestation/1. A new value in an existing field is a format addition and leaves earlier receipts valid; the value tls of the upstream channel was added this way (The upstream channel). A receipt stays checkable with Warden for as long as it is retained.