consumer
Finalize Report
Verify Stripe payment + mark report as ready.
Called by the frontend after Stripe redirects the user back to /report/{id}?session=cs_xxx. We:
- Look up the ci_reports row (must exist, must match Stripe session.metadata.report_id)
- Fetch the Stripe session and verify payment_status == 'paid'
- Update ci_reports.paid=true, status='ready', completed_at=NOW
- Return current status
Idempotent — calling twice is safe.
The actual report content is rendered at view time using build_deal_sheet against the property_id — no PDF generation needed. The customer paid for permanent access to the live intelligence on this property.
post/api/v1/consumer/report/{report_id}/finalize
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/{report_id}/finalize
- Auth: none declared
Path parameters
report_idstring required
Request body
Response
Successful Response
Changes
No recorded changes to this operation across all 1 revision of this API.