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

Get Coupon - View Discount Code Details via API

Retrieve a discount coupon by its ID to display or audit its configuration and usage.

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

Authorization

Bearer API KeyRequired

API key scope: coupons:read (required for restricted keys).

Path Parameters

project_idstringrequired

The unique identifier of the project.

coupon_idstringrequired

The unique identifier of the coupon.

Note

Response examples use the UTC ISO date format.

Coupon decimal fields are returned as strings. Values such as "1e-7" are normalized to "0.0000001", but higher-precision values such as "5e-19" can retain exponent notation. Read values are not rounded to the 18-fractional-digit input limit. Creating, updating or cloning a coupon must satisfy the decimal input rules.

Last updated: