Dashboard
APIUpdate Coupon API - Modify Discount Settings | BotSubscription
api.botsubscription.com
GET/v1/endpoint
AuthenticationBearer
Token
Stays in this tab. Required for this endpoint — the value below is what gets sent.
Mock
curl --request GET \
  --url https://api.botsubscription.com/v1/endpoint \
  --header 'Authorization: Bearer sk_live_•••'

Update Coupon - Modify Discount Code Settings via API

Modify an existing discount coupon's settings. Change the discount amount, update targeting rules, toggle auto-apply, or archive the coupon to stop new redemptions. Only the fields you include in the request body are updated.

PATCH/v2/projects/{project_id}/coupons/{coupon_id}

Authorization

Bearer TokenRequired

Path Parameters

project_idstringrequired

The unique identifier of the project.

coupon_idstringrequired

The unique identifier of the coupon.

Request Body

display_namestring

Display name for the coupon.

descriptionstring

A description of the coupon.

percentagenumber

The discount percentage (for percentage type coupons).

amountnumber

The fixed discount amount (for fixed type coupons).

auto_applyboolean

Whether to auto-apply this coupon.

statusstring

Coupon status: active or archived.

invitee_modestring

Who can use: all, new_users, existing_users.

renewal_constraintstring

When applicable: any, first_payment, renewals.

plan_scopestring

Which plans: all or specific.

metadataobject

Custom metadata for the coupon.

Last updated: