curl --request GET \
--url https://api.botsubscription.com/v1/endpoint \
--header 'Authorization: Bearer sk_live_•••'List Coupons - View All Discount Codes for Your Bot
Get all discount codes configured for your subscription bot. Filter by status (active or archived), search by code, name, or description, or find coupons that apply to specific plans. Each coupon includes redemption statistics and configuration details.
Authorization
API key scope: coupons:read (required for restricted keys).
Path Parameters
project_idstringrequiredThe unique identifier of the project.
Query Parameters
limitintegerNumber of items per page (1-100). Default: 10
offsetintegerNumber of items to skip. Default: 0
statusstringFilter by status: active or archived
auto_applybooleanFilter by auto-apply setting
searchstringFree-text match against code, name, and description
plan_idstringOnly return coupons whose plan_ids include this plan
orderstringSort order by created_at: asc or desc
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.