---
title: "Redeem a license key to activate a free plan."
method: POST
path: "/api/v1/billing/redeem-license"
tags: ["Facturation & Abonnements"]
---

# Redeem a license key to activate a free plan.

`POST /api/v1/billing/redeem-license`

## Request

- Base URL: `https://erp.eyeot.fr/api/v1`
- URL: `https://erp.eyeot.fr/api/v1/api/v1/billing/redeem-license`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

Redeem a license key to activate a free plan.

    Body: { code: string }

    Returns:
    - 200 with redemption details on success
    - 400 with `detail` for invalid / expired / already-used codes
    - 409 with `detail` + `extensions.{paid, used, org_id}` if the key is a
      team_plan and the target org has no free seat — the activation page
      uses these counts to render an actionable error.

## Response `200`

Succès — payload `{data, meta}` (cf. API-GUIDE §3.1)

## Other responses

- `201`: Ressource créée. ID dans `data.id`.
- `400`: Validation Marshmallow échouée. `errors` détaille chaque champ invalide.
- `401`: JWT manquant, expiré ou révoqué.
- `404`: Ressource introuvable (ou cross-tenant — équivalent à hidden).
- `409`: État incohérent (email dupliqué, ressource déjà dans cet état, etc.).
- `422`: Validation Marshmallow échouée. `errors` détaille chaque champ invalide.
- `429`: Trop de requêtes. Honorer le header `Retry-After` (secondes).

---

[API](https://skmtc.dev/eyeot/apis/eyeot-erp-api.md) · [All operations](https://skmtc.dev/eyeot/apis/eyeot-erp-api/llms.txt) · [OpenAPI document](https://skmtc.dev/eyeot/apis/eyeot-erp-api/revisions/42ab95222a89?raw)
