Skip to main content

Code books

This section lists supported code values and validation formats used in SafetyPay payout requests.

idDocument.type

CodeOfficial document nameCountryValidationExample
CPFCadastro de Pessoas FísicasBRA^[0-9]{11}$37968291801
RFCRegistro Federal ContribuyentesMEX^([A-ZÑ&]{4}) ?(?:-?)?(\d{2}(?:(?:0[1-9]|1[0-2])(?:0[1-9]|[12]\d|3[01]))) ?(?:-?)?([A-Z\d]{2})([A\d])$HEGJ820506M10
DNIDocumento Nacional de IdentidadPER^[0-9]{8}$44851534
PSPasaportePER^[A-Za-z0-9]{7,12}$8345627394AB
CECarne de Identidad para ExtranjerosPER^[A-Za-z0-9]{8,20}$A847635253910
CECarne de Identidad para ExtranjerosCHL^[A-Za-z0-9]{9,20}$A847635253910
PASPasaporteCHL^[A-Za-z0-9]{9,20}$8345627394AB

bankAccount.type

CodeDescriptionCountryValidationExample
CLABEStandardized Bank Key or Clave Bancaria EstandarizadaMEX^\d{18}$123456789034567896
CPFCPFBRA^[0-9]{11}$11831541602
EmailEmail used for PIX paymentsBRA^[a-z0-9._%+-]+@[a-z0-9.-]+.[a-z]{2,77}$test@test.com
PhonePhone used for PIX paymentsBRA^[0-9]{11}$31971212883
EVPRandom Key used for PIX paymentsBRA([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})23e05112-0dfd-4c2b-b433-d6420967dbbe
Checking*Interbank account numberPER^[0-9]{20}$00211111111111111111
Savings*Interbank account numberPER^[0-9]{20}$00211111111111111111
Phone**Recipient of the Payout is a digital walletPER^[0-9]{9}$75121821
CheckingInterbank account numberCHL^[0-9]{7,20}$81475561605643400000
SavingsInterbank account numberCHL^[0-9]{7,20}$80475561605643400000
SalaryInterbank account numberCHL^[0-9]{7,20}$82475561605643400000
note

For Peru, Checking and Savings must start with one of the following values:

002, 003, 007, 009, 011, 018, 023, 035, 038, 049, 053, 054, 055, 056, 058, 059, 060, 800, 801, 802, 803, 805, 806, 808, 809, 811, 813.

Both Checking and Savings for Peru use the CCI bank account format.

note

A phone should be used as a bank account type when a bank_id_code / bankIdCode is associated with one of the following wallets:

  • 0901 - Yape
  • 0775 - Lunquea
  • 0902 - Plin
  • 0776 - Prexpe
  • 0904 - Bim
  • 0921 - Tarjetas Peruanas Prepago