Saltar al contenido principal
POST
Create plan experiment
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
prices
object[]
requerido
currencies
object[]
requerido

Currencies the current version does not sell, with the exchange rate (local units per USD) used for the amounts not listed, credit purchases, add-ons and overage.

code
string
requerido

The experiment's own code: lowercase letters, numbers, hyphens and underscores. It is sold as planCode <plan code>:<code> and is never reused in the plan.

maxPlanCredits
integer | null

Credits plans that roll over unused credits: the most plan credits a subscription can hold. Null removes the cap.

Rango requerido: 1 <= x <= 2147483647
maxPlanBalance
integer | null

Balance plans that roll over unused balance: the most plan balance a subscription can hold, in USD cents. Other currencies convert it with the plan's exchange rate unless the dashboard sets a custom amount for that currency. Null removes the cap.

Rango requerido: 1 <= x <= 2147483647

Respuesta

Success

success
any
requerido
data
object
requerido