Attach a document to the draft
Finalises an upload session and files the uploaded document against one entry of the draft's document checklist. Requires the business_info:write permission.
Authorization
AuthorizationstringrequiredPath parameters
businessInfoIdstringrequiredThe business legal entity, as a Snowflake id in decimal string form.
Body
application/json
obligationKeystringrequiredWhich checklist entry the file satisfies — a key from resolvedRequirement.businessDocuments or resolvedRequirement.principalDocuments. 1 to 100 characters.
uploadSessionIdstringrequiredThe upload session the file was uploaded through, as a Snowflake id in decimal string form.
principalIdstringThe principal the file belongs to, as a Snowflake id in decimal string form. Required when obligationKey names a principal checklist entry, and must be left out for a business one.
Response
200 · The draft, now including the attached document.
businessInfoIdstringrequiredThe business legal entity this draft belongs to, as a Snowflake id in decimal string form. Allocated when the draft is created, before anything is approved.
typeenum<string>requiredWhat the draft is doing. initial is a brand new legal entity, update amends an approved one, supplement is a request MagicDoor opened for more information.
statusenum<string>requiredWhere the draft sits in review. Editable in draft, waitingForInformation and rejected; pendingReview is with MagicDoor; superseded is closed.
legalNamestringRegistered legal name of the business.
legalEntityTypeenum<string>How the business is incorporated.
einstringThe federal tax identifier, masked: four bullet characters followed by the last four digits, for example ••••4321. The full value is never returned here.
mccCodestringMerchant category code. Four digits once the draft is ready for approval.
summarystringFree-text description of what the business does.
businessAddressobjectRegistered address of the business.
startDatestring · dateThe date the business started trading.
principalsobject[]requiredThe people behind the business, with their personal identifiers masked.
documentsobject[]requiredFiles attached to the draft, one entry per file.
resolvedRequirementobjectThe document checklist pinned to this draft when it was created. Absent when no checklist resolved.
statusReasonstringThe reason recorded on the most recent workflow change that set the current status — a rejection note, or a request for more information. Absent when that change carried no reason.
400 · `obligationKey` or `uploadSessionId` is missing or malformed.
401 · The request carried no valid access token.
403 · The caller is not a property manager, or is missing the `business_info:write` permission.
422 · The legal entity has no open draft; the draft is not editable; the upload session could not be finalised; the `obligationKey` is not on the checklist; the entry needs a `principalId` and none was sent; the named principal is not on the draft; the same file is already attached to that entry; or the entry's file limit is already reached.
Attaching a document is the third of three steps. First create an upload session, then upload the file to the endpoint that session returns, then call this endpoint with the session id. The document's description is set from the uploaded file's name.