The Document object represents an identity document. Identity documents are used for Identity Verification (IDV) for Business Accounts, Customer Accounts, and Beneficial Owners.
id
string (UUID)
ID of the document.
providerExternalId
string
ID of the document in the external provider’s system.
provider
string
Name of the external provider.
businessAccountId
string (UUID)
Business Account ID.
holderId
string (UUID)
ID of the account holder for the document. The account holder can be a Business Account, Customer Account, or Beneficial Owner.
holderType
string enum, values: BENEFICIARY, BUSINESS_ACCOUNT, CUSTOMER
Type of entity referenced by the accountHolderId field. The following values are supported:
documentType
string enum, values: driving-license, passport, formation, tax, ownership, other
Type of document. The following values are supported:
name
string, min length: 1, max length: 40
Name of the document (example: Bob Smith Driver’s License).
description
string, min length: 1, max length: 100
Description of the document. Required if documentType is formation, tax, ownership, or other.
number
string
Document number. Required if documentType is driving-license or passport.
issuingDate
string (date), format: yyyy-mm-dd
Date the document was issued. Cannot be a future date.
issuingCountryCode
string, min length: 2, max length: 3
Country where the document was issued. Must be an ISO 3166-1 uppercase alpha 2-character or 3-character country code. For example, the United States is US or USA.
Required if documentType is driving-license or passport.
issuingStateCode
string, min length: 2, max length: 3
State or province where the document was issued. Must be an ISO 3166-2 uppercase alpha 2-character or 3-character country subdivision code. For example, Missouri is MO. Required if documentType is driving-license.
extension
string enum, values: JPG, JPEG, PNG, PDF
Document file extension. Allowed values are JPG, JPEG, PNG, and PDF.
contentLength
integer (int64), max size: 5,242,880 bytes (5 MB)
File content size in bytes.
version
string
Document version. This field is incremented automatically when a new version of the document is uploaded.
expiryDate
string (date), format: yyyy-mm-dd
Expiry date for the document. Required if documentType is driving-license or passport.
url
object
Upload or download content URL for the document. Download content URLs are only returned if the document status is SCANNED.
value
string (URI)
Content URL.
allowed
string enum, values: GET, PUT
Allowed HTTP method for the URL. Possible values are:
expiresIn
integer (int64)
URL expiry period (in seconds).
thumbnailUrl
object
Content URL for the document’s thumbnail image. Returned for GET /v1/documents/{documentId} if the document status is SCANNED.
The thumbnail image is used in the RocketKOR Portal. A default thumbnail image is generated automatically when the document is first uploaded.
value
string (URI)
Content URL.
allow
string enum, values: GET
Allowed HTTP method for the URL. Value must be GET (download the thumbnail image).
expiresIn
integer (int64)
URL expiry period (in seconds).
status
string enum, values: NEW, UPLOADED, INCOMPLETE, SCANNED, MALICIOUS
Document status. The following values are supported:
verificationStatus
string, enum values: UNVERIFIED, VERIFIED
Document’s Identity Verification (IDV) status.
metadata
string, max properties: 6, value max length: 1024
Key/value pairs used to store additional information about the document.
createdBy
object
Entity that created the document.
id
string (UUID)
ID of the entity. Will be blank if createdBy.type is internal.
type
string enum, values: employee, internal, kor_employee, service-account
Type of entity. The following values are supported:
createdAt
string (date-time), format: yyyy-MM-dd’T’HH:mm:ss.SSSz
Date and time the document was created in the RocketKOR system.
updatedBy
object
Entity that last updated the document.
id
string (UUID)
ID of the entity. Will be blank if updatedBy.type is internal.
type
string enum, values: employee, internal, kor_employee, service-account
Type of entity. The following values are supported:
updatedAt
string (date-time), format: yyyy-MM-dd’T’HH:mm:ss.SSSz
Date and time the document was last updated.
Document Object
{
"id": "string(UUID)",
"providerExternalId": "string",
"provider": "string",
"businessAccountId": "string(UUID)",
"holderId": "string(UUID)",
"holderType": "BENEFICIARY | BUSINESS_ACCOUNT | CUSTOMER",
"documentType": "driving-license | passport | formation | tax | ownership | other",
"name": "string",
"description": "string",
"number": "string",
"issuingDate": "string(date)",
"issuingCountryCode": "string",
"issuingStateCode": "string",
"extension": "string",
"contentLength": integer(int64),
"version": "string",
"expiryDate": "string(date)",
"url": {
"value": "string",
"allowed": "GET | PUT",
"expiresIn": integer(int64)
},
"thumbnailUrl": {
"value": "string",
"allowed": "GET | PUT",
"expiresIn": integer(int64)
},
"status": "NEW | UPLOADED | INCOMPLETE | SCANNED | MALICIOUS",
"verificationStatus": "UNVERIFIED | VERIFIED",
"metadata": {
"key": "value"
},
"createdBy": {
"id": "string(UUID)",
"type": "employee | internal | kor_employee | service-account"
},
"createdAt": "string(date-time)",
"updatedBy": {
"id": "string(UUID)",
"type": "employee | internal | kor_employee | service-account"
},
"updatedAt": "string(date-time)"
}
Step into the future of Finance with RocketKOR! Simplify payments, banking, lending, and data analytics using our versatile KOR Platform.
A Rocket Financial Inc. company
@ 2024 RocketKOR, Inc. All rights reserved.