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

CEJ

Cedula Jurídica

Legal Entities

6-12

String

  • Credit Card

  • Debit Card

  • 3101362119

^[1-9]-?\d{3}-?\d{6}$

  • CR-1234

  • 3101362119

Structure of the identity card (CI):

  • The first digit indicates the province of birth or registration (1–7).

  • The second block of 3 digits, is a sequential number.

  • The third block of 5 digits, contains another sequential number that was assigned to each individual.

  • You can optionally add a hyphen "-" to divide the blocks.

Structure of the Cedula Jurídica (CEJ):

  • Depending on the issuing authority, the identifier often follows an alphanumeric pattern (combining letters and digits) or a full numeric structure, often split with hyphens "-" to divide code blocks.

Example: How to validate IDs through the API?

Remember that you can validate documents through the LP api. See Document Validation service.

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.


{
    "document": {
        "id" :"1111111111", 
        "type" :"RUT"
    },
    "country" : "CRI"
}

Validate IDs through the LP api:

Check the Country ISOCode 3:

Last updated

Was this helpful?