internal

Apply discount save offer

Changed on

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

post/api/billing/cancel/apply-discount

Request

  • Base URL
    https://app.scanopy.net
  • URL
    https://app.scanopy.net/api/billing/cancel/apply-discount
  • Auth
    • API key in header Authorization
    • or API key in cookie session_id

Response

Discount applied

datastring

The result payload. Omitted on failure.

errorstring nullable

Not sent on a successful response. Failure messages arrive in an ApiErrorResponse.

successboolean required

Always true on a successful response.

Example response

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

Changes