Skip to main content
PATCH
Update a received 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
required

Flexible identifier. Accepts a referral UUID, a base-case UUID, a CaseXchange reference number (e.g. PREFIX-0001, exact match), or one of the calling firm's own integration ids: a case-management id it holds on a referral it received (DearLegal case id, Neos intake id, Clio matter id, SmartAdvocate case id, Salesforce intake record id, Case Status user-entered id, or numeric Case Status internal id), or the Salesforce record id of a case it sent. An integration id belongs to the firm whose system it points to: another firm's ids never resolve, not even on a case both firms share. Resolution order is UUID, then reference number, then integration ids; the match must be a referral received by the calling firm or the request returns 404. A case-management or Case Status id that matches more than one of the calling firm's cases returns 409 ambiguous_external_id; one that matches several referrals of a single case (the firm received the case again) resolves to the live referral. The Salesforce record id of cases the firm sent resolves to the one still being referred (latest referral not rejected, withdrawn or closed), or to the newest when none is, and returns 409 only when more than one is still being referred.

Minimum string length: 1

Body

application/json
leadAttorneyName
string | null
Maximum string length: 500
statuteOfLimitationsExpiration
string<date> | null

YYYY-MM-DD

clientFeeAgreementPercentage
number | null

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 | null

Attorney fees in dollars

Required range: 0 <= x <= 1000000000
estimatedDateOfResolution
string<date> | null

YYYY-MM-DD

estimatedDistributionDate
string<date> | null

YYYY-MM-DD

projectedSettlementAmount
number | null

Projected settlement amount in dollars

Required range: 0 <= x <= 1000000000
phase
string | null
Maximum string length: 200
sendingFirmPercentage
number | null

Referral fee owed to the sending firm as a WHOLE-NUMBER percent of attorney fees (33.33 = 33.33%). Input values strictly between 0 and 1 are rejected as likely fractions; 0 means no fee.

Required range: 0 <= x <= 100
settlementAmount
number | null

Final settlement amount in dollars

Required range: 0 <= x <= 1000000000
notes
string | null
Maximum string length: 10000
customFields
object[]

Custom field values to set. Custom fields can only be updated by the receiving firm once the referral is SIGNED or later; otherwise the request is rejected with 403.

Response

Updated received referral

data
object
required

Full detail of a referral received by the calling firm, with the parent case flattened in. While the referral is still SENT (not yet acknowledged) the client PII fields, description, notes, leadAttorneyName, warmTransferUnsuccessfulReason and warmTransferUnsuccessfulReasonType are null. An admin-global key sees unmasked values.

meta
object
required