v62

latestOpenAPI 3.1.0Dual (AGPL3.0, Commercial License Available)raw.githubusercontent.com2026-08-03211303932.5 KB
billing
internal

Apply the discount save offer

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

post/api/billing/cancel/apply-discount

Response

Discount applied

datastring

The result payload. Omitted on failure.

errorstring nullable

Human-readable failure message. Omitted on success.

successboolean required

true when the request succeeded. false responses carry error instead of data.

Example response

{
  "meta": {
    "api_version": 1,
    "server_version": "0.17.7"
  }
}