Create an external insurance record
Records a policy the tenant bought from an insurer outside MagicDoor, on their behalf. The record is created awaiting review and does not cover the lease until it is approved. Requires the leasing_insurance:write permission.
Authorization
AuthorizationstringrequiredBody
application/json
To attach the tenant's policy document, first create an upload session, upload the file to the address it returns, then send that session's id here as uploadSessionId.
leaseIdstringrequiredThe lease the policy covers. It must belong to the calling company.
carrierNamestringrequiredThe insurance company that issued the policy. Up to 250 characters.
policyNumberstringrequiredThe policy number from the document. Up to 250 characters.
coverageAmountnumberrequiredCoverage in dollars. Must be greater than 0.
policyStartDatestring · date-timerequiredWhen the policy takes effect. Must be earlier than policyEndDate.
policyEndDatestring · date-timerequiredWhen the policy expires. Must be in the future.
stateenum<string>Accepted by the request but not applied: the record is always created awaiting review. Use the approve endpoint to approve it.
fileIdstringdeprecatedThe id of a file already uploaded to the Files service. Use uploadSessionId instead.
uploadSessionIdstringThe id of the upload session the policy document was uploaded through. The document is attached to the record and kept.
Response
200 · The record that was created. Its `state` is `pending`.
idstringThe external insurance record's id.
leaseIdstringThe lease this policy covers.
companyIdstringThe company that owns the lease.
carrierNamestringThe insurance company that issued the policy. An empty string when none was recorded.
policyNumberstringThe policy number taken from the document. Absent when none was recorded.
coverageAmountnumberCoverage in dollars. Absent when none was recorded.
policyStartDatestring · date-timeWhen the policy takes effect.
policyEndDatestring · date-timeWhen the policy expires.
stateenum<string>Where the record stands with the reviewer. A new record starts at pending; only an approved record counts as coverage for the lease.
rejectionReasonstringWhy the record was rejected. Absent unless state is rejected and a reason was given.
insurancePolicyFileobjectThe uploaded proof of insurance. Absent when the record has no document attached.
deletedstring · date-timeWhen the record was deleted. Absent while the record is live.
createdstring · date-timeWhen the record was created.
updatedstring · date-timeWhen the record last changed.