Costa Rica
Below you will see the fields designated for the Costa Rica
Document validations
Document Type
Description
ID for individuals and/or legal entities
Length
Data Type
Verification digit
Mandatory for methods
Regex
Document ID Example
RUT
Registro Único Tributario
Legal Entities
10
Numeric
-
Credit Card
Debit Card
^[0-9]{10}$
1533470188
CI
Cedula de Identidad
Individual Entity
9-11
String
Credit Card
Debit Card
^[1-7]-?\d{3}-?\d{5}$
114712748
1-234-56789
DIMEX
Dirección General de Migración y Extranjería
Individual Entity
11-12
Numeric
Credit Card
Debit Card
^\d{11,12}$
123456789012
Example: How to validate IDs through the API?
Below you can find some examples to validate through our API. You can also test with the examples above. Please note the structure of each ID type
(length, dots, hyphen, lowercase/uppercase). To validate Chilean documents through the API, you can add or omit the dots, hyphens, and lowercase/uppercase.
Validate IDs through the LP api:
Check the Country ISOCode 3:
ISOCode 3:
Last updated
Was this helpful?