Skip to main content
POST
Close a referral

Authorizations

X-API-Key
string
header
required

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
closureReason
string
required
Required string length: 1 - 5000
reason
string

Optional note recorded on the resulting status-history entry. Line breaks are collapsed to spaces.

Required string length: 1 - 5000

Response

Updated referral

data
object
required

A referral as seen by either party. Mostly referral-level fields (financials, resolution, workflow); of the parent case's details only caseType and clientPhone are included — the rest live on the case (GET /cases/{id}). When the caller is the receiving firm and the referral is still SENT (not yet acknowledged), or was withdrawn or expired directly from SENT without being acknowledged, clientPhone, leadAttorneyName, leadAttorneyEmail, handlingTeamName, handlingTeamEmail, warmTransferUnsuccessfulReason, warmTransferUnsuccessfulReasonType and notes are null and customFields is empty. Acknowledging (POST /referrals/{id}/acknowledge) unmasks them.

meta
object
required