Skip to main content
POST
Attach insurance to an existing patient

Authorizations

Authorization
string
header
required

Marketplace API key

Headers

idempotency-key
string

Client-generated key protecting retries for 24 hours

X-Organization-Id
string
required

Target clinic organization ID

Path Parameters

id
string
required

Patient ID

Body

application/json
payerName
string
required
Example:

"BCBS of Michigan"

memberId
string
required
Example:

"XYZ123456"

groupNumber
string
Example:

"0009"

subscriberRelationship
string

The policyholder's relationship to the patient. SELF (the default) means the patient is the policyholder. Anything else — SPOUSE, CHILD, … — REQUIRES the subscriber* fields below; without them the request is rejected with subscriber_required rather than writing a policy whose policyholder is unknown.

Example:

"SELF"

subscriberFirstName
string

Policyholder's first name. Required when subscriberRelationship is not SELF.

Example:

"Robert"

subscriberLastName
string

Policyholder's last name. Required when subscriberRelationship is not SELF.

Example:

"Doe"

subscriberDateOfBirth
string

Policyholder's date of birth, YYYY-MM-DD. Required when subscriberRelationship is not SELF — a claim identifies the subscriber by name AND date of birth, so a name alone still sends the biller back to the patient.

Example:

"1968-03-14"

subscriberSex
enum<string>

Policyholder's sex, as the payer knows it. A professional claim's 2010BA loop carries the subscriber's DMG demographics — date of birth AND gender — so omitting it leaves a correctable rejection on the table. NOT required: unlike name and date of birth, a missing gender does not make the policyholder unidentifiable, so it is never a reason to refuse the write.

Available options:
M,
F,
U
Example:

"M"

subscriberAddress
object

Policyholder's address, for the claim's 2010BA N3/N4 segments. Omit and set subscriberAddressSameAsPatient instead when the policyholder lives with the patient — the common case for a spouse or dependant, and the one ModMed models natively.

subscriberAddressSameAsPatient
boolean

true when the policyholder lives at the patient's address. Maps to ModMed's own policyHolderAddressSameAsPatients, so the EHR resolves the address itself rather than us copying it and creating a second copy that can drift. Mutually exclusive with subscriberAddress; supplying both is rejected.

Example:

true

planName
string

Plan name as printed on the card (e.g. PPO Gold). Previously always written as null; supply it when the card shows it.

Example:

"PPO Gold"

Response

Success

code
string
required

Response code

Example:

"success"

data
object
required