Public API key: cxp_<hex> (firm-scoped) or cxpp_<hex> (provider-scoped). Required on every request.
Path Parameters
id
string<uuid>
required
Resource UUID
Body
application/json
closingStatus
enum<string>
required
Case-insensitive.
Available options:
won_settled,
lost,
no_longer_pursuing
closingNotes
string
settlementAmount
number
Final settlement amount in dollars; must be greater than 0.
Required range: 0 < x <= 1000000000
clientFeeAgreementPercentage
number
Client fee agreement as a FRACTION of the settlement, 0–1 (0.3333 = 33.33%). Not a whole percent — contrast with sendingFirmPercentage.
Required range: 0 <= x <= 1
attorneyFees
number
Attorney fees in dollars. Must not exceed settlementAmount when both are sent.
Required range: 0 <= x <= 1000000000
closureReason
string
payoutType
enum<string>
How settlement funds are distributed. Case-insensitive.
Available options:
lump_sum,
structured,
hybrid,
other
Response
Closed case
data
object
required
A referral as seen by either party (the public API calls a referral a "case" on this path). Base-case fields are flattened onto the referral. Client fields are masked for the receiving firm while the case is SENT, and after it was withdrawn or expired directly from SENT without being acknowledged.
Show child attributes
meta
object
required
Show child attributes
{"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":"api-reference/cases/close-a-case","slug":"/api-reference/cases/close-a-case","pageMetadata":{"title":"Close a case","description":"Initiates the closing workflow for a case. Requires STANDARD tier.","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml post /cases/{id}/close","href":"/api-reference/cases/close-a-case","autogeneratedByOpenApi":true},"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: \"Initiates the closing workflow for a case. Requires STANDARD tier.\"\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}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Close a case","description":"Initiates the closing workflow for a case. Requires STANDARD tier.","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml post /cases/{id}/close","href":"/api-reference/cases/close-a-case","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"operationId":"closeCase","summary":"Close a case","description":"Initiates the closing workflow for a case. Requires STANDARD tier.","tags":["Cases"],"security":["3704123a-6c98-42e8-8509-be00aa09eeea"],"x-access-tier":"standard","parameters":["a936ba8d-8696-4a8f-b013-38e1b205b854"],"requestBody":"cd2c13cc-54bf-403a-b280-b341d865b15e","responses":{"200":"e2fcf8b3-0ca7-40ac-891b-f78669daa5cb","400":"39713de8-b556-4c61-9a96-bf73a7148765","401":"52d32848-e012-42d3-b088-d3bfdfedc2cf","403":"63ae6f4f-4a00-4cc3-ac18-926e4302b831","404":"32881973-aae4-4cca-ad4c-3ad537bca3c7"},"method":"post","type":"path","servers":["345f5755-9455-47f7-b251-5ea16ce352e2","95e4cacd-c70c-4f31-af42-14e9bf3f2ac6"],"path":"/cases/{id}/close","baseUrlOptions":["https://api.casexchange.com/api/public/v1","/api/public/v1"],"title":"Close a case","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"a936ba8d-8696-4a8f-b013-38e1b205b854":{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid","isRequired":true,"description":"Resource UUID","uniqueKey":"","typeLabel":"string\u003cuuid>"},"description":"Resource UUID"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["closingStatus"],"additionalProperties":false,"properties":{"closingStatus":{"type":"string","enum":["won_settled","lost","no_longer_pursuing"],"description":"Case-insensitive.","isRequired":true,"uniqueKey":"closingStatus","typeLabel":"enum\u003cstring>"},"closingNotes":{"type":"string","uniqueKey":"closingNotes","typeLabel":"string"},"settlementAmount":{"type":"number","minimum":0,"maximum":1000000000,"nullable":false,"description":"Final settlement amount in dollars; must be greater than 0.","exclusiveMinimum":true,"uniqueKey":"settlementAmount","typeLabel":"number"},"clientFeeAgreementPercentage":{"type":"number","minimum":0,"maximum":1,"nullable":false,"description":"Client fee agreement as a FRACTION of the settlement, 0–1 (0.3333 = 33.33%). Not a whole percent — contrast with sendingFirmPercentage.","uniqueKey":"clientFeeAgreementPercentage","typeLabel":"number"},"attorneyFees":{"type":"number","minimum":0,"maximum":1000000000,"nullable":false,"description":"Attorney fees in dollars. Must not exceed settlementAmount when both are sent.","uniqueKey":"attorneyFees","typeLabel":"number"},"closureReason":{"type":"string","uniqueKey":"closureReason","typeLabel":"string"},"payoutType":{"type":"string","enum":["lump_sum","structured","hybrid","other"],"description":"How settlement funds are distributed. Case-insensitive.","uniqueKey":"payoutType","typeLabel":"enum\u003cstring>"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"closingNotes":"\u003cstring>","settlementAmount":500000000,"clientFeeAgreementPercentage":0.5,"attorneyFees":500000000,"closureReason":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"e2fcf8b3-0ca7-40ac-891b-f78669daa5cb":{"description":"Closed case","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","description":"A referral as seen by either party (the public API calls a referral a \"case\" on this path). Base-case fields are flattened onto the referral. Client fields are masked for the receiving firm while the case is SENT, and after it was withdrawn or expired directly from SENT without being acknowledged.","properties":{"id":{"type":"string","format":"uuid","description":"Referral UUID","uniqueKey":"data.id","typeLabel":"string\u003cuuid>"},"baseCaseId":{"type":"string","format":"uuid","uniqueKey":"data.baseCaseId","typeLabel":"string\u003cuuid>"},"referenceNumber":{"oneOf":[{"type":"string","example":"ABC-0001","uniqueKey":"data.referenceNumber.oneOf.0","typeLabel":"string"},{"type":"null","example":"ABC-0001","uniqueKey":"data.referenceNumber.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.referenceNumber","typeLabel":"string | null"},"status":{"type":"string","description":"CaseStatus enum value (legacy RECEIVED is published as under_evaluation).","uniqueKey":"data.status","typeLabel":"string"},"closingStatus":{"oneOf":[{"type":"string","enum":["won_settled","lost","no_longer_pursuing"],"description":"ClosingStatus enum value; null until the closing workflow starts.","uniqueKey":"data.closingStatus.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["won_settled","lost","no_longer_pursuing"],"description":"ClosingStatus enum value; null until the closing workflow starts.","uniqueKey":"data.closingStatus.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.closingStatus","typeLabel":"enum\u003cstring> | null"},"payoutType":{"oneOf":[{"type":"string","enum":["lump_sum","structured","hybrid","other"],"description":"How settlement funds are distributed; null until set during closing.","uniqueKey":"data.payoutType.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["lump_sum","structured","hybrid","other"],"description":"How settlement funds are distributed; null until set during closing.","uniqueKey":"data.payoutType.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payoutType","typeLabel":"enum\u003cstring> | null"},"closureReason":{"oneOf":[{"type":"string","description":"Free-text reason recorded when the referral is closed; null until then.","uniqueKey":"data.closureReason.oneOf.0","typeLabel":"string"},{"type":"null","description":"Free-text reason recorded when the referral is closed; null until then.","uniqueKey":"data.closureReason.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.closureReason","typeLabel":"string | null"},"settlementAmount":{"oneOf":[{"type":"number","minimum":0,"maximum":1000000000,"description":"Final settlement amount in dollars; null until recorded.","uniqueKey":"data.settlementAmount.oneOf.0","typeLabel":"number"},{"type":"null","minimum":0,"maximum":1000000000,"description":"Final settlement amount in dollars; null until recorded.","uniqueKey":"data.settlementAmount.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.settlementAmount","typeLabel":"number | null"},"attorneyFees":{"oneOf":[{"type":"number","minimum":0,"maximum":1000000000,"description":"Total attorney fees in dollars; null until recorded.","uniqueKey":"data.attorneyFees.oneOf.0","typeLabel":"number"},{"type":"null","minimum":0,"maximum":1000000000,"description":"Total attorney fees in dollars; null until recorded.","uniqueKey":"data.attorneyFees.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.attorneyFees","typeLabel":"number | null"},"clientFeeAgreementPercentage":{"oneOf":[{"type":"number","minimum":0,"maximum":1,"description":"Client fee agreement as a FRACTION of the settlement, 0–1 (0.3333 = 33.33%). Not a whole percent — contrast with sendingFirmPercentage.","uniqueKey":"data.clientFeeAgreementPercentage.oneOf.0","typeLabel":"number"},{"type":"null","minimum":0,"maximum":1,"description":"Client fee agreement as a FRACTION of the settlement, 0–1 (0.3333 = 33.33%). Not a whole percent — contrast with sendingFirmPercentage.","uniqueKey":"data.clientFeeAgreementPercentage.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.clientFeeAgreementPercentage","typeLabel":"number | null"},"projectedSettlementAmount":{"oneOf":[{"type":"number","minimum":0,"maximum":1000000000,"description":"Projected settlement amount in dollars, set while the case is open; null until estimated.","uniqueKey":"data.projectedSettlementAmount.oneOf.0","typeLabel":"number"},{"type":"null","minimum":0,"maximum":1000000000,"description":"Projected settlement amount in dollars, set while the case is open; null until estimated.","uniqueKey":"data.projectedSettlementAmount.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.projectedSettlementAmount","typeLabel":"number | null"},"estimatedDateOfResolution":{"oneOf":[{"type":"string","format":"date-time","description":"Estimated resolution date (date-only on input, ISO 8601 on output); null until estimated.","uniqueKey":"data.estimatedDateOfResolution.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"Estimated resolution date (date-only on input, ISO 8601 on output); null until estimated.","uniqueKey":"data.estimatedDateOfResolution.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.estimatedDateOfResolution","typeLabel":"string\u003cdate-time> | null"},"estimatedDistributionDate":{"oneOf":[{"type":"string","format":"date-time","description":"Estimated distribution date (date-only on input, ISO 8601 on output); null until estimated.","uniqueKey":"data.estimatedDistributionDate.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"Estimated distribution date (date-only on input, ISO 8601 on output); null until estimated.","uniqueKey":"data.estimatedDistributionDate.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.estimatedDistributionDate","typeLabel":"string\u003cdate-time> | null"},"leadAttorneyName":{"oneOf":[{"type":"string","description":"Lead attorney at the receiving firm; null until set.","uniqueKey":"data.leadAttorneyName.oneOf.0","typeLabel":"string"},{"type":"null","description":"Lead attorney at the receiving firm; null until set.","uniqueKey":"data.leadAttorneyName.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.leadAttorneyName","typeLabel":"string | null"},"leadAttorneyEmail":{"oneOf":[{"type":"string","format":"email","description":"Lead attorney email at the receiving firm; null until set.","uniqueKey":"data.leadAttorneyEmail.oneOf.0","typeLabel":"string\u003cemail>"},{"type":"null","format":"email","description":"Lead attorney email at the receiving firm; null until set.","uniqueKey":"data.leadAttorneyEmail.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.leadAttorneyEmail","typeLabel":"string\u003cemail> | null"},"handlingTeamName":{"oneOf":[{"type":"string","description":"Team handling the case at the receiving firm; null until set.","uniqueKey":"data.handlingTeamName.oneOf.0","typeLabel":"string"},{"type":"null","description":"Team handling the case at the receiving firm; null until set.","uniqueKey":"data.handlingTeamName.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.handlingTeamName","typeLabel":"string | null"},"handlingTeamEmail":{"oneOf":[{"type":"string","format":"email","description":"Shared email of the handling team; null until set.","uniqueKey":"data.handlingTeamEmail.oneOf.0","typeLabel":"string\u003cemail>"},{"type":"null","format":"email","description":"Shared email of the handling team; null until set.","uniqueKey":"data.handlingTeamEmail.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.handlingTeamEmail","typeLabel":"string\u003cemail> | null"},"referringFirmId":{"type":"string","format":"uuid","description":"Sending firm","uniqueKey":"data.referringFirmId","typeLabel":"string\u003cuuid>"},"referentFirmId":{"oneOf":[{"type":"string","format":"uuid","description":"Receiving firm","uniqueKey":"data.referentFirmId.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","description":"Receiving firm","uniqueKey":"data.referentFirmId.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.referentFirmId","typeLabel":"string\u003cuuid> | null"},"lookNumber":{"oneOf":[{"type":"integer","minimum":1,"description":"Which look of its case this referral is: 1 for the first look, 2 for the next look after a rejection, withdrawal or expiry, and so on. Counts every look: re-referred by hand, sent by the Automatic Second Look, or recorded from the sending firm's case history.","uniqueKey":"data.lookNumber.oneOf.0","typeLabel":"integer"},{"type":"null","minimum":1,"description":"Which look of its case this referral is: 1 for the first look, 2 for the next look after a rejection, withdrawal or expiry, and so on. Counts every look: re-referred by hand, sent by the Automatic Second Look, or recorded from the sending firm's case history.","uniqueKey":"data.lookNumber.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.lookNumber","typeLabel":"integer | null"},"lookType":{"oneOf":[{"type":"string","enum":["first","re_referral","auto_second_look"],"description":"How this look happened: first (the first look), re_referral (a later look the sending firm sent), or auto_second_look (a later look the Automatic Second Look sent). Sending firm (owner of the case) only: null for the receiving firm.","uniqueKey":"data.lookType.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["first","re_referral","auto_second_look"],"description":"How this look happened: first (the first look), re_referral (a later look the sending firm sent), or auto_second_look (a later look the Automatic Second Look sent). Sending firm (owner of the case) only: null for the receiving firm.","uniqueKey":"data.lookType.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.lookType","typeLabel":"enum\u003cstring> | null"},"isLatestLook":{"oneOf":[{"type":"boolean","description":"Whether this is the case's current look. Null when the case's current look is unknown. Sending firm (owner of the case) only: null for the receiving firm.","uniqueKey":"data.isLatestLook.oneOf.0","typeLabel":"boolean"},{"type":"null","description":"Whether this is the case's current look. Null when the case's current look is unknown. Sending firm (owner of the case) only: null for the receiving firm.","uniqueKey":"data.isLatestLook.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.isLatestLook","typeLabel":"boolean | null"},"title":{"oneOf":[{"type":"string","uniqueKey":"data.title.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.title.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.title","typeLabel":"string | null"},"description":{"oneOf":[{"type":"string","uniqueKey":"data.description.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.description.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.description","typeLabel":"string | null"},"caseType":{"oneOf":[{"type":"string","uniqueKey":"data.caseType.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.caseType.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.caseType","typeLabel":"string | null"},"jurisdiction":{"oneOf":[{"type":"string","uniqueKey":"data.jurisdiction.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.jurisdiction.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.jurisdiction","typeLabel":"string | null"},"caseCounty":{"oneOf":[{"type":"string","description":"The case's county inside its jurisdiction; routing rules match on it. Looked up from casePostalCode, then clientPostalCode, when the sender does not supply it.","uniqueKey":"data.caseCounty.oneOf.0","typeLabel":"string"},{"type":"null","description":"The case's county inside its jurisdiction; routing rules match on it. Looked up from casePostalCode, then clientPostalCode, when the sender does not supply it.","uniqueKey":"data.caseCounty.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.caseCounty","typeLabel":"string | null"},"county":{"oneOf":[{"type":"string","description":"The client's home county, looked up from clientPostalCode when the sender does not supply it. Send caseCounty (or the zips) for routing; this value is used as the case county only when neither gives one. Masked for the receiving firm until it acknowledges.","uniqueKey":"data.county.oneOf.0","typeLabel":"string"},{"type":"null","description":"The client's home county, looked up from clientPostalCode when the sender does not supply it. Send caseCounty (or the zips) for routing; this value is used as the case county only when neither gives one. Masked for the receiving firm until it acknowledges.","uniqueKey":"data.county.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.county","typeLabel":"string | null"},"clientFirstName":{"oneOf":[{"type":"string","uniqueKey":"data.clientFirstName.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.clientFirstName.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.clientFirstName","typeLabel":"string | null"},"clientLastName":{"oneOf":[{"type":"string","uniqueKey":"data.clientLastName.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.clientLastName.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.clientLastName","typeLabel":"string | null"},"clientEmail":{"oneOf":[{"type":"string","format":"email","description":"Masked for the receiving firm until acknowledged: 'hidden@acknowledgereceipt.com' on GET /cases/{id}, null on GET /cases.","uniqueKey":"data.clientEmail.oneOf.0","typeLabel":"string\u003cemail>"},{"type":"null","format":"email","description":"Masked for the receiving firm until acknowledged: 'hidden@acknowledgereceipt.com' on GET /cases/{id}, null on GET /cases.","uniqueKey":"data.clientEmail.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.clientEmail","typeLabel":"string\u003cemail> | null"},"clientPhone":{"oneOf":[{"type":"string","description":"Masked for the receiving firm until acknowledged: '***-***-****' on GET /cases/{id}, null on GET /cases.","uniqueKey":"data.clientPhone.oneOf.0","typeLabel":"string"},{"type":"null","description":"Masked for the receiving firm until acknowledged: '***-***-****' on GET /cases/{id}, null on GET /cases.","uniqueKey":"data.clientPhone.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.clientPhone","typeLabel":"string | null"},"clientDateOfBirth":{"oneOf":[{"type":"string","format":"date","uniqueKey":"data.clientDateOfBirth.oneOf.0","typeLabel":"string\u003cdate>"},{"type":"null","format":"date","uniqueKey":"data.clientDateOfBirth.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.clientDateOfBirth","typeLabel":"string\u003cdate> | null"},"incidentDate":{"oneOf":[{"type":"string","format":"date","uniqueKey":"data.incidentDate.oneOf.0","typeLabel":"string\u003cdate>"},{"type":"null","format":"date","uniqueKey":"data.incidentDate.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.incidentDate","typeLabel":"string\u003cdate> | null"},"notes":{"oneOf":[{"type":"string","description":"The sending firm's aggregated case notes.","uniqueKey":"data.notes.oneOf.0","typeLabel":"string"},{"type":"null","description":"The sending firm's aggregated case notes.","uniqueKey":"data.notes.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.notes","typeLabel":"string | null"},"warmTransferSuccessful":{"type":"boolean","description":"Whether the warm transfer to the receiving firm succeeded.","uniqueKey":"data.warmTransferSuccessful","typeLabel":"boolean"},"warmTransferUnsuccessfulReason":{"oneOf":[{"type":"string","description":"Free-text explanation when the warm transfer was unsuccessful. Only populated when warmTransferUnsuccessfulReasonType is OTHER. Null until the referral is acknowledged (PII masking) when viewed by the receiving firm.","uniqueKey":"data.warmTransferUnsuccessfulReason.oneOf.0","typeLabel":"string"},{"type":"null","description":"Free-text explanation when the warm transfer was unsuccessful. Only populated when warmTransferUnsuccessfulReasonType is OTHER. Null until the referral is acknowledged (PII masking) when viewed by the receiving firm.","uniqueKey":"data.warmTransferUnsuccessfulReason.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.warmTransferUnsuccessfulReason","typeLabel":"string | null"},"warmTransferUnsuccessfulReasonType":{"oneOf":[{"type":"string","enum":["FIRM_UNABLE_TO_ANSWER","CLIENT_UNABLE_TO_CONTINUE","OTHER","TRACKING_ONLY","SPIN_OFF_PRIMARY_TRANSFERRED"],"description":"Reason category when the warm transfer did not succeed. FIRM_UNABLE_TO_ANSWER, CLIENT_UNABLE_TO_CONTINUE and OTHER record a failed warm transfer. TRACKING_ONLY (sent after the fact, for tracking only) and SPIN_OFF_PRIMARY_TRANSFERRED (a spin-off case whose primary case was warm transferred) mean no warm transfer was meant to happen, and are not failures. Null until the referral is acknowledged (PII masking) when viewed by the receiving firm.","uniqueKey":"data.warmTransferUnsuccessfulReasonType.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["FIRM_UNABLE_TO_ANSWER","CLIENT_UNABLE_TO_CONTINUE","OTHER","TRACKING_ONLY","SPIN_OFF_PRIMARY_TRANSFERRED"],"description":"Reason category when the warm transfer did not succeed. FIRM_UNABLE_TO_ANSWER, CLIENT_UNABLE_TO_CONTINUE and OTHER record a failed warm transfer. TRACKING_ONLY (sent after the fact, for tracking only) and SPIN_OFF_PRIMARY_TRANSFERRED (a spin-off case whose primary case was warm transferred) mean no warm transfer was meant to happen, and are not failures. Null until the referral is acknowledged (PII masking) when viewed by the receiving firm.","uniqueKey":"data.warmTransferUnsuccessfulReasonType.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.warmTransferUnsuccessfulReasonType","typeLabel":"enum\u003cstring> | null"},"sendingFirmPercentage":{"oneOf":[{"type":"number","description":"Referral fee owed to the sending firm as a whole-number percent of attorney fees (33.33 = 33.33%).","uniqueKey":"data.sendingFirmPercentage.oneOf.0","typeLabel":"number"},{"type":"null","description":"Referral fee owed to the sending firm as a whole-number percent of attorney fees (33.33 = 33.33%).","uniqueKey":"data.sendingFirmPercentage.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sendingFirmPercentage","typeLabel":"number | null"},"netFeeToSendingFirm":{"oneOf":[{"type":"number","description":"attorneyFees × the sendingFirmPercentage published on this record ÷ 100, rounded to cents; at 33.33% it is exactly one third of attorneyFees. Null when either input is missing or zero.","uniqueKey":"data.netFeeToSendingFirm.oneOf.0","typeLabel":"number"},{"type":"null","description":"attorneyFees × the sendingFirmPercentage published on this record ÷ 100, rounded to cents; at 33.33% it is exactly one third of attorneyFees. Null when either input is missing or zero.","uniqueKey":"data.netFeeToSendingFirm.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.netFeeToSendingFirm","typeLabel":"number | null"},"netFeeToHandlingFirm":{"oneOf":[{"type":"number","description":"attorneyFees − netFeeToSendingFirm. Null when netFeeToSendingFirm is null.","uniqueKey":"data.netFeeToHandlingFirm.oneOf.0","typeLabel":"number"},{"type":"null","description":"attorneyFees − netFeeToSendingFirm. Null when netFeeToSendingFirm is null.","uniqueKey":"data.netFeeToHandlingFirm.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.netFeeToHandlingFirm","typeLabel":"number | null"},"resolutionDate":{"oneOf":[{"type":"string","format":"date-time","description":"When the outcome was recorded: the most recent transition into CLOSING, or into WON/LOST for legacy referrals that never passed through CLOSING.","uniqueKey":"data.resolutionDate.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"When the outcome was recorded: the most recent transition into CLOSING, or into WON/LOST for legacy referrals that never passed through CLOSING.","uniqueKey":"data.resolutionDate.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.resolutionDate","typeLabel":"string\u003cdate-time> | null"},"closedDate":{"oneOf":[{"type":"string","format":"date-time","description":"The most recent transition into CLOSED.","uniqueKey":"data.closedDate.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"The most recent transition into CLOSED.","uniqueKey":"data.closedDate.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.closedDate","typeLabel":"string\u003cdate-time> | null"},"statuteOfLimitationsExpiration":{"oneOf":[{"type":"string","format":"date-time","uniqueKey":"data.statuteOfLimitationsExpiration.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","uniqueKey":"data.statuteOfLimitationsExpiration.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.statuteOfLimitationsExpiration","typeLabel":"string\u003cdate-time> | null"},"phase":{"oneOf":[{"type":"string","uniqueKey":"data.phase.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.phase.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.phase","typeLabel":"string | null"},"isRetainerSigned":{"type":"boolean","uniqueKey":"data.isRetainerSigned","typeLabel":"boolean"},"sentDate":{"oneOf":[{"type":"string","format":"date-time","uniqueKey":"data.sentDate.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","uniqueKey":"data.sentDate.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentDate","typeLabel":"string\u003cdate-time> | null"},"signedDate":{"oneOf":[{"type":"string","format":"date-time","uniqueKey":"data.signedDate.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","uniqueKey":"data.signedDate.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.signedDate","typeLabel":"string\u003cdate-time> | null"},"createdBy":{"type":"string","format":"uuid","example":"3f6c2a9e-8d41-4b7a-9c15-2e7f0b4d8a61","description":"ID of the user who created the referral.","uniqueKey":"data.createdBy","typeLabel":"string\u003cuuid>"},"lastUpdatedBy":{"oneOf":[{"type":"string","format":"uuid","example":"7b1e9d34-5a20-4c8f-b6e3-91d2f4a07c58","description":"ID of the user who last updated the referral; null when no user has edited it (system and integration writes).","uniqueKey":"data.lastUpdatedBy.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","example":"7b1e9d34-5a20-4c8f-b6e3-91d2f4a07c58","description":"ID of the user who last updated the referral; null when no user has edited it (system and integration writes).","uniqueKey":"data.lastUpdatedBy.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.lastUpdatedBy","typeLabel":"string\u003cuuid> | null"},"createdAt":{"type":"string","format":"date-time","uniqueKey":"data.createdAt","typeLabel":"string\u003cdate-time>"},"updatedAt":{"type":"string","format":"date-time","uniqueKey":"data.updatedAt","typeLabel":"string\u003cdate-time>"}},"isRequired":true,"uniqueKey":"data","typeLabel":"object"},"meta":{"type":"object","properties":{"requestId":{"type":"string","example":"req_f2dbe1d3f6ad4a7bb5b4c9f2","isRequired":true,"uniqueKey":"meta.requestId","typeLabel":"string"},"timestamp":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"meta.timestamp","typeLabel":"string\u003cdate-time>"}},"required":["requestId","timestamp"],"isRequired":true,"uniqueKey":"meta","typeLabel":"object"}},"required":["data","meta"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"data":{"id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","baseCaseId":"3c90c3cc-0d44-4b50-8888-8dd25736052a","referenceNumber":"ABC-0001","status":"\u003cstring>","closingStatus":"won_settled","payoutType":"lump_sum","closureReason":"\u003cstring>","settlementAmount":500000000,"attorneyFees":500000000,"clientFeeAgreementPercentage":0.5,"projectedSettlementAmount":500000000,"estimatedDateOfResolution":"2023-11-07T05:31:56Z","estimatedDistributionDate":"2023-11-07T05:31:56Z","leadAttorneyName":"\u003cstring>","leadAttorneyEmail":"jsmith@example.com","handlingTeamName":"\u003cstring>","handlingTeamEmail":"jsmith@example.com","referringFirmId":"3c90c3cc-0d44-4b50-8888-8dd25736052a","referentFirmId":"3c90c3cc-0d44-4b50-8888-8dd25736052a","lookNumber":2,"lookType":"first","isLatestLook":true,"title":"\u003cstring>","description":"\u003cstring>","caseType":"\u003cstring>","jurisdiction":"\u003cstring>","caseCounty":"\u003cstring>","county":"\u003cstring>","clientFirstName":"\u003cstring>","clientLastName":"\u003cstring>","clientEmail":"jsmith@example.com","clientPhone":"\u003cstring>","clientDateOfBirth":"2023-12-25","incidentDate":"2023-12-25","notes":"\u003cstring>","warmTransferSuccessful":true,"warmTransferUnsuccessfulReason":"\u003cstring>","warmTransferUnsuccessfulReasonType":"FIRM_UNABLE_TO_ANSWER","sendingFirmPercentage":123,"netFeeToSendingFirm":123,"netFeeToHandlingFirm":123,"resolutionDate":"2023-11-07T05:31:56Z","closedDate":"2023-11-07T05:31:56Z","statuteOfLimitationsExpiration":"2023-11-07T05:31:56Z","phase":"\u003cstring>","isRetainerSigned":true,"sentDate":"2023-11-07T05:31:56Z","signedDate":"2023-11-07T05:31:56Z","createdBy":"3f6c2a9e-8d41-4b7a-9c15-2e7f0b4d8a61","lastUpdatedBy":"7b1e9d34-5a20-4c8f-b6e3-91d2f4a07c58","createdAt":"2023-11-07T05:31:56Z","updatedAt":"2023-11-07T05:31:56Z"},"meta":{"requestId":"req_f2dbe1d3f6ad4a7bb5b4c9f2","timestamp":"2023-11-07T05:31:56Z"}}}},"exampleType":"generated"}},"exampleType":"generated"},"39713de8-b556-4c61-9a96-bf73a7148765":{"description":"Request validation failed","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"}},"required":["code","message"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"},"meta":{"type":"object","properties":{"requestId":{"type":"string","example":"req_f2dbe1d3f6ad4a7bb5b4c9f2","isRequired":true,"uniqueKey":"meta.requestId","typeLabel":"string"},"timestamp":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"meta.timestamp","typeLabel":"string\u003cdate-time>"}},"required":["requestId","timestamp"],"isRequired":true,"uniqueKey":"meta","typeLabel":"object"}},"required":["error","meta"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"\u003cstring>","message":"\u003cstring>"},"meta":{"requestId":"req_f2dbe1d3f6ad4a7bb5b4c9f2","timestamp":"2023-11-07T05:31:56Z"}}}},"exampleType":"generated"}},"exampleType":"generated"},"52d32848-e012-42d3-b088-d3bfdfedc2cf":{"description":"Invalid or missing API key","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"}},"required":["code","message"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"},"meta":{"type":"object","properties":{"requestId":{"type":"string","example":"req_f2dbe1d3f6ad4a7bb5b4c9f2","isRequired":true,"uniqueKey":"meta.requestId","typeLabel":"string"},"timestamp":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"meta.timestamp","typeLabel":"string\u003cdate-time>"}},"required":["requestId","timestamp"],"isRequired":true,"uniqueKey":"meta","typeLabel":"object"}},"required":["error","meta"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"\u003cstring>","message":"\u003cstring>"},"meta":{"requestId":"req_f2dbe1d3f6ad4a7bb5b4c9f2","timestamp":"2023-11-07T05:31:56Z"}}}},"exampleType":"generated"}},"exampleType":"generated"},"63ae6f4f-4a00-4cc3-ac18-926e4302b831":{"description":"API key tier does not permit this action","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"}},"required":["code","message"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"},"meta":{"type":"object","properties":{"requestId":{"type":"string","example":"req_f2dbe1d3f6ad4a7bb5b4c9f2","isRequired":true,"uniqueKey":"meta.requestId","typeLabel":"string"},"timestamp":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"meta.timestamp","typeLabel":"string\u003cdate-time>"}},"required":["requestId","timestamp"],"isRequired":true,"uniqueKey":"meta","typeLabel":"object"}},"required":["error","meta"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"\u003cstring>","message":"\u003cstring>"},"meta":{"requestId":"req_f2dbe1d3f6ad4a7bb5b4c9f2","timestamp":"2023-11-07T05:31:56Z"}}}},"exampleType":"generated"}},"exampleType":"generated"},"32881973-aae4-4cca-ad4c-3ad537bca3c7":{"description":"Resource not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"}},"required":["code","message"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"},"meta":{"type":"object","properties":{"requestId":{"type":"string","example":"req_f2dbe1d3f6ad4a7bb5b4c9f2","isRequired":true,"uniqueKey":"meta.requestId","typeLabel":"string"},"timestamp":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"meta.timestamp","typeLabel":"string\u003cdate-time>"}},"required":["requestId","timestamp"],"isRequired":true,"uniqueKey":"meta","typeLabel":"object"}},"required":["error","meta"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"\u003cstring>","message":"\u003cstring>"},"meta":{"requestId":"req_f2dbe1d3f6ad4a7bb5b4c9f2","timestamp":"2023-11-07T05:31:56Z"}}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"3704123a-6c98-42e8-8509-be00aa09eeea":{"apiKeyAuth":{"type":"apiKey","in":"header","name":"X-API-Key","description":"Public API key: `cxp_\u003chex>` (firm-scoped) or `cxpp_\u003chex>` (provider-scoped). Required on every request.","scopes":[],"schemeName":"apiKeyAuth"}}},"servers":{"345f5755-9455-47f7-b251-5ea16ce352e2":{"url":"https://api.casexchange.com/api/public/v1","description":"Production Public API base path"},"95e4cacd-c70c-4f31-af42-14e9bf3f2ac6":{"url":"/api/public/v1","description":"Relative base path (for proxied docs/local environments)"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"X-API-Key","description":"Public API key: `cxp_\u003chex>` (firm-scoped) or `cxpp_\u003chex>` (provider-scoped). Required on every request.","scopes":[],"schemeName":"apiKeyAuth"},"schema":{"title":"X-API-Key","type":"string","description":"Public API key: `cxp_\u003chex>` (firm-scoped) or `cxpp_\u003chex>` (provider-scoped). Required on every request.","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"apiKeyAuth","name":"X-API-Key"}],"title":"apiKeyAuth"}]},"originalFileLocation":"api-reference/openapi.yml"},"subdomain":"casexchange","siteName":"CaseXchange Public API","title":"Close a case - CaseXchange Public API","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-22T01:28:09.933Z","originalFileLocation":"api-reference/cases/close-a-case.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=\"Initiates the closing workflow for a case. Requires STANDARD tier.\">\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=\"Close a case - CaseXchange Public API\">\u003cmeta data-mint-head property=\"og:description\" content=\"Initiates the closing workflow for a case. Requires STANDARD tier.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"CaseXchange Public API\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.casexchange.com/api-reference/cases/close-a-case\">\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=Cases\u0026amp;title=Close+a+case\u0026amp;description=Initiates+the+closing+workflow+for+a+case.+Requires+STANDARD+tier.\u0026amp;theme=2a243f5ae05e2e0c81058e5c\u0026amp;signature=274910416c0dcf46f311a9b9ea4071cfb469bf0a78bd829cdf7b79461f7b30f5\">\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=\"Close a case - CaseXchange Public API\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Initiates the closing workflow for a case. Requires STANDARD tier.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://casexchange.mintlify.site/_mintlify/api/og/v2?division=Cases\u0026amp;title=Close+a+case\u0026amp;description=Initiates+the+closing+workflow+for+a+case.+Requires+STANDARD+tier.\u0026amp;theme=2a243f5ae05e2e0c81058e5c\u0026amp;signature=274910416c0dcf46f311a9b9ea4071cfb469bf0a78bd829cdf7b79461f7b30f5\">\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/api-reference/cases/close-a-case\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/cases/close-a-case.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/api-reference/cases/close-a-case#webpage\",\"url\":\"https://docs.casexchange.com/api-reference/cases/close-a-case\",\"name\":\"Close a case\",\"description\":\"Initiates the closing workflow for a case. Requires STANDARD tier.\",\"dateModified\":\"2026-11-22T01:28:09.933Z\",\"isPartOf\":{\"@id\":\"https://docs.casexchange.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.casexchange.com/api-reference/cases/close-a-case#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.casexchange.com/api-reference/cases/close-a-case#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Endpoints\",\"item\":\"https://docs.casexchange.com/api-reference/account/identify-the-calling-api-key\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Cases\",\"item\":\"https://docs.casexchange.com/api-reference/cases/list-cases\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Close a case\",\"item\":\"https://docs.casexchange.com/api-reference/cases/close-a-case\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.casexchange.com/api-reference/cases/close-a-case#apireference\",\"headline\":\"Close a case\",\"name\":\"Close a case\",\"description\":\"Initiates the closing workflow for a case. Requires STANDARD tier.\",\"url\":\"https://docs.casexchange.com/api-reference/cases/close-a-case\",\"mainEntityOfPage\":{\"@id\":\"https://docs.casexchange.com/api-reference/cases/close-a-case#webpage\"},\"dateModified\":\"2026-11-22T01:28:09.933Z\",\"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":"/api-reference/cases/close-a-case.md","siteName":"CaseXchange Public API","nav":{"global":null,"tabs":[{"tab":"Guides","pages":[{"title":"Guides","href":""}]},{"tab":"API","groups":[{"group":"Get started","pages":[{"title":"Integration Overview","icon":"terminal","sidebarTitle":"Introduction","href":"/api-reference/overview"},{"title":"Response Format","icon":"brackets-curly","sidebarTitle":"Response format","href":"/api-reference/response-format"},{"title":"Error Handling","icon":"triangle-exclamation","sidebarTitle":"Error handling","href":"/api-reference/error-handling"},{"title":"Integration Workflows","icon":"diagram-project","sidebarTitle":"Workflows","href":"/api-reference/workflows"}]},{"group":"Endpoints","pages":[{"group":"Account","expanded":false,"pages":[{"title":"Identify the calling API key","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /me","href":"/api-reference/account/identify-the-calling-api-key"},{"title":"List your practice's clinicians","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /me/doctors","href":"/api-reference/account/list-your-practices-clinicians"},{"title":"List your practice's locations","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /me/locations","href":"/api-reference/account/list-your-practices-locations"}]},{"group":"Analytics","expanded":false,"pages":[{"title":"Get dashboard analytics","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /analytics/dashboard","href":"/api-reference/analytics/get-dashboard-analytics"},{"title":"Get case analytics","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /analytics/cases","href":"/api-reference/analytics/get-case-analytics"},{"title":"Get sent-referral analytics","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /analytics/sent","href":"/api-reference/analytics/get-sent-referral-analytics"},{"title":"Get received-referral analytics","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /analytics/received","href":"/api-reference/analytics/get-received-referral-analytics"},{"title":"Get homepage analytics","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /analytics/homepage","href":"/api-reference/analytics/get-homepage-analytics"},{"title":"List cases in a status","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /analytics/cases-by-status","href":"/api-reference/analytics/list-cases-in-a-status"},{"title":"Get received-referral revenue analytics","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /analytics/revenue-received","href":"/api-reference/analytics/get-received-referral-revenue-analytics"},{"title":"Get sent-referral revenue analytics","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /analytics/revenue-sent","href":"/api-reference/analytics/get-sent-referral-revenue-analytics"},{"title":"Get referral-flow analytics","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /analytics/referrals","href":"/api-reference/analytics/get-referral-flow-analytics"}]},{"group":"Cases","expanded":false,"pages":[{"title":"List cases","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /cases","href":"/api-reference/cases/list-cases"},{"title":"Create a case","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml post /cases","href":"/api-reference/cases/create-a-case"},{"title":"Get case by ID","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /cases/{id}","href":"/api-reference/cases/get-case-by-id"},{"title":"Update a case","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml put /cases/{id}","href":"/api-reference/cases/update-a-case"},{"title":"Delete a case","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml delete /cases/{id}","href":"/api-reference/cases/delete-a-case"},{"title":"Get case status history","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /cases/{id}/status-history","href":"/api-reference/cases/get-case-status-history"},{"title":"Acknowledge a case","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml post /cases/{id}/acknowledge","href":"/api-reference/cases/acknowledge-a-case"},{"title":"Update case status","description":"Transitions a case to a new status. Invalid transitions are rejected. Moving a case to `closed` returns 409 `additional_parties_unresolved` while it has unresolved additional parties. Requires STANDARD tier.","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml post /cases/{id}/status","href":"/api-reference/cases/update-case-status"},{"title":"Close a case","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml post /cases/{id}/close","href":"/api-reference/cases/close-a-case"}]},{"group":"Documents","expanded":false,"pages":[{"title":"List documents for a case","description":"Returns all documents attached to the specified case.","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /cases/{caseId}/documents","href":"/api-reference/documents/list-documents-for-a-case"},{"title":"Upload a document","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml post /cases/{caseId}/documents","href":"/api-reference/documents/upload-a-document"},{"title":"Get document download URL","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /cases/{caseId}/documents/{docId}/download","href":"/api-reference/documents/get-document-download-url"},{"title":"Delete a document","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml delete /cases/{caseId}/documents/{docId}","href":"/api-reference/documents/delete-a-document"}]},{"group":"Export","expanded":false,"pages":[{"title":"Download the full analytics workbook","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /analytics/export","href":"/api-reference/export/download-the-full-analytics-workbook"},{"title":"Download one analytics category as XLSX","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /analytics/{category}/export","href":"/api-reference/export/download-one-analytics-category-as-xlsx"},{"title":"Download case data as CSV or XLSX","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /cases/export","href":"/api-reference/export/download-case-data-as-csv-or-xlsx"}]},{"group":"Extension","expanded":false,"pages":[{"title":"Report a selector miss from the browser extension","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml post /extension/telemetry/selector-miss","href":"/api-reference/extension/report-a-selector-miss-from-the-browser-extension"}]},{"group":"External Links","expanded":false,"pages":[{"title":"List external links for a system","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /external-links/list","href":"/api-reference/external-links/list-external-links-for-a-system"},{"title":"Look up a link by external ID","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /external-links","href":"/api-reference/external-links/look-up-a-link-by-external-id"},{"title":"Create an external link","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml post /external-links","href":"/api-reference/external-links/create-an-external-link"},{"title":"Replace an external link","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml post /external-links/{id}/replace","href":"/api-reference/external-links/replace-an-external-link"},{"title":"Delete an external link","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml delete /external-links/{id}","href":"/api-reference/external-links/delete-an-external-link"}]},{"group":"Firms","expanded":false,"pages":[{"title":"List firms directory","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /firms/directory","href":"/api-reference/firms/list-firms-directory"},{"title":"Get the caller's firm","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /firms/me","href":"/api-reference/firms/get-the-callers-firm"},{"title":"Update the caller's firm","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml put /firms/me","href":"/api-reference/firms/update-the-callers-firm"},{"title":"List firms available to receive referrals","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /firms/available","href":"/api-reference/firms/list-firms-available-to-receive-referrals"},{"title":"Get firm by ID","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /firms/{id}","href":"/api-reference/firms/get-firm-by-id"}]},{"group":"Health","expanded":false,"pages":[{"title":"Public API health check","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /health","href":"/api-reference/health/public-api-health-check"}]},{"group":"Import","expanded":false,"pages":[{"title":"Bulk import cases via CSV","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml post /import/cases","href":"/api-reference/import/bulk-import-cases-via-csv"},{"title":"Bulk update cases via CSV","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml post /import/cases/update","href":"/api-reference/import/bulk-update-cases-via-csv"},{"title":"Get a bulk update job","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /import/cases/update/jobs/{jobId}","href":"/api-reference/import/get-a-bulk-update-job"}]},{"group":"Med Cases","expanded":false,"pages":[{"title":"List med cases","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /med-cases","href":"/api-reference/med-cases/list-med-cases"},{"title":"Create a med case","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml post /med-cases","href":"/api-reference/med-cases/create-a-med-case"},{"title":"Get med case by ID","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /med-cases/{id}","href":"/api-reference/med-cases/get-med-case-by-id"},{"title":"Update a med case","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml put /med-cases/{id}","href":"/api-reference/med-cases/update-a-med-case"},{"title":"Delete a med case (not supported)","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml delete /med-cases/{id}","href":"/api-reference/med-cases/delete-a-med-case-not-supported"},{"title":"List referrals on a med case","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /med-cases/{id}/referrals","href":"/api-reference/med-cases/list-referrals-on-a-med-case"},{"title":"Create a referral on a med case","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml post /med-cases/{id}/referrals","href":"/api-reference/med-cases/create-a-referral-on-a-med-case"},{"title":"Get a referral on a med case","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /med-cases/{id}/referrals/{referralId}","href":"/api-reference/med-cases/get-a-referral-on-a-med-case"},{"title":"Update a referral on a med case","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml put /med-cases/{id}/referrals/{referralId}","href":"/api-reference/med-cases/update-a-referral-on-a-med-case"},{"title":"Acknowledge a med referral (provider)","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml post /med-cases/{id}/referrals/{referralId}/acknowledge","href":"/api-reference/med-cases/acknowledge-a-med-referral-provider"},{"title":"Accept a med referral (provider)","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml post /med-cases/{id}/referrals/{referralId}/accept","href":"/api-reference/med-cases/accept-a-med-referral-provider"},{"title":"Reject a med referral (provider)","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml post /med-cases/{id}/referrals/{referralId}/reject","href":"/api-reference/med-cases/reject-a-med-referral-provider"},{"title":"Start treatment on a med referral (provider)","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml post /med-cases/{id}/referrals/{referralId}/start-treatment","href":"/api-reference/med-cases/start-treatment-on-a-med-referral-provider"},{"title":"Complete treatment on a med referral (provider)","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml post /med-cases/{id}/referrals/{referralId}/complete-treatment","href":"/api-reference/med-cases/complete-treatment-on-a-med-referral-provider"},{"title":"Withdraw a med referral","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml post /med-cases/{id}/referrals/{referralId}/withdraw","href":"/api-reference/med-cases/withdraw-a-med-referral"},{"title":"Close a med referral","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml post /med-cases/{id}/referrals/{referralId}/close","href":"/api-reference/med-cases/close-a-med-referral"},{"title":"List insurance records the API key can access","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /insurances","href":"/api-reference/med-cases/list-insurance-records-the-api-key-can-access"},{"title":"Get a single insurance record","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /insurances/{id}","href":"/api-reference/med-cases/get-a-single-insurance-record"},{"title":"List insurance records for a single med case","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /med-cases/{id}/insurances","href":"/api-reference/med-cases/list-insurance-records-for-a-single-med-case"}]},{"group":"Med Appointments","expanded":false,"pages":[{"title":"List appointments on a med case","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /med-cases/{caseId}/appointments","href":"/api-reference/med-appointments/list-appointments-on-a-med-case"},{"title":"Add an appointment","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml post /med-cases/{caseId}/appointments","href":"/api-reference/med-appointments/add-an-appointment"},{"title":"Get an appointment","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /med-cases/{caseId}/appointments/{appointmentId}","href":"/api-reference/med-appointments/get-an-appointment"},{"title":"Edit an appointment","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml put /med-cases/{caseId}/appointments/{appointmentId}","href":"/api-reference/med-appointments/edit-an-appointment"},{"title":"Remove an appointment","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml delete /med-cases/{caseId}/appointments/{appointmentId}","href":"/api-reference/med-appointments/remove-an-appointment"}]},{"group":"Med Billing","expanded":false,"pages":[{"title":"List billing lines on an appointment","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /med-cases/{caseId}/appointments/{appointmentId}/billable-events","href":"/api-reference/med-billing/list-billing-lines-on-an-appointment"},{"title":"Add a billing line","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml post /med-cases/{caseId}/appointments/{appointmentId}/billable-events","href":"/api-reference/med-billing/add-a-billing-line"},{"title":"Edit a billing line","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml patch /med-cases/{caseId}/appointments/{appointmentId}/billable-events/{eventId}","href":"/api-reference/med-billing/edit-a-billing-line"},{"title":"Remove a billing line","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml delete /med-cases/{caseId}/appointments/{appointmentId}/billable-events/{eventId}","href":"/api-reference/med-billing/remove-a-billing-line"}]},{"group":"MedEx Documents","expanded":false,"pages":[{"title":"List MedEx case documents","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /med-cases/{caseId}/documents","href":"/api-reference/medex-documents/list-medex-case-documents"},{"title":"Upload a MedEx case document","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml post /med-cases/{caseId}/documents","href":"/api-reference/medex-documents/upload-a-medex-case-document"},{"title":"Retrieve a MedEx case document","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /med-cases/{caseId}/documents/{documentId}","href":"/api-reference/medex-documents/retrieve-a-medex-case-document"}]},{"group":"MedEx Pharmacy","expanded":false,"pages":[{"title":"List prescriptions routed to your pharmacy","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /med-cases/{caseId}/prescriptions","href":"/api-reference/med-prescriptions/list-prescriptions-routed-to-your-pharmacy"},{"title":"List pharmacy fills on a referral","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /med-cases/{caseId}/referrals/{referralId}/pharmacy/fills","href":"/api-reference/med-pharmacy-ledger/list-pharmacy-fills-on-a-referral"},{"title":"Record a dispensed fill","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml post /med-cases/{caseId}/referrals/{referralId}/pharmacy/fills","href":"/api-reference/med-pharmacy-ledger/record-a-dispensed-fill"},{"title":"Get a pharmacy fill","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /med-cases/{caseId}/referrals/{referralId}/pharmacy/fills/{fillId}","href":"/api-reference/med-pharmacy-ledger/get-a-pharmacy-fill"},{"title":"Edit a pharmacy fill","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml patch /med-cases/{caseId}/referrals/{referralId}/pharmacy/fills/{fillId}","href":"/api-reference/med-pharmacy-ledger/edit-a-pharmacy-fill"},{"title":"Void a pharmacy fill","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml post /med-cases/{caseId}/referrals/{referralId}/pharmacy/fills/{fillId}/void","href":"/api-reference/med-pharmacy-ledger/void-a-pharmacy-fill"},{"title":"List pharmacy transactions on a referral","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /med-cases/{caseId}/referrals/{referralId}/pharmacy/transactions","href":"/api-reference/med-pharmacy-ledger/list-pharmacy-transactions-on-a-referral"},{"title":"Record a payment or adjustment","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml post /med-cases/{caseId}/referrals/{referralId}/pharmacy/transactions","href":"/api-reference/med-pharmacy-ledger/record-a-payment-or-adjustment"},{"title":"Get a pharmacy transaction","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /med-cases/{caseId}/referrals/{referralId}/pharmacy/transactions/{transactionId}","href":"/api-reference/med-pharmacy-ledger/get-a-pharmacy-transaction"},{"title":"Edit a transaction's details","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml patch /med-cases/{caseId}/referrals/{referralId}/pharmacy/transactions/{transactionId}","href":"/api-reference/med-pharmacy-ledger/edit-a-transactions-details"},{"title":"Get the ledger balance for a referral","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /med-cases/{caseId}/referrals/{referralId}/pharmacy/balance","href":"/api-reference/med-pharmacy-ledger/get-the-ledger-balance-for-a-referral"},{"title":"List reported balance snapshots","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /med-cases/{caseId}/referrals/{referralId}/pharmacy/balance-snapshots","href":"/api-reference/med-pharmacy-ledger/list-reported-balance-snapshots"},{"title":"Report your current balance","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml post /med-cases/{caseId}/referrals/{referralId}/pharmacy/balance-snapshots","href":"/api-reference/med-pharmacy-ledger/report-your-current-balance"}]},{"group":"Messages","expanded":false,"pages":[{"title":"Send a partner message","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml post /messages/send","href":"/api-reference/messages/send-a-partner-message"}]},{"group":"Network","expanded":false,"pages":[{"title":"List pending relationships","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /network/pending","href":"/api-reference/network/list-pending-relationships"},{"title":"Get an outbound network firm","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /network/outbound/{firmId}","href":"/api-reference/network/get-an-outbound-network-firm"},{"title":"Create or update an outbound relationship","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml put /network/outbound/{firmId}","href":"/api-reference/network/create-or-update-an-outbound-relationship"},{"title":"Update an outbound relationship","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml patch /network/outbound/{firmId}","href":"/api-reference/network/update-an-outbound-relationship"},{"title":"Get an inbound network firm","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /network/inbound/{firmId}","href":"/api-reference/network/get-an-inbound-network-firm"},{"title":"Update or accept/reject an inbound relationship","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml patch /network/inbound/{firmId}","href":"/api-reference/network/update-or-acceptreject-an-inbound-relationship"}]},{"group":"Notifications","expanded":false,"pages":[{"title":"Get notification preferences","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /notifications/preferences","href":"/api-reference/notifications/get-notification-preferences"},{"title":"Update notification preferences","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml put /notifications/preferences","href":"/api-reference/notifications/update-notification-preferences"},{"title":"List notification email addresses","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /notifications/emails","href":"/api-reference/notifications/list-notification-email-addresses"},{"title":"Add a notification email address","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml post /notifications/emails","href":"/api-reference/notifications/add-a-notification-email-address"}]},{"group":"Received Referrals","expanded":false,"pages":[{"title":"List received referrals","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /received-referrals","href":"/api-reference/received-referrals/list-received-referrals"},{"title":"Get available status transitions (receiver)","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /received-referrals/{id}/available-statuses","href":"/api-reference/received-referrals/get-available-status-transitions-receiver"},{"title":"Get a received referral","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /received-referrals/{id}","href":"/api-reference/received-referrals/get-a-received-referral"},{"title":"Update a received referral","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml patch /received-referrals/{id}","href":"/api-reference/received-referrals/update-a-received-referral"}]},{"group":"Reference Data","expanded":false,"pages":[{"title":"List case types","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /case-types","href":"/api-reference/reference-data/list-case-types"},{"title":"List custom fields for a case type","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /case-types/{id}/fields","href":"/api-reference/reference-data/list-custom-fields-for-a-case-type"},{"title":"List jurisdictions","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /jurisdictions","href":"/api-reference/reference-data/list-jurisdictions"},{"title":"List counties","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /counties","href":"/api-reference/reference-data/list-counties"}]},{"group":"Referrals","expanded":false,"pages":[{"title":"List referrals","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /referrals","href":"/api-reference/referrals/list-referrals"},{"title":"Find referrals by client identifiers","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml post /referrals/match","href":"/api-reference/referrals/find-referrals-by-client-identifiers"},{"title":"Get referral status history","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /referrals/{id}/status-history","href":"/api-reference/referrals/get-referral-status-history"},{"title":"Get available status transitions","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /referrals/{id}/available-statuses","href":"/api-reference/referrals/get-available-status-transitions"},{"title":"Get referral by ID","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /referrals/{id}","href":"/api-reference/referrals/get-referral-by-id"},{"title":"Update a referral","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml put /referrals/{id}","href":"/api-reference/referrals/update-a-referral"},{"title":"Delete a draft referral","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml delete /referrals/{id}","href":"/api-reference/referrals/delete-a-draft-referral"},{"title":"Send a draft referral","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml post /referrals/{id}/send","href":"/api-reference/referrals/send-a-draft-referral"},{"title":"Acknowledge a referral","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml post /referrals/{id}/acknowledge","href":"/api-reference/referrals/acknowledge-a-referral"},{"title":"Begin investigating","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml post /referrals/{id}/begin-investigating","href":"/api-reference/referrals/begin-investigating"},{"title":"Mark a referral as signed","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml post /referrals/{id}/sign","href":"/api-reference/referrals/mark-a-referral-as-signed"},{"title":"Start litigation","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml post /referrals/{id}/start-litigation","href":"/api-reference/referrals/start-litigation"},{"title":"Begin closing","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml post /referrals/{id}/begin-closing","href":"/api-reference/referrals/begin-closing"},{"title":"Close a referral","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml post /referrals/{id}/close","href":"/api-reference/referrals/close-a-referral"},{"title":"Reject a referral","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml post /referrals/{id}/reject","href":"/api-reference/referrals/reject-a-referral"},{"title":"Withdraw a referral","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml post /referrals/{id}/withdraw","href":"/api-reference/referrals/withdraw-a-referral"}]},{"group":"Routing","expanded":false,"pages":[{"title":"Evaluate routing for a case profile","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /routing/evaluate","href":"/api-reference/routing/evaluate-routing-for-a-case-profile"},{"title":"Evaluate routing for an existing case (re-refer)","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /routing/re-refer","href":"/api-reference/routing/evaluate-routing-for-an-existing-case-re-refer"},{"title":"List routing rules","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /routing/rules","href":"/api-reference/routing/list-routing-rules"},{"title":"Create a routing rule","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml post /routing/rules","href":"/api-reference/routing/create-a-routing-rule"},{"title":"Update a routing rule","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml put /routing/rules/{id}","href":"/api-reference/routing/update-a-routing-rule"},{"title":"Delete a routing rule","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml delete /routing/rules/{id}","href":"/api-reference/routing/delete-a-routing-rule"}]},{"group":"Salesforce","expanded":false,"pages":[{"title":"Get the active sending-profile mapping for an object/record-type","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /salesforce/send-mapping","href":"/api-reference/salesforce/get-the-active-sending-profile-mapping-for-an-objectrecord-type"},{"title":"Send a Salesforce record to CaseXchange as a new case or re-referral","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml post /salesforce/interactive-sends","href":"/api-reference/salesforce/send-a-salesforce-record-to-casexchange-as-a-new-case-or-re-referral"}]},{"group":"Sent Cases","expanded":false,"pages":[{"title":"List sent cases","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /sent-cases","href":"/api-reference/sent-cases/list-sent-cases"},{"title":"Create a sent case","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml post /sent-cases","href":"/api-reference/sent-cases/create-a-sent-case"},{"title":"Get a sent case","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /sent-cases/{id}","href":"/api-reference/sent-cases/get-a-sent-case"},{"title":"Update a sent case","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml patch /sent-cases/{id}","href":"/api-reference/sent-cases/update-a-sent-case"},{"title":"Get available status transitions (sender)","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /sent-cases/{id}/available-statuses","href":"/api-reference/sent-cases/get-available-status-transitions-sender"},{"title":"Refer / re-refer a sent case","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml post /sent-cases/{id}/refer","href":"/api-reference/sent-cases/refer-re-refer-a-sent-case"}]},{"group":"SSO","expanded":false,"pages":[{"title":"Mint a single-use SSO link","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml post /sso-links","href":"/api-reference/sso/mint-a-single-use-sso-link"}]},{"group":"Status Updates","expanded":false,"pages":[{"title":"Look up status updates by flexible id","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /status-updates/lookup","href":"/api-reference/status-updates/look-up-status-updates-by-flexible-id"},{"title":"List status updates","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /status-updates","href":"/api-reference/status-updates/list-status-updates"}]},{"group":"Users","expanded":false,"pages":[{"title":"List the caller's firm users","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /users","href":"/api-reference/users/list-the-callers-firm-users"},{"title":"Invite a user","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml post /users","href":"/api-reference/users/invite-a-user"},{"title":"Update a user","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml put /users/{id}","href":"/api-reference/users/update-a-user"},{"title":"Deactivate a user","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml delete /users/{id}","href":"/api-reference/users/deactivate-a-user"}]},{"group":"Webhooks","expanded":false,"pages":[{"title":"List webhook subscriptions","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /webhooks","href":"/api-reference/webhooks/list-webhook-subscriptions"},{"title":"Create a webhook subscription","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml post /webhooks","href":"/api-reference/webhooks/create-a-webhook-subscription"},{"title":"Get a webhook subscription","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /webhooks/{id}","href":"/api-reference/webhooks/get-a-webhook-subscription"},{"title":"Update a webhook subscription","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml patch /webhooks/{id}","href":"/api-reference/webhooks/update-a-webhook-subscription"},{"title":"Delete a webhook subscription","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml delete /webhooks/{id}","href":"/api-reference/webhooks/delete-a-webhook-subscription"},{"title":"List deliveries for a webhook subscription","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /webhooks/{id}/deliveries","href":"/api-reference/webhooks/list-deliveries-for-a-webhook-subscription"},{"title":"Send a test event","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml post /webhooks/{id}/test","href":"/api-reference/webhooks/send-a-test-event"},{"title":"Rotate the signing secret","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml post /webhooks/{id}/rotate-secret","href":"/api-reference/webhooks/rotate-the-signing-secret"},{"title":"Enable echo mode","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml post /webhooks/{id}/echo/enable","href":"/api-reference/webhooks/enable-echo-mode"},{"title":"Disable echo mode","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml post /webhooks/{id}/echo/disable","href":"/api-reference/webhooks/disable-echo-mode"},{"title":"List echo captures","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /webhooks/{id}/echo/captures","href":"/api-reference/webhooks/list-echo-captures"}]}]}]},{"tab":"Webhooks","pages":[{"title":"Webhooks","href":"/webhooks"}]}]},"basePath":"","title":"Close a case - CaseXchange Public API","deploymentId":"dpl_BLZw3QngerHodH9E8mGgC4v752y3","buildId":"dpl_BLZw3QngerHodH9E8mGgC4v752y3","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CaRkHcld.js","snippetPresets-CbOVSLWB.js","utils-cjri0g4r.js","style-to-object-BY3JEAdk.js","utils-DINdUa17.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-B6z-PJGf.js","conditional-requirements-CFM0id0Q.js","cloneDeep-BldndzCM.js","_Uint8Array-BFUkDgJK.js","isObject-FP1Yky1u.js","ApiExamples-gah5G0c1.js","usePlaygroundInputsStore-DMbftGRK.js","shallow-BPuQ-dV8.js","isEqual-Du6c450V.js","CodeSnippets-BSVM0Ibi.js","CodeSnippet-BtGQRZnK.js","use-playground-group-access-98JyaSW7.js","Page-DuvGhd6e.js","api-description-markdown-ja0XM5Ae.js","DynamicMarkdown-DgKZ4_wp.js","SectionHeading-S4Jc_qPe.js","MethodPill-HIsDH_bI.js","getPastedJson-BKEmMYEO.js","Check2Icon-CRFAnWm9.js","axios-CsQoIw0U.js","Markdown-CexXCNoj.js","AssistantPageLink-C2AZnMAs.js","dist-CjxLTLs9.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}