Upload Document

Uploads a document file to the system. The uploaded document can later be attached to an application entity (company or individual) using the Add Application Document endpoint.

Request

https://openapi.advance.ai/v1/business/documents
POST (multipart/form-data)

Request Header Parameters

Parameter

Description

Authorization

string Please use Token Authentication API to get your access token.
Format: Bearer {token}

Content-Type

multipart/form-data

Request Parameters

ParameterRequiredDescription
contentTruefile The document file to upload. Maximum size: 10MB.
moduleFalseenum The business module for this upload. Defaults to APPLICATION_ATTACHMENT.
documentTypeConditionalenum The type of document being uploaded. Required when module is APPLICATION_ATTACHMENT.

Supported File Types

MIME TypeDescription
application/pdfPDF documents
image/jpegJPEG images
image/pngPNG images
application/mswordMicrosoft Word documents (.doc)
application/vnd.openxmlformats-officedocument.wordprocessingml.documentMicrosoft Word documents (.docx)
application/vnd.ms-excelMicrosoft Excel spreadsheets (.xls)
application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMicrosoft Excel spreadsheets (.xlsx)
text/csvCSV files

UploadBizModuleEnum

ValueDescription
QUESTIONNAIRE_IMAGEImage for questionnaire (max 10MB, TTL 30 min)
QUESTIONNAIRE_ATTACHMENTAttachment for questionnaire (max 10MB, TTL 60 min)
APPLICATION_ATTACHMENTAttachment for application (max 10MB, TTL 3 min)

DocumentTypeEnum - Company Documents

ValueDescriptionExpected Fields
CERTIFICATE_OF_REGISTRATIONCertificate of incorporation/registrationCountry, (state), registration authority, registration date, company name, registration number, legal form type.
MEMORANDUM_O_REGISTRATIONMemorandum of incorporation/association/registrationCountry, (state), company name, incorporation date.
RECENT_EXCERPTRecent excerpt from a state company registryCountry, (state), registration authority, registration date, name, reg number, status, address, date of export, legal form type.
STATEMENT_OF_INFORMATIONStatement of informationCountry, (state), name, registration number, date of document issue, issuing authority, legal form type.
PROOF_OF_ADDRESSProof of addressCompany name, registration number, address, date of issue, type of the PoA, issuing authority.
CERTIFICATE_OF_INCUMBENCYCertificate of incumbencyCountry, (state), name, registration number, status, address, date of issue, list of shareholders, list of directors.
CERTIFICATE_OF_GOOD_STANDINGCertificate of good standingCountry, (state), issuing authority, registration date, name, reg number, status, address, date of issue.
SHAREHOLDER_REGISTRYShareholder registryCompany name, registration number, list of shareholders, date of issue.
DIRECTOR_REGISTRYDirector registryCompany name, registration number, list of directors, date of issue.
TRUST_AGREEMENTTrust agreementCountry, (state), registration date, trust name, date of issue, beneficiary(s), trustee, settlor.
POWER_OF_ATTORNEYPower of attorneyCountry, (state), company name, date of issue, date of expiration, names of director(s), name of representative(s).
COMPANY_OTHERSCompany other documentsOther company documents that do not fit into the above categories.

DocumentTypeEnum - Individual Documents

ValueDescriptionExpected Fields
PASSPORTPassportCountry of issue, passport number, date of issue, date of expiration, name as on passport.
ID_CARDID cardCountry of issue, ID card number, date of issue, date of expiration, name as on ID card.
DRIVERS_LICENSEDriver's licenseCountry of issue, driver's license number, date of issue, date of expiration, name as on driver's license.
RESIDENCE_PERMITResidence permitCountry of issue, residence permit number, date of issue, date of expiration, name as on residence permit.
INDIVIDUAL_OTHERSIndividual other documentsOther individual documents that do not fit into the above categories.

Request Examples

curl -X POST "https://openapi.advance.ai/v1/business/documents" \
-H "Authorization: Bearer {Your Access Token}" \
-F "content=@/path/to/certificate.pdf" \
-F "module=APPLICATION_ATTACHMENT" \
-F "documentType=CERTIFICATE_OF_REGISTRATION"
curl -X POST "https://openapi.advance.ai/v1/business/documents" \
-H "Authorization: Bearer {Your Access Token}" \
-F "content=@/path/to/passport.pdf" \
-F "module=APPLICATION_ATTACHMENT" \
-F "documentType=PASSPORT"

Success Response

Response Description

FieldDescription
documentIdstring The unique identifier of the uploaded document. Use this ID to attach the document to an application.
documentFormatenum The format of the uploaded file (PDF, JPEG, PNG, etc.).
documentDirstring The storage directory path of the document.
mimeTypestring The MIME type of the uploaded file.
documentTypeenum The type of document.
documentSizeinteger The size of the document in bytes.
originalNamestring The original filename of the uploaded document.

Response Examples

{
  "documentId": "DOC-2026052200001",
  "documentFormat": "PDF",
  "documentDir": "/documents/2026/05/22/DOC-2026052200001",
  "mimeType": "application/pdf",
  "documentType": "CERTIFICATE_OF_REGISTRATION",
  "documentSize": 1048576,
  "originalName": "certificate_of_registration.pdf"
}

Error Response

Response Description

ParameterDescription
errorobject The error details.

ResponseError.error

FieldDescription
typestring Error code or type.
messagestring Human-readable error message.

ResponseError.error.type

ValueDescriptionHTTP Status Code
parameter_errorParameter validation failed (e.g., missing or invalid parameter).400 Bad Request
iam_failedAuthentication or authorization failed.401 Unauthorized
errorInternal server error or unknown error.500 Internal Server Error
not_foundRequested resource not found.404 Not Found
service_busyThe service is busy or rate limited.429 Too Many Requests

Response Examples

{
  "error": {
    "type": "parameter_error",
    "message": "File type is required."
  }
}
{
  "error": {
    "type": "parameter_error",
    "message": "Unsupported file type. Supported types: PDF, JPEG, PNG, DOC, DOCX, XLS, XLSX, CSV"
  }
}
{
  "error": {
    "type": "parameter_error",
    "message": "File size exceeds the maximum limit of 10MB"
  }
}