Skip to main content
POST
cURL
Create a new add-on linked to a feature. Each feature can only be assigned to one add-on.

Autorizaciones

x-api-key
string
header
requerido

Encabezados

Idempotency-Key
string

Unique key used to safely retry this write for 24 hours without applying it twice.

Required string length: 1 - 200
Commet-Version
string
predeterminado:2026-08-27

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

Cuerpo

application/json
name
string
requerido
Required string length: 1 - 100
basePrice
integer
requerido
Rango requerido: 0 <= x <= 9007199254740991
featureId
string
requerido
Minimum string length: 1
consumptionModel
string
requerido
Allowed value: "boolean"
description
string
Maximum string length: 255

Respuesta

Success

id
string
requerido
name
string
requerido
slug
string
requerido
description
string | null
requerido
basePrice
integer
requerido
Rango requerido: -9007199254740991 <= x <= 9007199254740991
featureCode
string
requerido
featureName
string
requerido
createdAt
string<date-time>
requerido
updatedAt
string<date-time>
requerido
consumptionModel
enum<string>
requerido
Opciones disponibles:
boolean,
metered,
credits,
balance
includedUnits
integer | null
requerido
Rango requerido: -9007199254740991 <= x <= 9007199254740991
overageRate
integer | null
requerido
Rango requerido: -9007199254740991 <= x <= 9007199254740991
creditCost
integer | null
requerido
Rango requerido: -9007199254740991 <= x <= 9007199254740991
object
string
requerido
Allowed value: "addon"
livemode
boolean
requerido