website logo
Home
Widget
API
Navigate through spaces
⌘K
📥Onramp API Integration.
👤Customer login
Crypto Tokens
Crypto Token Quotation
📑Orders
🪝Web hook - Onramp
📤Offramp API Integration.
👤Customer login
📑Create Order Offramp
📈Offramp Quotation
🪝Web hook - Offramp
Submitting KYC Data
Docs powered by
Archbee

Submitting KYC Data

7min
Submit KYC Data

User can submit kyc data through below API endpoint. Upload
POST
Params
Header Parameters
x-api-key
required
String
Body Parameters
email
required
String
selfie
optional
String
aadharFront
optional
String
aadharBack
optional
String
panFront
optional
String
panBack
optional
String
panNumber
required
String
aadharNumber
required
String
firstName
required
String
lastName
required
String


All the above data in the request body should be form-data. Make sure you submit valid KYC (Aadhaar, PAN) details



The below parameters are required and need to be encrypted using following code:

firstName,

lastName

panNumber

aadharNumber



Code for encryption

JS
|
const crypto = require("crypto")

const encrypt = (plainText, password) => {
  try {
    const iv = crypto.randomBytes(16);
    const key = crypto.createHash('sha256').update(password).digest('base64').substr(0, 32);
    const cipher = crypto.createCipheriv('aes-256-cbc', key, iv);

    let encrypted = cipher.update(plainText);
    encrypted = Buffer.concat([encrypted, cipher.final()])
    return iv.toString('hex') + ':' + encrypted.toString('hex');

  } catch (error) {
    console.log(error);
  }
}

// to generate encryption
sampleText = "apple"
encryptedText = encrypt(sampleText, SECRET_KEY)
console.log(encryptedText)


For access to SECRET_KEY for encryption please contact nirmal@onmeta.in



Create a POST request with above encrypted values for successfully uploading KYC data.

Please check curl format and response format on the right



Updated 13 Aug 2023
Did this page help you?
PREVIOUS
Web hook - Offramp
Docs powered by
Archbee
Submit KYC Data