---
title: "Redeem Code"
method: POST
path: "/api/codes/redeem"
tags: ["Access codes"]
---

# Redeem Code

`POST /api/codes/redeem`

## Request

- Base URL: `https://api.earmarkiq.app` (the document declares no server; this is the origin it was published from)
- URL: `https://api.earmarkiq.app/api/codes/redeem`
- Auth: HTTP bearer

Apply a code to the signed-in account.

Response: outcome (granted | link_required | discount_handoff |
attributed), policy, tier, starts_at, ends_at, link_required,
already_subscribed, attribution_recorded, checkout (discounts: the
hand-off into the existing Stripe checkout — see
access_codes.discount_handoff).

Refusals are 4xx with detail={"code", "message"}; code is stable:
invalid 404 · expired 410 · used 409 · revoked 410 · cap_reached 409 ·
already_redeemed 409 · paused 423 · adviser_unavailable 503 · web_only 403.

## Request body

- AppApiCodesRedeemRequest
  - `code` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

## Changes

- **2026-10-19** `4a2c41907105`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/earmarkiq/apis/earmark-api/changes/api/codes/redeem/post.md)

---

[API](https://skmtc.dev/earmarkiq/apis/earmark-api.md) · [All operations](https://skmtc.dev/earmarkiq/apis/earmark-api/llms.txt) · [OpenAPI document](https://skmtc.dev/earmarkiq/apis/earmark-api/revisions/4a2c41907105?raw)
