Creating Document Records
Documents are created in two steps: create the record, then upload the file.Document Categories
| Category | Description |
|---|---|
Identity | Identity documents (INE, passport) |
Address | Proof of address |
Financial | Financial statements, tax records |
Legal | Legal documents (powers of attorney, articles) |
Other | Other document types |
Document Types
- Mexico
| Type | Enum | Description |
|---|---|---|
ine_front | MexDocumentType.IneFront | INE (voter ID) front |
ine_back | MexDocumentType.IneBack | INE (voter ID) back |
passport | MexDocumentType.Passport | Passport |
curp | MexDocumentType.Curp | CURP document |
rfc_constancia | MexDocumentType.RfcConstancia | RFC certificate |
declaracion_anual | MexDocumentType.DeclaracionAnual | Annual tax declaration |
address_proof | MexDocumentType.AddressProof | Proof of address |
acta_constitutiva | MexDocumentType.ActaConstitutiva | Articles of incorporation |
poder_notarial | MexDocumentType.PoderNotarial | Power of attorney |
other | MexDocumentType.Other | Other document type |
Retrieving Documents
retrieveByExternalId or retrieveByMetadata (see SDK reference).
Updating Documents
Listing Documents
All Documents
By Client
By Type
Async Iterator
Document Status
| Status | Description |
|---|---|
pending_upload | Record created, awaiting file upload |
processing | File uploaded, being processed |
available | Document is available |
failed | Processing failed |
expired | Document has expired |
Checking Document Existence
Counting Documents
Deleting Documents
Document Model Properties
| Property | Type | Description |
|---|---|---|
id | string | Unique identifier |
clientId | string | Parent client ID |
type | string | Document type |
category | DocumentCategory | Document category |
scope | string | Scope code |
status | DocumentStatus | Current status |
isAvailable | boolean | True if available |
filename | string | undefined | Original filename |
mimeType | string | undefined | File MIME type |
size | number | undefined | File size in bytes |
expiresAt | Date | undefined | Expiration date |
metadata | object | undefined | Custom metadata |
createdAt | Date | Creation timestamp |
updatedAt | Date | Last update timestamp |
Batch Operations
Create multiple document records:Mexico Document Fields
Mexico documents can include extracted field data:See Mexico Scope for all document type
guards.
