Skip to main content

Versioning and deprecation

The version is part of the path: /api/public/v1.

What can change within v1​

Within a version, changes are backward compatible:

  • new endpoints
  • new optional request fields and query parameters
  • new response fields
  • new values in fields documented as open-ended, such as error type or product_type

Write your client to ignore fields it does not know.

Breaking changes​

A breaking change, such as removing or renaming a field or changing a meaning, ships as a new version, /api/public/v2, alongside v1.

When a version is going away, its responses include:

Deprecation: true
Sunset: Sat, 01 May 2027 00:00:00 GMT

The changelog announces it with a migration guide, at least six months before the sunset date.