Skip to main content
PUT
Update promo code
This reference describes API version 2026-07-11. Send Commet-Version: 2026-07-11 with your request.

Authorizations

x-api-key
string
header
required

Headers

Commet-Version
string
default:2026-07-11

API version used by this reference. Send this header to select this contract explicitly.

Path Parameters

id
string
required

Body

application/json
billingInterval
enum<string> | null
Available options:
weekly,
monthly,
quarterly,
semiannual,
yearly,
one_time
maxRedemptions
integer | null
Required range: 0 < x <= 9007199254740991
expiresAt
string<date-time> | null
active
boolean
planIds
string[]
firstPurchaseOnly
boolean

Whether the code only applies to a customer's first purchase: one with no paid invoice above zero and no paid subscription.

Response

Success

success
any
required
data
object
required