Saltar al contenido principal
POST
Pay billing periods in advance
This reference describes API version 2026-05-12. Send Commet-Version: 2026-05-12 with your request.

Autorizaciones

x-api-key
string
header
requerido

Encabezados

Commet-Version
string
predeterminado:2026-05-12

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

Parámetros de ruta

id
string
requerido

Cuerpo

application/json
periods
integer
requerido

Active subscriptions: billing periods to add after the last paid period. Pending-payment subscriptions: total billing periods the first payment covers, including the current one.

Rango requerido: 1 <= x <= 60
offerId
string

Offer applied from the first added period for its full configured duration. Active subscriptions only; assign an Offer to a pending-payment subscription with PUT /subscriptions/{id}/offer.

Minimum string length: 1
successUrl
string<uri>

Respuesta

Success

success
any
requerido
data
object
requerido