Skip to main content

Documentation Index

Fetch the complete documentation index at: https://usenaive.ai/docs/llms.txt

Use this file to discover all available pages before exploring further.

If the user doesn’t complete payment within Stripe’s checkout window, the original session expires and the formation status becomes failed (with doola_error: "Stripe Checkout session expired before payment"). Use this endpoint to generate a new checkout URL for the same formation without losing the business info or starting over. This endpoint:
  • Reverts the formation to awaiting_payment status
  • Clears doola_error
  • Creates a new Stripe Checkout session
  • Returns the new checkout_url
id
string
required
UUID of the formation.
curl -X POST https://api.usenaive.ai/v1/formation/formation-uuid/retry-payment \
  -H "Authorization: Bearer nv_sk_live_..."
{
  "id": "formation-uuid",
  "status": "awaiting_payment",
  "payment_status": "unpaid",
  "checkout_url": "https://checkout.stripe.com/c/pay/cs_test_new_xxx",
  "checkout_session_id": "cs_test_new_xxx",
  "price_usd": "$249",
  "next_step": "Open the checkout_url to complete payment, then call POST /v1/formation/:id/submit to submit to Doola"
}

Restrictions

This endpoint returns invalid_input if:
  • The formation has already been paid for (payment_status === "paid") — use POST /v1/formation/:id/submit instead
  • The formation has already been submitted to Doola (status === "submitted" or "formation_completed")