Understand how the CaseXchange Public API models referrals, statuses, and ownership
Two perspectives
The Public API exposes every case through the lens of the firm holding the API key:
Sent Cases — cases your firm created and sent to another firm (sender perspective).
Received Referrals — referrals another firm sent to you (receiver perspective).
Both perspectives share the same underlying data, but each returns only the fields and actions relevant to that role. See the endpoint examples for full request/response details:
Case — Primary record containing title, jurisdiction, case type, and client details.
Referral — A case handoff from a sending firm to a receiving firm. A single case can have multiple referrals (re-referrals), each with its own status and lifecycle.
Base Case — The canonical case shared across all of its referrals.
Statuses
Every referral progresses through a defined set of statuses. The full enum is:
Status
Description
draft
Case created but not yet sent to a receiving firm.
sent
Referral dispatched to the receiving firm.
received
Receiving firm has acknowledged the referral.
under_evaluation
Receiving firm is evaluating the case.
investigating
Active investigation is underway.
signed
Client retainer has been signed.
in_litigation
Case is in active litigation.
closing
Case is in the closing process.
won
Case resolved with a favorable outcome.
lost
Case resolved with an unfavorable outcome.
rejected
Receiving firm declined the referral.
withdrawn
Sending firm withdrew the referral.
closed
Case is fully closed.
Closing status
When a referral reaches a terminal state through the close action, a closingStatus is required:
Closing Status
Meaning
won_settled
Case was won or settled.
lost
Case was lost.
no_longer_pursuing
Firm elected to stop pursuing the case.
Status flow
draft -> sent -> received -> under_evaluation -> investigating -> signed -> in_litigation -> closing -> closed \-> won \-> lost sent -> rejected (by receiving firm) sent -> withdrawn (by sending firm)
Use the GET /sent-cases/{id}/available-statuses or GET /received-referrals/{id}/available-statuses endpoint to discover which transitions are valid for the current state before attempting a status change.
Permissions
Sending firm — Owns initial case creation. Can edit sender-owned fields (tier, source) after the case is sent. Can withdraw a referral.
Receiving firm — Can update notes, financial estimates, phase, lead attorney, and other referral fields after acknowledgment. Can reject, advance, or close a referral.
Both firms — Can read case details and referral status history through their respective perspective endpoints.
Refer and re-refer logic
A referral is created when a sending firm sends a draft case to a receiving firm.
POST /sent-cases/{id}/refer sends a draft case to a receiving firm or creates a new referral on an existing case (re-refer). Each new referral receives an incremented sequenceNumber.
Only the sending firm (owner of the base case) can refer or re-refer.
An active network relationship between the sending and receiving firms is required.
The referrals sub-resource (/cases/{baseCaseId}/referrals) provides granular lifecycle actions on individual referrals: acknowledge, begin-investigating, sign, start-litigation, close, reject, and withdraw.
# Create a case as a draftPOST /sent-cases# Send it to a receiving firm (initial refer)POST /sent-cases/{id}/refer { "referentFirmId": "...", "notes": "..." }# Later, re-refer the same case to a different firmPOST /sent-cases/{id}/refer { "referentFirmId": "<different-firm-id>", "notes": "..." }
Common field glossary
Fields that appear across case and referral responses:
Field
Type
Description
cmsId
string | null
External case management system ID — the first non-null value from integrations (Dear Legal, Neos, Clio, SmartAdvocate, Salesforce). Used for flexible ID resolution alongside UUID and reference number.
tier
integer | null
Case priority tier (1-5). Set by the sending firm. Higher values indicate higher priority.
ratedTier
integer | null
Tier rating assigned by the receiving firm after evaluation.
source
string | null
Origin of the case (e.g., “Website Lead”, “Attorney Referral”, “Advertisement”). Free-text field set by the sending firm.
isRetainerSigned
boolean
Whether the client retainer agreement has been signed. Set to true automatically by the sign lifecycle action, or can be set on case creation.
requiresUpdate
boolean
System flag indicating the case has pending actions or stale data that the firm should review.
sequenceNumber
integer
The referral’s position in the chain (starts at 1 for the first referral, increments on re-refer).
clientFeeAgreementPercentage
number | null
Fee agreement percentage expressed as a decimal between 0 and 1 (e.g., 0.33 = 33%).
sendingFirmPercentage
number | null
Sending firm’s share expressed as a whole number between 0 and 100 (e.g., 25 = 25%).
clientFeeAgreementPercentage uses a 0-1 scale while sendingFirmPercentage uses a 0-100 scale. This matches the OpenAPI spec constraints.
Error handling
All error responses follow a consistent envelope with error.code, error.message, and meta.requestId. See Error Handling for the full error code reference table, status code guide, and troubleshooting patterns.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"CaseXchange Public API","colors":{"primary":"#EA4E00","light":"#FF8142","dark":"#EA4E00"},"logo":{"light":"https://mintcdn.com/casexchange/KOlGhBF7XhztshRX/logo/light.png?fit=max\u0026auto=format\u0026n=KOlGhBF7XhztshRX\u0026q=85\u0026s=deebe246bf795c2ec8e597745d5a7506","dark":"https://mintcdn.com/casexchange/KOlGhBF7XhztshRX/logo/dark.png?fit=max\u0026auto=format\u0026n=KOlGhBF7XhztshRX\u0026q=85\u0026s=c28ea6f63b6fdd1aa1bb8b56da7d6cd8"},"favicon":"https://mintcdn.com/casexchange/KOlGhBF7XhztshRX/logo/favicon.png?fit=max\u0026auto=format\u0026n=KOlGhBF7XhztshRX\u0026q=85\u0026s=e2c7e208bb808008bf629ebc064d391d","navbar":{"links":[{"href":"/postman/CaseXchange-Public-API.postman_collection.json","label":"Postman Collection"},{"href":"mailto:help@casexchange.com","label":"Support"}],"primary":{"type":"button","label":"Dashboard","href":"https://dashboard.casexchange.com"}},"footer":{"socials":{"linkedin":"https://linkedin.com/company/case-xchange"}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"casexchange","hasAudioNarration":false,"actualSubdomain":"casexchange","customDomains":["docs.casexchange.com"],"gitSource":{"type":"github","owner":"casexchange","repo":"api-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":"","_id":"6b10c5879ffae5051c406bed"},"entitlements":{},"buildId":"6b024522839604291951bb79","clientVersion":"0.0.4453","searchFilterCounts":[{"language":"default","tag":"API","count":158},{"language":"default","tag":"Endpoints","count":154},{"language":"default","tag":"Webhooks","count":22},{"language":"default","tag":"Guides","count":20},{"language":"default","tag":"Med Cases","count":19},{"language":"default","tag":"Referrals","count":16},{"language":"default","tag":"MedEx Pharmacy","count":13},{"language":"default","tag":"Analytics","count":9},{"language":"default","tag":"Cases","count":9},{"language":"default","tag":"Get started","count":6}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"auth-vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"concepts/cases","slug":"/concepts/cases","pageMetadata":{"title":"Case Lifecycle","description":"Understand how the CaseXchange Public API models referrals, statuses, and ownership","icon":"folder-open","sidebarTitle":"Case lifecycle","href":"/concepts/cases"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Understand how the CaseXchange Public API models referrals, statuses, and ownership\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Mermaid,Note,Table,Tip}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Mermaid)_missingMdxReference(`Mermaid`,true);if(!Note)_missingMdxReference(`Note`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Tip)_missingMdxReference(`Tip`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`two-perspectives`,children:`Two perspectives`}),`\n`,_jsx(_components.p,{children:`The Public API exposes every case through the lens of the firm holding the API key:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Sent Cases`}),` — cases your firm created and sent to another firm (sender perspective).`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Received Referrals`}),` — referrals another firm sent to you (receiver perspective).`]}),`\n`]}),`\n`,_jsx(_components.p,{children:`Both perspectives share the same underlying data, but each returns only the fields and actions relevant to that role. See the endpoint examples for full request/response details:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/api-reference/examples/sent-cases`,children:`Sent Cases`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/api-reference/examples/received-referrals`,children:`Received Referrals`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/api-reference/examples/referrals`,children:`Referrals (lifecycle actions)`})}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`objects`,children:`Objects`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Case`}),` — Primary record containing title, jurisdiction, case type, and client details.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Referral`}),` — A case handoff from a sending firm to a receiving firm. A single case can have multiple referrals (re-referrals), each with its own status and lifecycle.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Base Case`}),` — The canonical case shared across all of its referrals.`]}),`\n`]}),`\n`,_jsx(Mermaid,{chart:`flowchart LR\n Case --> Referral1[Referral #1]\n Case --> Referral2[Referral #2]\n Referral1 --> FirmA[Sending Firm]\n Referral1 --> FirmB[Receiving Firm]\n Referral2 --> FirmA\n Referral2 --> FirmC[Receiving Firm B]`}),`\n`,_jsx(Heading,{level:`2`,id:`statuses`,children:`Statuses`}),`\n`,_jsx(_components.p,{children:`Every referral progresses through a defined set of statuses. The full enum is:`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Status`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`draft`})}),_jsx(_components.td,{children:`Case created but not yet sent to a receiving firm.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`sent`})}),_jsx(_components.td,{children:`Referral dispatched to the receiving firm.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`received`})}),_jsx(_components.td,{children:`Receiving firm has acknowledged the referral.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`under_evaluation`})}),_jsx(_components.td,{children:`Receiving firm is evaluating the case.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`investigating`})}),_jsx(_components.td,{children:`Active investigation is underway.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`signed`})}),_jsx(_components.td,{children:`Client retainer has been signed.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`in_litigation`})}),_jsx(_components.td,{children:`Case is in active litigation.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`closing`})}),_jsx(_components.td,{children:`Case is in the closing process.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`won`})}),_jsx(_components.td,{children:`Case resolved with a favorable outcome.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lost`})}),_jsx(_components.td,{children:`Case resolved with an unfavorable outcome.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`rejected`})}),_jsx(_components.td,{children:`Receiving firm declined the referral.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`withdrawn`})}),_jsx(_components.td,{children:`Sending firm withdrew the referral.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`closed`})}),_jsx(_components.td,{children:`Case is fully closed.`})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`closing-status`,children:`Closing status`}),`\n`,_jsxs(_components.p,{children:[`When a referral reaches a terminal state through the close action, a `,_jsx(_components.code,{children:`closingStatus`}),` is required:`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Closing Status`}),_jsx(_components.th,{children:`Meaning`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`won_settled`})}),_jsx(_components.td,{children:`Case was won or settled.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lost`})}),_jsx(_components.td,{children:`Case was lost.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`no_longer_pursuing`})}),_jsx(_components.td,{children:`Firm elected to stop pursuing the case.`})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`status-flow`,children:`Status flow`}),`\n`,_jsx(CodeBlock,{numberOfLines:`6`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`6`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`draft -> sent -> received -> under_evaluation -> investigating -> signed -> in_litigation -> closing -> closed`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` \\\\-> won`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` \\\\-> lost`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` sent -> rejected (by receiving firm)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` sent -> withdrawn (by sending firm)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[`Use the `,_jsx(_components.code,{children:`GET /sent-cases/{id}/available-statuses`}),` or `,_jsx(_components.code,{children:`GET /received-referrals/{id}/available-statuses`}),` endpoint to discover which transitions are valid for the current state before attempting a status change.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`permissions`,children:`Permissions`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Sending firm`}),` — Owns initial case creation. Can edit sender-owned fields (`,_jsx(_components.code,{children:`tier`}),`, `,_jsx(_components.code,{children:`source`}),`) after the case is sent. Can withdraw a referral.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Receiving firm`}),` — Can update notes, financial estimates, phase, lead attorney, and other referral fields after acknowledgment. Can reject, advance, or close a referral.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Both firms`}),` — Can read case details and referral status history through their respective perspective endpoints.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`refer-and-re-refer-logic`,children:`Refer and re-refer logic`}),`\n`,_jsx(_components.p,{children:`A referral is created when a sending firm sends a draft case to a receiving firm.`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`POST /sent-cases/{id}/refer`}),` sends a draft case to a receiving firm or creates a new referral on an existing case (re-refer). Each new referral receives an incremented `,_jsx(_components.code,{children:`sequenceNumber`}),`.`]}),`\n`,_jsx(_components.li,{children:`Only the sending firm (owner of the base case) can refer or re-refer.`}),`\n`,_jsx(_components.li,{children:`An active network relationship between the sending and receiving firms is required.`}),`\n`,_jsxs(_components.li,{children:[`The referrals sub-resource (`,_jsx(_components.code,{children:`/cases/{baseCaseId}/referrals`}),`) provides granular lifecycle actions on individual referrals: acknowledge, begin-investigating, sign, start-litigation, close, reject, and withdraw.`]}),`\n`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`10`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`10`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Create a case as a draft`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` /sent-cases`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Send it to a receiving firm (initial refer)`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` /sent-cases/{id}/refer`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`\"referentFirmId\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"...\",`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"notes\":`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"...\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Later, re-refer the same case to a different firm`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` /sent-cases/{id}/refer`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`\"referentFirmId\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"\u003cdifferent-firm-id>\",`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"notes\":`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"...\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`common-field-glossary`,children:`Common field glossary`}),`\n`,_jsx(_components.p,{children:`Fields that appear across case and referral responses:`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`cmsId`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`string | null`})}),_jsx(_components.td,{children:`External case management system ID — the first non-null value from integrations (Dear Legal, Neos, Clio, SmartAdvocate, Salesforce). Used for flexible ID resolution alongside UUID and reference number.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`tier`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`integer | null`})}),_jsx(_components.td,{children:`Case priority tier (1-5). Set by the sending firm. Higher values indicate higher priority.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ratedTier`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`integer | null`})}),_jsx(_components.td,{children:`Tier rating assigned by the receiving firm after evaluation.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`source`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`string | null`})}),_jsx(_components.td,{children:`Origin of the case (e.g., “Website Lead”, “Attorney Referral”, “Advertisement”). Free-text field set by the sending firm.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`isRetainerSigned`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`boolean`})}),_jsxs(_components.td,{children:[`Whether the client retainer agreement has been signed. Set to `,_jsx(_components.code,{children:`true`}),` automatically by the sign lifecycle action, or can be set on case creation.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`requiresUpdate`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`boolean`})}),_jsx(_components.td,{children:`System flag indicating the case has pending actions or stale data that the firm should review.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`sequenceNumber`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`integer`})}),_jsx(_components.td,{children:`The referral’s position in the chain (starts at 1 for the first referral, increments on re-refer).`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`clientFeeAgreementPercentage`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`number | null`})}),_jsxs(_components.td,{children:[`Fee agreement percentage expressed as a decimal between 0 and 1 (e.g., `,_jsx(_components.code,{children:`0.33`}),` = 33%).`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`sendingFirmPercentage`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`number | null`})}),_jsxs(_components.td,{children:[`Sending firm’s share expressed as a whole number between 0 and 100 (e.g., `,_jsx(_components.code,{children:`25`}),` = 25%).`]})]})]})]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`clientFeeAgreementPercentage`}),` uses a 0-1 scale while `,_jsx(_components.code,{children:`sendingFirmPercentage`}),` uses a 0-100 scale. This matches the OpenAPI spec constraints.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`error-handling`,children:`Error handling`}),`\n`,_jsxs(_components.p,{children:[`All error responses follow a consistent envelope with `,_jsx(_components.code,{children:`error.code`}),`, `,_jsx(_components.code,{children:`error.message`}),`, and `,_jsx(_components.code,{children:`meta.requestId`}),`. See `,_jsx(_components.a,{href:`/api-reference/error-handling`,children:`Error Handling`}),` for the full error code reference table, status code guide, and troubleshooting patterns.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Case Lifecycle","description":"Understand how the CaseXchange Public API models referrals, statuses, and ownership","icon":"folder-open","sidebarTitle":"Case lifecycle","href":"/concepts/cases"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Two perspectives","slug":"two-perspectives","depth":2,"children":[]},{"title":"Objects","slug":"objects","depth":2,"children":[]},{"title":"Statuses","slug":"statuses","depth":2,"children":[{"title":"Closing status","slug":"closing-status","depth":3,"children":[]},{"title":"Status flow","slug":"status-flow","depth":3,"children":[]}]},{"title":"Permissions","slug":"permissions","depth":2,"children":[]},{"title":"Refer and re-refer logic","slug":"refer-and-re-refer-logic","depth":2,"children":[]},{"title":"Common field glossary","slug":"common-field-glossary","depth":2,"children":[]},{"title":"Error handling","slug":"error-handling","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"casexchange","siteName":"CaseXchange Public API","title":"Case Lifecycle - CaseXchange Public API","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-19T19:45:57.234Z","originalFileLocation":"concepts/cases.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Understand how the CaseXchange Public API models referrals, statuses, and ownership\">\u003cmeta data-mint-head name=\"application-name\" content=\"CaseXchange Public API\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/casexchange/5ej00RttGW84DLNC/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/casexchange/5ej00RttGW84DLNC/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/casexchange/5ej00RttGW84DLNC/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/casexchange/5ej00RttGW84DLNC/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/casexchange/5ej00RttGW84DLNC/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/casexchange/5ej00RttGW84DLNC/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/casexchange/5ej00RttGW84DLNC/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/casexchange/5ej00RttGW84DLNC/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/casexchange/5ej00RttGW84DLNC/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Case Lifecycle - CaseXchange Public API\">\u003cmeta data-mint-head property=\"og:description\" content=\"Understand how the CaseXchange Public API models referrals, statuses, and ownership\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"CaseXchange Public API\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.casexchange.com/concepts/cases\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://casexchange.mintlify.site/_mintlify/api/og/v2?division=Core+Concepts\u0026amp;title=Case+Lifecycle\u0026amp;description=Understand+how+the+CaseXchange+Public+API+models+referrals%2C+statuses%2C+and+ownership\u0026amp;theme=2a243f5ae05e2e0c81058e5c\u0026amp;signature=42d8842edd1a55f8621c94bbddfa9ddd9e884807030031d11987cb68fc3d1f73\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Case Lifecycle - CaseXchange Public API\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Understand how the CaseXchange Public API models referrals, statuses, and ownership\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://casexchange.mintlify.site/_mintlify/api/og/v2?division=Core+Concepts\u0026amp;title=Case+Lifecycle\u0026amp;description=Understand+how+the+CaseXchange+Public+API+models+referrals%2C+statuses%2C+and+ownership\u0026amp;theme=2a243f5ae05e2e0c81058e5c\u0026amp;signature=42d8842edd1a55f8621c94bbddfa9ddd9e884807030031d11987cb68fc3d1f73\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/casexchange/5ej00RttGW84DLNC/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"CaseXchange Public API\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#EA4E00\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.casexchange.com/concepts/cases\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/concepts/cases.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.casexchange.com/#organization\",\"name\":\"CaseXchange Public API\",\"url\":\"https://docs.casexchange.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/casexchange/KOlGhBF7XhztshRX/logo/light.png?fit=max\u0026auto=format\u0026n=KOlGhBF7XhztshRX\u0026q=85\u0026s=deebe246bf795c2ec8e597745d5a7506\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.casexchange.com#website\",\"name\":\"CaseXchange Public API\",\"url\":\"https://docs.casexchange.com\",\"publisher\":{\"@id\":\"https://docs.casexchange.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.casexchange.com/concepts/cases#webpage\",\"url\":\"https://docs.casexchange.com/concepts/cases\",\"name\":\"Case Lifecycle\",\"description\":\"Understand how the CaseXchange Public API models referrals, statuses, and ownership\",\"dateModified\":\"2026-11-19T19:45:57.234Z\",\"isPartOf\":{\"@id\":\"https://docs.casexchange.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.casexchange.com/concepts/cases#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.casexchange.com/concepts/cases#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"CaseXchange Public API\",\"item\":\"https://docs.casexchange.com\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Case Lifecycle\",\"item\":\"https://docs.casexchange.com/concepts/cases\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.casexchange.com/concepts/cases#article\",\"headline\":\"Case Lifecycle\",\"name\":\"Case Lifecycle\",\"description\":\"Understand how the CaseXchange Public API models referrals, statuses, and ownership\",\"url\":\"https://docs.casexchange.com/concepts/cases\",\"mainEntityOfPage\":{\"@id\":\"https://docs.casexchange.com/concepts/cases#webpage\"},\"dateModified\":\"2026-11-19T19:45:57.234Z\",\"publisher\":{\"@id\":\"https://docs.casexchange.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.casexchange.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"CaseXchange Public API\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"CaseXchange Public API\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/concepts/cases.md","siteName":"CaseXchange Public API","nav":{"global":null,"tabs":[{"tab":"Guides","groups":[{"group":"Overview","pages":[{"title":"CaseXchange Public API","icon":"house","sidebarTitle":"Introduction","href":""},{"title":"Quickstart","icon":"rocket","href":"/quickstart"}]},{"group":"Authentication","pages":[{"title":"JWT Authentication","description":"Authenticate directly with CaseXchange using username/password plus refresh cookies","icon":"key","sidebarTitle":"JWT authentication","href":"/auth/jwt"}]},{"group":"Core Concepts","pages":[{"title":"Case Lifecycle","icon":"folder-open","sidebarTitle":"Case lifecycle","href":"/concepts/cases"},{"title":"Firms \u0026 Directory","description":"How the CaseXchange Public API represents law firms, your own firm profile, and the available-firms directory","icon":"building","sidebarTitle":"Firms \u0026 directory","href":"/concepts/firms"},{"title":"Jurisdictions \u0026 Counties","icon":"map","sidebarTitle":"Jurisdictions","href":"/concepts/jurisdictions"},{"title":"Case Types","icon":"tag","sidebarTitle":"Case types","href":"/concepts/case-types"}]},{"group":"Core Examples","pages":[{"title":"Reference Data","icon":"database","sidebarTitle":"Reference data","href":"/api-reference/examples/reference-data"},{"title":"Firms","icon":"building","href":"/api-reference/examples/firms"},{"title":"Sent Cases","icon":"paper-plane","sidebarTitle":"Sent cases","href":"/api-reference/examples/sent-cases"},{"title":"Received Referrals","icon":"inbox","sidebarTitle":"Received referrals","href":"/api-reference/examples/received-referrals"},{"title":"Referrals","icon":"arrows-rotate","href":"/api-reference/examples/referrals"},{"title":"Documents","icon":"file-arrow-up","href":"/api-reference/examples/documents"}]},{"group":"Extended Examples","pages":[{"title":"Routing","icon":"diagram-project","href":"/api-reference/examples/routing"},{"title":"Analytics","icon":"chart-line","href":"/api-reference/examples/analytics"},{"title":"Status Updates","icon":"clock-rotate-left","sidebarTitle":"Status updates","href":"/api-reference/examples/status-updates"},{"title":"Messages","icon":"message","href":"/api-reference/examples/messages"},{"title":"Network","icon":"circle-nodes","href":"/api-reference/examples/network"}]},{"group":"MedEx","pages":[{"title":"MedEx for medical providers","icon":"stethoscope","href":"/api-reference/examples/medex-providers"},{"title":"Pharmacy integrations","icon":"prescription-bottle-medical","href":"/api-reference/examples/medex-pharmacy-integrations"}]}]},{"tab":"API","pages":[{"title":"API","href":"/api-reference/overview"}]},{"tab":"Webhooks","pages":[{"title":"Webhooks","href":"/webhooks"}]}]},"basePath":"","title":"Case Lifecycle - CaseXchange Public API","deploymentId":"dpl_BLZw3QngerHodH9E8mGgC4v752y3","buildId":"dpl_BLZw3QngerHodH9E8mGgC4v752y3","dynamics":[],"chunks":[]}