v4

latestOpenAPI 3.0.3raw.githubusercontent.com2026-07-2172104104.0 KB
payments

Cria sessão de Stripe Checkout (assinatura ou recarga one-time)

  • uiMode = "hosted" retorna url; redirecione o cliente.
  • uiMode = "embedded" retorna clientSecret; renderize com <EmbeddedCheckout>.
post/v1/payments/create-checkout-session

Request body

planKeystring required
billingCycle'MONTHLY' | 'YEARLY'
uiMode'hosted' | 'embedded'
rechargeAmountCentsinteger nullable

Topup one-time cobrado junto com o primeiro invoice da assinatura.

Response

Sessão criada

urlstring nullable

Populado quando uiMode=hosted.

clientSecretstring nullable

Populado quando uiMode=embedded.