CartirraAPI
Get API keys

Core concepts

Versioning

The version is in the path. Within v1 we only add things, and anything removed is announced with Deprecation and Sunset headers first.

The API version is part of every path: /v1/…. This documentation covers v1, the current version.

What can change within v1

We only make additive changes, which your integration must tolerate:

  • new endpoints;
  • new optional request fields and query parameters;
  • new fields in responses;
  • new values in enums, such as a new order status or event type;
  • new error codes;
  • new webhook event types (you only receive the ones Cartirra sends today unless you handle more).

Write clients that ignore unknown fields and handle unknown enum values gracefully, for example by logging and skipping them.

What never changes within v1

  • Removing or renaming an endpoint, field or error code.
  • Changing a field's type or meaning.
  • Making an optional field required.

Deprecation

When something in v1 will go away in a later version, its reference page marks it deprecated, and its responses carry:

  • Deprecation: true;
  • Sunset: <date>: the earliest date it may stop working, at least six months later.

Every change is listed in the changelog. The OpenAPI document's info.version follows semantic versioning: minor for additions, patch for fixes and documentation.