Create claim and upload evidence
The API accepts PDF, JPEG, PNG, and WebP, up to five files per claim and 4,194,304 bytes per file. The direct Blob PUT is outside the FastAPI OpenAPI contract.Submit and process
The workflow polls pending malware scans every 30 seconds for up to 30 minutes. Malicious or scanner-error results reject the document; a scan timeout sets the claim toneeds_information. Content safety can block a document, require review, or allow further processing. Evidence validation can reject the claim or request more information. The current code starts the Functions workflow from the API request; it does not implement the outbox proposed in the earlier design.
Human decision and refund
The assessment determines whether one or two distinct reviewer approvals are needed; the current threshold is a proposed refund amount greater than 500. The workflow closes after seven days without enough approvals. Stripe refund creation usesrefundflow:{claim_id} as its idempotency key and is retried up to three attempts. The webhook verifies Stripe-Signature before applying the final status.
Known implementation boundary
The submission route has no transactional outbox between saving claim state and calling the Functions starter. The backend also has no separate safety-review queue for aREVIEW content-safety result. Those design items should not be presented as completed behavior.