Versioning

How the API evolves without breaking your integration.

Major version in the path

The major version is part of the URL, for example https://api.hfoods.de/v1/.... Within a major version we never change anything that breaks an existing integration.

What may change within a major version

These changes can happen at any time. Build your integration so that it handles them:

  • new endpoints
  • new optional request fields
  • new response fields
  • new values in enumerations that are explicitly described as extensible
  • new webhook event types, which you have to subscribe to first
  • changed wording of error messages (error codes stay the same)

What never happens without a new major version

  • removing or renaming an endpoint or a field
  • changing the type or meaning of a field
  • making an optional field required
  • changing an error code
  • changing authentication

Every change to the contract is checked automatically for such breaking changes before release.

Deprecation

When we replace an endpoint, we mark it as deprecated in the reference and state the shutdown date. There are at least six months between the announcement and the shutdown. Responses from deprecated endpoints carry the Deprecation and Sunset headers, so you also see it in your logs. A new major version runs in parallel with the old one for at least twelve months.

Maturity levels

LevelMeaning
DraftFor discussion only. Anything may change, nothing is live.
PreviewUsable in test mode. Breaking changes are still possible and are listed in the changelog.
StableReleased. All commitments on this page apply.
DeprecatedKeeps running until the stated date but receives no new features.

On this page