Skip to main content
PUT
Add coupon to subscription

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

organizationId
string
required

ID of organization

Required string length: 36
Pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
Example:

"95b11417-f18f-457f-8804-68e361f9164f"

Body

application/json

User new fields data

coupon
string
required
Maximum string length: 255
Pattern: ^(?=\S)[\p{L}\p{N}a-zA-Z _.,:!?&%@\/+\-'|]+(?<=\S)$
Example:

"An example name"

Response

Success

hasPaymentMethod
boolean
required
planType
enum<string>
required
Available options:
free,
advanced,
enterprise,
standard
inTrial
boolean
required
scope
string[]
required
version
string
required
billingPortalUrl
string
billingPortalAddPaymentMethodUrl
string
trialStart
string<date-time>
trialEnd
string<date-time>
trialDaysLeft
number
currentBillingPeriod
object
shouldLockEnvironmentSwitch
boolean
coupons
object[]
Last modified on January 21, 2026