> ## Documentation Index
> Fetch the complete documentation index at: https://docs.khanhng.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 4.4 Requests and Lifecycle

## Claim states

The `ClaimStatus` model defines `draft`, `uploading`, `scanning`, `processing`, `needs_information`, `pending_approval`, `approved`, `rejected`, `refund_submitted`, `refunded`, `refund_failed`, `pending_ai_capacity`, and `closed`. A defined state is not a promise that every path reaches it.

Submission requires at least one document and requires every uploaded document to be verified. The Durable workflow scans evidence, applies safety and evidence checks, runs an assessment, and waits for human approval. It closes a claim after a seven-day approval timeout. A rejection ends the workflow without a refund. When an assessment requires two approvals, the workflow waits for two distinct reviewer IDs.

## Implemented limits

| Rule | Current backend |
| - | - |
| Files per claim | At most 5. |
| Declared file size | At most 4,194,304 bytes. |
| Allowed evidence types | PDF, JPEG, PNG, and WebP. |
| Two-reviewer threshold | Proposed refund amount greater than 500 in the assessment workflow. |
| Refund activity attempts | At most 3, including the initial attempt. |

Monthly claim and document-page limits are configuration values, but the current FastAPI routes do not enforce them. The API does not define cursor pagination or a general client idempotency header.

The Stripe refund uses `refundflow:{claim_id}` as its idempotency key. Repeating upload completion returns the verified result, and the Functions starter reuses an active workflow for the same claim and input. A review decision is accepted only while the claim is pending approval.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.