Create a company-scoped Commenda document from a hosted URL returned by the document upload URL endpoint. The S3 object must exist before the document can be created. Optionally link the file to one business entity or one key person in the same company.
hostedUrl and receive a reusable fileId.
Use this endpoint after uploading file bytes directly to S3 with Create a document upload URL. Pass the upload.hostedUrl returned by that endpoint as fileUrl. Commenda verifies that the S3 object exists before creating the document record. The created file is scoped to the company. You may optionally link it to one reusable Commenda OS resource:
personId to link the file to a key person.businessEntityId to link the file to a business entity.personId and businessEntityId in the same request. For incorporation, save the returned file.fileId, register it with POST /partner/incorporation/{incorporationId}/files, then link it as a typed participant document with POST /partner/incorporation/{incorporationId}/documents.
Commenda company identifier accessible to the authenticated partner.
"passport.pdf"
Hosted URL returned by the signed upload URL endpoint after the client uploads bytes directly to S3. The object must exist before the document can be created.
"https://commenda-bucket.s3.amazonaws.com/77/uuid/passport.pdf"
MIME type of the uploaded file. Incorporation document requirements validate against this value.
"application/pdf"
Optional file size in bytes.
382144
Optional Commenda document subtype. Defaults to Other when omitted.
"Other"
Human-readable document name. Used as the explicit document type when documentSubType is Other.
"Passport scan"
Optional business entity to link this uploaded file to. Do not provide together with personId.
44
Optional key person to link this uploaded file to. Do not provide together with businessEntityId.
12
Company document created successfully