---
title: "Check a promo code before paying and see the discount it gives"
method: POST
path: "/api/v1/workspaces/{workspaceId}/billing/promo"
tags: ["Billing"]
---

# Check a promo code before paying and see the discount it gives

`POST /api/v1/workspaces/{workspaceId}/billing/promo`

## Request

- Base URL: `https://otprun.com`
- URL: `https://otprun.com/api/v1/workspaces/{workspaceId}/billing/promo`
- Auth: HTTP bearer

## Path parameters

- `workspaceId` integer, required

## Request body

- PromoCheckInputBody
  - `code` string, required

## Response `200`

OK

- PromoCheckBody
  - `amount_off` integer, required: Discount in US cents
  - `code` string, required
  - `expires_at` string, date-time, nullable, required
  - `kind` 'percent' | 'amount', required
  - `percent` integer, required
  - `plans` string[], nullable, required: Empty for every paid plan

## Other responses

- `403`: Forbidden
- `404`: Not Found
- `409`: Conflict
- `422`: Unprocessable Entity
- `500`: Internal Server Error

---

[API](https://skmtc.dev/otprun/apis/otp-run-api.md) · [All operations](https://skmtc.dev/otprun/apis/otp-run-api/llms.txt) · [OpenAPI document](https://skmtc.dev/otprun/apis/otp-run-api/revisions/43d40d5f4050?raw)
