Skip to content
StraventaDocs
Guides

API Versioning

Version-in-path policy, deprecation timeline, and breaking change rules for the 505pay API

API Versioning

505pay uses a version-in-path strategy. The current stable version is v1.

Version in path

The API version is the first segment of every endpoint path:

https://sandbox.505pay.link/v1/payments
https://api.505pay.link/v1/me
https://api.505pay.link/v1/token

When a new major version is released, it is served at a new path prefix (/v2/...) while the previous version continues to operate at its existing prefix. You can migrate at your own pace within the deprecation window.

What constitutes a breaking change

Breaking changes require a new major version (v1v2). The following are always treated as breaking:

  • Removing an endpoint
  • Removing a required or optional request field
  • Removing a response field
  • Changing the type or format of an existing field
  • Changing the semantics of an existing status code
  • Changing stable error code strings
  • Altering pagination envelope field names

The following are not breaking changes and may be introduced without a version bump:

  • Adding new optional request fields
  • Adding new response fields (your code should ignore unknown fields)
  • Adding new endpoints
  • Adding new error codes
  • Expanding enum values (unless you do exhaustive matching — avoid this)
  • Performance improvements with identical observable behavior

Design your integration to ignore unknown JSON fields. This allows 505pay to add new response fields without requiring changes on your end.

Deprecation timeline

PhaseDurationAction
AnnouncementDay 0Deprecation notice published in changelog and docs; Sunset header added to deprecated responses
Active deprecation6 monthsOld version remains fully functional; Deprecation response header warns on each call
End of lifeDay 180+Old version returns 410 Gone for all endpoints

The minimum notice period is 6 months from announcement to end of life. Critical security fixes may shorten this window with advance notification.

Deprecation headers

During the active deprecation period, responses from a deprecated version include:

Deprecation: true
Sunset: Sat, 30 Nov 2026 00:00:00 GMT
Link: <https://docs.505pay.link/docs/guides/versioning>; rel="deprecation"

Monitor these headers in your API client to detect upcoming deprecations before they affect your integration.

Current versions

VersionStatusEnd of life
v1Current (stable)Not scheduled

Migration guidance

When a new version is released:

  1. Read the changelog for the new version — it lists all breaking changes and their replacements.
  2. Test your integration against the new version in the sandbox (https://sandbox.505pay.link/v2/...).
  3. Deploy the updated integration before the old version's Sunset date.
  4. Monitor the Deprecation and Sunset response headers in your logging pipeline.

Changelog

The full API changelog is maintained at docs.505pay.link/docs/changelog. Subscribe to release notifications via the developer dashboard.

Was this page helpful?

On this page