consumer

Create Report Checkout

Create a Stripe one-time checkout session for a $29 property profile PDF.

Flow:

  1. Insert a pending ci_reports row (status='pending', paid=False)
  2. Create Stripe Checkout Session with price = STRIPE_PRICE_PROPERTY_PROFILE
  3. Return the checkout URL — frontend redirects user to Stripe
  4. On Stripe webhook (checkout.session.completed), update ci_reports.paid=True and trigger PDF generation (background task)
  5. User is redirected back to /report/{report_id} which polls for ready
post/api/v1/consumer/report-checkout

Request

  • Base URL: https://api.casaintelligence.com.au (the document declares no server; this is the origin it was published from)
  • URL: https://api.casaintelligence.com.au/api/v1/consumer/report-checkout
  • Auth: none declared

Request body

property_idstring required

UUID of ci_properties row

emailstring email required
address_labelstring nullable
success_urlstring nullable
cancel_urlstring nullable

Response

Successful Response

checkout_urlstring required
session_idstring required
report_idstring required

Changes

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