Saltar al contenido principal
PUT
Update promo code
This reference describes API version 2026-06-10. Send Commet-Version: 2026-06-10 with your request.

Autorizaciones

x-api-key
string
header
requerido

Encabezados

Commet-Version
string
predeterminado:2026-06-10

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

Parámetros de ruta

id
string
requerido

Cuerpo

application/json
billingInterval
enum<string> | null
Opciones disponibles:
weekly,
monthly,
quarterly,
semiannual,
yearly,
one_time
maxRedemptions
integer | null
Rango requerido: 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.

Respuesta

Success

success
any
requerido
data
object
requerido