---
title: "Apply the discount save offer"
method: POST
path: "/api/billing/cancel/apply-discount"
tags: ["billing", "internal"]
---

# Apply the discount save offer

`POST /api/billing/cancel/apply-discount`

Applies the configured Stripe coupon to the subscription. Returns 400
when `STRIPE_SAVE_OFFER_COUPON_ID` is unset.

## Response `200`

Discount applied

- ApiResponseString
  - `data` string — The result payload. Omitted on failure.
  - `error` string, nullable — Human-readable failure message. Omitted on success.
  - `meta` ApiMeta, required — API metadata included in all responses
    - `api_version` integer, required — API version (integer, increments on breaking changes)
    - `server_version` string, required — Server version (semver)
  - `success` boolean, required — `true` when the request succeeded. `false` responses carry `error` instead of `data`.

## Other responses

- `400` — Discount not configured or billing not enabled

---

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