Purchase credits
Buy Neo credits. First purchase redirects to Stripe Checkout (saves payment method). Subsequent purchases charge the saved payment method directly. Credits are added to the existing balance with a rolling 1-year expiry.
Authorizations
JWT authentication token
Body
"estimate" to get pricing preview, "purchase" to buy
estimate, purchase Number of credits to purchase (100-3000)
100 <= x <= 3000Stripe Payment Method ID to charge (optional, defaults to customer default PM)
Optional cancel redirect for the hosted checkout.
Optional success redirect for the hosted checkout.
Response
Purchase initiated or completed
"estimate" for pricing preview, "redirect" for first purchase (Stripe Checkout), "charged" for direct charge
estimate, redirect, charged Whether saved payment methods exist (only in estimate)
Stripe Invoice ID (only when action is "charged")
Stripe hosted invoice URL (only when action is "charged")
All saved payment methods (only in estimate)
Stripe Checkout Session ID (only when action is "redirect")
Price per credit in USD (e.g. 5.00)
Stripe Checkout URL (only when action is "redirect")

