Documentation Index
Fetch the complete documentation index at: https://docs.ledgerbox.io/llms.txt
Use this file to discover all available pages before exploring further.
Overview
The ID Document model extracts and structures information from various identification documents including driver licenses, identification cards, and other government-issued IDs.Model Details
- Model ID:
ID_DOCUMENT - Version: GA
- Release Date: November 30, 2024
Schema Structure
Root Level Fields
| Field | Type | Description |
|---|---|---|
FirstName | string? | Given name |
LastName | string? | Surname |
DateOfBirth | string? | Date of birth (ISO format) |
DateOfExpiration | string? | Date of expiration (ISO format) |
DateOfIssue | string? | Date of issue (ISO format) |
DocumentNumber | string? | Identity document number |
DocumentDiscriminator | string? | Document discriminator |
CountryRegion | string? | Country or region code |
Region | string? | State or province |
Address | string? | Address |
Sex | string? | Sex |
EyeColor | string? | Eye color |
HairColor | string? | Hair color |
Height | string? | Height |
Weight | string? | Weight |
Restrictions | string? | Restrictions |
Endorsements | string? | Endorsements |
VehicleClassifications | string? | Vehicle classification |
Type Definitions
Validation Rules
Basic Validation
- All fields are optional by default
Strict Validation
The following fields are required in strict mode:- DocumentNumber
- FirstName
- LastName
- DateOfBirth
Example Usage
Date Handling
The model accepts dates in two formats:- ISO 8601 datetime strings
- YYYY-MM-DD format
Error Handling
Best Practices
- Always validate documents:
- Handle dates consistently:
- Handle optional fields appropriately:
- Access fields through the result property:
- Validate required fields in strict mode: