Billing

Create the upfront intent for the picked plan.

<br/>Normally a $1 card-validation PaymentIntent; a fully-discounting promo code<br/>switches it to a $0 SetupIntent so the card is saved but never charged.

post/api/v1/billing/checkout/payment-intent

Request

  • Base URL: https://api.avatarfactory.io (the document declares no server; this is the origin it was published from)
  • URL: https://api.avatarfactory.io/api/v1/billing/checkout/payment-intent
  • Auth: one of:
    • API key in cookie session
    • HTTP bearer

Request body

intervalstring
planstring required
promotion_codestring nullable

Response

OK

amountinteger required
client_secretstring nullable
currencystring required
discount_amount_offinteger nullable
discount_durationstring nullable
discount_labelstring nullable
discount_percent_offnumber nullable
finalizedboolean
intent_idstring required
intervalstring required
meta_checkout_event_idstring nullable
modestring required
plan_slugstring required

Changes

No recorded changes to this operation across all 1 revision of this API.