> ## Documentation Index
> Fetch the complete documentation index at: https://docs.compago.com/llms.txt
> Use this file to discover all available pages before exploring further.

# API versions

> How the developer API is versioned, how your integration is pinned to a version, and how to try a newer one.

Every endpoint of the developer API lives under one base path:

```
https://api-harmony.compago.com/api/developer/v1
```

`v1` only changes if the API is rebuilt from scratch. Inside `v1`, breaking changes ship as **dated versions**. The current version is `2026-11-01`.

## Your integration is pinned

The first request an API key (or an installed app) makes to the developer API pins it to the current version. From then on it always gets the request and response shapes of that version, even after newer versions ship. Nothing changes for your integration until you decide to upgrade.

Every response says which version answered it:

```http theme={null}
Compago-Version: 2026-11-01
```

## Choosing a version per request

Send the `Compago-Version` header to answer a single request in another version, for example to test a newer one before you upgrade:

```bash theme={null}
curl https://api-harmony.compago.com/api/developer/v1/payment \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Compago-Version: 2026-11-01"
```

A version that does not exist answers `400`:

```json theme={null}
{
  "message": "Unknown Compago-Version \"2020-01-01\". Use one of: 2026-11-01.",
  "code": "INVALID_API_VERSION"
}
```

## What counts as a breaking change

These ship as a new dated version, so a pinned integration never sees them:

* Removing or renaming a field, a parameter or an endpoint.
* Changing the type or the meaning of a field.
* Making an optional parameter required.

These ship to every version, so build your integration to accept them:

* New endpoints.
* New optional parameters.
* New fields in a response.
* New values in a field that lists statuses or types (treat an unknown value as "other").
* New error `code` values.

## Older paths

Some endpoints were published before the developer API had its own base path, for example `POST /api/payment-intent` or `POST /api/one-time-payment`. They keep working exactly as before. Use the same endpoint under `/api/developer/v1` (`POST /api/developer/v1/payment-intent`) in new code; we will write to you well in advance before any older path stops answering.

Every answer from an older path says so in its headers, and only there: the body is exactly what it always was, so an integration that validates the JSON keeps working.

```http theme={null}
Deprecation: @1793923200
Link: <https://docs.compago.com/get-started/versioning#older-paths>; rel="deprecation"; type="text/html", </api/developer/v1/payment-intent/2f6c...>; rel="successor-version"
```

`Deprecation` ([RFC 9745](https://www.rfc-editor.org/rfc/rfc9745)) is the date the path was deprecated, and the `successor-version` link is the same call under `/api/developer/v1`. Once a date is set for an older path to stop answering, its answers also carry a `Sunset` header ([RFC 8594](https://www.rfc-editor.org/rfc/rfc8594)) with that date.

The list and read endpoints under `/api/developer/v1` (`GET /api/developer/v1/one-time-payment`, `GET /api/developer/v1/payment-method/{id}`, and the rest) answer in the developer API's own format, with [cursor pagination](https://docs.compago.com/core-concepts/pagination.md), so check their reference when you move those calls.

## Credentials

Every endpoint accepts your API key in the `x-api-key` header. An [installed app](https://docs.compago.com/odoo/overview.md) can also call the endpoints that create, cancel or refund charges with its access token (`Authorization: Bearer ...`). Reading payments, subscriptions, catalogue and organization data needs an API key.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.