# Versioning

> How the /v1 path and the TapPay-Version date keep your integration working when the API changes.

Source: https://docs.tappay.mn/concepts/versioning/

## Overview {#overview}

The TapPay API has two version parts. The path starts with `/v1`. A date in the `TapPay-Version` header picks the exact behavior. A change that could break your code always gets a new date, so your integration keeps working until you choose to move.

## The TapPay-Version header {#the-tappay-version-header}

Send the [API version](https://docs.tappay.mn/glossary.md#api-version) as a date in the `TapPay-Version` header, for example `2026-09-27`. TapPay answers with the behavior of that date. Every example in these docs sends this header.

If you send no header, TapPay uses the first version, `2026-09-27`. It does not move to newer versions. The reference shows the latest version first, so pin the header in your code.

## Versions per endpoint {#versions-per-endpoint}

Each endpoint has its own version history. A new date changes only the endpoints that really changed. The [reference](https://docs.tappay.mn/reference.md) lists every endpoint.

## What counts as breaking {#what-counts-as-breaking}

A breaking change gets a new date. Examples are removing a field, changing a field type or changing what a status means. Adding a new field or a new endpoint is not breaking, so your code must ignore fields it does not know.

Every version is listed in the [changelog](https://docs.tappay.mn/changelog.md), with its breaking changes, additions and deprecations.

## Deprecated endpoints {#deprecated-endpoints}

A deprecated endpoint still works. The reference marks it with a badge and a link to its replacement. The changelog lists it under Deprecated for the version where it was marked.

## Versions of webhook endpoints {#versions-of-webhook-endpoints}

A [webhook endpoint](https://docs.tappay.mn/glossary.md#webhook-endpoint) has its own `apiVersion`. TapPay uses it when it describes [events](https://docs.tappay.mn/glossary.md#event) for that endpoint. Set it when you create the endpoint with [Create a webhook endpoint](https://docs.tappay.mn/reference/webhook-endpoints/create.md).

This keeps your webhook handler stable while you move your API calls to a new date. Read more about events in [Events](https://docs.tappay.mn/concepts/events.md).
