---
title: "validate discount"
method: POST
path: "/discount/validate"
tags: ["discount"]
---

# validate discount

`POST /discount/validate`

validates the provided discount code

## Request body

- ValidateDiscountRequest2
  - `discount_code` string, required
  - `offer_id` string, regexp, required — Offer ID to validate this discount code against

## Response `200`

OK response.

- ValidateResponseBody
  - `is_valid` boolean, required

## Other responses

- `400` — BadRequest: Bad Request response.
- `401` — Unauthorized: Unauthorized response.
- `403` — InvalidScopes: Forbidden response.
- `422` — InvalidDiscountCodeError: Response for discount code error

---

[API](https://skmtc.net/topi/apis/topi-public-api.md) · [All operations](https://skmtc.net/topi/apis/topi-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/topi/topi-public-api/revisions/f4208dbc3eb3/schema)
