Create subscription
Create a subscription for a customer. Commet selects the default price when priceId is omitted and resolves its market from the customer’s billing country. Without an offer override, Commet applies the price’s automatic introductory Offer. Pass offerId to apply an active compatible Offer directly, or cardPromotionId to preselect a card-eligible Promotional Offer for the initial checkout when card promotions are enabled for the organization. For the initial checkout, provider accepts either a processor name or an exact payment connection ID.
Autorizaciones
Encabezados
Unique key used to safely retry this write for 24 hours without applying it twice.
1 - 200API version used by this reference. Send this header to select this contract explicitly.
Cuerpo
- Option 1
- Option 2
- Option 3
- Option 4
- Option 5
- Option 6
1 - 2001weekly, monthly, quarterly, yearly, one_time Public price ID. When omitted, Commet selects the default price for the billing interval and still applies its market pricing.
1Payment provider name or exact public payment connection ID for the initial checkout. Overrides country routing when present.
stripe, commet, dlocal 10 <= x <= 9007199254740991Respuesta
Success
draft, pending_payment, trialing, active, past_due, paused, canceled weekly, monthly, quarterly, yearly, one_time -9007199254740991 <= x <= 9007199254740991- Option 1
- Option 2
Payment provider resolved for this checkout when the subscription response was created. This is an informational snapshot and may differ when the checkout is loaded if its country or the organization's routing changes.
stripe, commet, dlocal "subscription"