Add Application Document

Attaches a previously uploaded document to a declared entity (company or individual) within an application. The document must be uploaded first using the Upload Document endpoint to obtain a document ID.

Request

https://openapi.advance.ai/v1/business/applications/{applicationId}/documents
PATCH (application/json)

Request Header Parameters

Parameter

Description

Authorization

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

Path Parameters

ParameterRequiredDescription
applicationIdTruestring The unique identifier of the application.

Request Parameters

ParameterRequiredDescription
documentIdTruestring The document ID obtained from the Upload Document endpoint.
declaredIdTruestring The declared KYB company ID or KYB individual ID to attach the document to.

Request Examples

curl -X PATCH "https://openapi.advance.ai/v1/business/applications/APP-2026052200001/documents" \
-H "Authorization: Bearer {Your Access Token}" \
-H "Content-Type: application/json" \
-d '{
  "documentId": "DOC-2026052200001",
  "declaredId": "COM-2026052200001"
}'
curl -X PATCH "https://openapi.advance.ai/v1/business/applications/APP-2026052200001/documents" \
-H "Authorization: Bearer {Your Access Token}" \
-H "Content-Type: application/json" \
-d '{
  "documentId": "DOC-2026052200002",
  "declaredId": "IND-2026052200001"
}'

Success Response

Response Description

FieldDescription
applicationIdstring The unique identifier of the application.
declaredIdstring The declared entity identifier the document was attached to.
entityTypeenum The type of entity (COMPANY or INDIVIDUAL).
documentIdstring The document identifier.
updatedAtstring The update timestamp in ISO 8601 format.

EntityTypeEnum

ValueDescription
COMPANYThe document is attached to a company entity.
INDIVIDUALThe document is attached to an individual entity.

Response Examples

{
  "applicationId": "APP-2026052200001",
  "declaredId": "COM-2026052200001",
  "entityType": "COMPANY",
  "documentId": "DOC-2026052200001",
  "updatedAt": "2026-05-22T11:00:00Z"
}
{
  "applicationId": "APP-2026052200001",
  "declaredId": "IND-2026052200001",
  "entityType": "INDIVIDUAL",
  "documentId": "DOC-2026052200002",
  "updatedAt": "2026-05-22T11:05:00Z"
}

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": "documentId cannot be empty"
  }
}
{
  "error": {
    "type": "not_found",
    "message": "Document not found"
  }
}