Validations

Country and currencies validations

country field

currency field

PE

PEN (recommended)

PE

USD

Document validations

document_type field

document format validation

RUC

Length 11

CE

Numeric. Length 9

DNI

Numeric. Length 8-9

PASS

Numeric. Length 12

Emails validations

We suggest you using the following regex to validate email addresses on your end and prevent invalid email errors.

(?i)[a-z0-9!#$%&'*+\/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+\/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])

Phone validations

We use the Google's common library for parsing, formatting, and validating international phone numbers. Validating the phone numbers on your end could help preventing Invalid phone number errors.

Postal code validations

country

zip_code Regex

Example

PE

^\d{5}$

12345

Última actualización