Replace a document
Replace an existing document with a new file and/or updated metadata. This is useful when a document was rejected and needs to be re-uploaded. The request must use multipart/form-data.
Documentation Index
Fetch the complete documentation index at: https://docs.lightspark.com/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
API token authentication using format <api token id>:<api client secret>
Path Parameters
Document ID
Body
- Identity Document Replace Request
- Non-Identity Document Replace Request
Replace an existing identity document.
The document file (PDF, JPEG, or PNG, max 10 MB)
Country that issued the document (ISO 3166-1 alpha-2)
"US"
Identity document types issued by a government to verify an individual's identity.
PASSPORT, DRIVERS_LICENSE, NATIONAL_ID "PASSPORT"
Document identification number (e.g., passport number)
"A12345678"
Name of the government agency or organization that issued the document
"U.S. Department of State"
Which side of the document (for two-sided documents like driver's licenses)
FRONT, BACK "FRONT"
Response
Document replaced successfully
Unique identifier for this document
"Document:019542f5-b3e7-1d02-0000-000000000001"
ID of the entity that owns this document. Can be a Customer ID or a BeneficialOwner ID.
"BeneficialOwner:019542f5-b3e7-1d02-0000-000000000001"
Type of identity or business verification document. Document types are grouped by verification category: Identity — PASSPORT, DRIVERS_LICENSE, NATIONAL_ID Business — Legal presence — CERTIFICATE_OF_INCORPORATION, ARTICLES_OF_INCORPORATION, ARTICLES_OF_ASSOCIATION, STATE_REGISTRY_EXCERPT Business — Control structure — DIRECTOR_REGISTRY, TRUST_AGREEMENT, STATE_COMPANY_REGISTRY, PARTNERSHIP_CONTROL_AGREEMENT Business — Ownership structure — SHAREHOLDER_REGISTER, TRUST_AGREEMENT, PARTNERSHIP_AGREEMENT Proof of address — UTILITY_BILL, RENT_OR_LEASE_AGREEMENT, ELECTRICITY_BILL, BANK_STATEMENT, TAX_RETURN
PASSPORT, DRIVERS_LICENSE, NATIONAL_ID, PROOF_OF_ADDRESS, BANK_STATEMENT, TAX_RETURN, CERTIFICATE_OF_INCORPORATION, ARTICLES_OF_INCORPORATION, ARTICLES_OF_ASSOCIATION, STATE_REGISTRY_EXCERPT, GOOD_STANDING_CERTIFICATE, INFORMATION_STATEMENT, INCUMBENCY_CERTIFICATE, BUSINESS_LICENSE, SHAREHOLDER_REGISTER, POWER_OF_ATTORNEY, UTILITY_BILL, ELECTRICITY_BILL, RENT_OR_LEASE_AGREEMENT, DIRECTOR_REGISTRY, TRUST_AGREEMENT, STATE_COMPANY_REGISTRY, PARTNERSHIP_CONTROL_AGREEMENT, PARTNERSHIP_AGREEMENT, SELFIE, OTHER "PASSPORT"
Country that issued the document (ISO 3166-1 alpha-2)
"US"
Original file name of the uploaded document
"passport_scan.pdf"
When this document was uploaded
"2025-10-03T12:00:00Z"
Which side of the document this upload represents. Relevant for two-sided documents like driver's licenses or national IDs.
FRONT, BACK "FRONT"
Document identification number (e.g., passport number)
"A12345678"
Name of the government agency or organization that issued the document
"U.S. Department of State"
When this document was last updated
"2025-10-03T12:00:00Z"