# Versioning

The version is in the path: `/v1`. **`/v1` only grows.** Code written against it today keeps working.

## What may change within `/v1`

- **New fields** in answers, and new optional parameters and body fields.
- **New operations**, and new [webhook](https://lupeno.com/developers/guides/webhooks) event types (an endpoint hears only the types it chose).
- **New values in an enum**: an order state, a ticket status, an error `code`.
- **Human-readable text**: `title` and `detail` of an error, descriptions in the reference.

So: **ignore fields you do not know, and handle an enum value you do not know** (treat an unknown order state as "not paid", say) rather than failing on it. Parse leniently; branch on `code`, never on wording. The SDK's types are regenerated with each release; an older SDK simply does not know the newest fields.

## What never changes within `/v1`

- A field is never removed, renamed or given another type or meaning.
- A parameter or body field never becomes required.
- An operation's path, its scopes and its authentication never change.
- An error's `code` and status never change for the same situation.

A change that would break any of these is a new version, `/v2`, published beside `/v1` with a long overlap and a migration guide. There is no `/v2` planned.

## The baseline

These promises hold from **1.1.0** (`info.version`, 24 November 2026): what `/v1` was then is what it keeps. The 1.0.0 published with the first SDK in October 2026 changed in ways this page would not allow — the [changelog](https://lupeno.com/developers/changelog) lists them.

## Conventions

So that one helper and one error handler serve the whole API:

- **Money** is integer minor units beside a `currency` code: `totalMinor` with `currency` on an order, `unitPriceMinor` on its items (the order's currency). A tier's `price` is the one exception, a `Money` object (`{ amountMinor, currency }`).
- **Times** in answers are ISO 8601 UTC, ending in `Z`. A time you send (`endsAfter`) may be UTC or carry an offset (`2026-11-24T10:00:00+01:00`).
- **Mode.** Orders, tickets, refunds and webhooks say `mode: "live" | "test"`. An `Event` has no mode of its own, so it carries `testMode` (whether it is in test mode now) instead.
- **People.** A ticket's holder is a `holder` object (`null` while it admits under the buyer's name); an attendee row carries `name` and `email` flat, a check-in `name` alone.
- **Credit notes** carry a positive `totalMinor`: the amount credited; `kind: "credit_note"` says it goes back.
- **Errors.** Validation is `422 request.validation_failed` with `errors`; a malformed request (a bad cursor, a path id that is not a UUID, a missing `Idempotency-Key`) is `400`. Not found is `404 not_found`; a path that does not exist, `404 http.404`. See [Errors](https://lupeno.com/developers/guides/errors).

## Keeping up

Every change is in the [changelog](https://lupeno.com/developers/changelog), each with its `info.version`. The machine-readable description at [`api.lupeno.com/openapi.json`](https://api.lupeno.com/openapi.json) always matches what the API serves; its `info.version` is the SDK's version. Webhook bodies name the version that shaped them (`apiVersion: "v1"`).
