---
title: "Redeem Trial Code"
method: POST
path: "/api/v1/billing/trial-codes/redeem"
tags: ["trial-codes"]
---

# Redeem Trial Code

`POST /api/v1/billing/trial-codes/redeem`

## Request

- Base URL: `http://localhost:8000`
- URL: `http://localhost:8000/api/v1/billing/trial-codes/redeem`
- Auth: none declared

Redeem a trial code for the current user's company.

This will:
1. Validate the code
2. Record the redemption
3. Update the company's subscription to FREE_TRIAL status with trial_end date

## Headers

- `Authorization` string

## Request body

- RedeemTrialCodeRequest: Request to redeem a trial code.
  - `code` string, required: Trial code to redeem

## Response `200`

Successful Response

- StandardResponse: Standard API response wrapper.
  - `success` boolean, required
  - `data` unknown
  - `message` string, nullable
  - `error` string, nullable
  - `meta` object, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/anomalyarmor/apis/anomalyarmor-api.md) · [All operations](https://skmtc.dev/anomalyarmor/apis/anomalyarmor-api/llms.txt) · [OpenAPI document](https://skmtc.dev/anomalyarmor/apis/anomalyarmor-api/revisions/51c755fb5d0b?raw)
