Kyc

import { BlindPay } from 'blindpay';

const blindpay = new BlindPay('<api_key>');

(async function() {
  // Light KYC
  await blindpay.customers.create('<instance_id>', {
     type: "individual",
     kyc_type: "light",
     email: "[email protected]",
     tax_id: "12345678",
     country: "US",
     first_name: "John",
     last_name: "Doe",
     date_of_birth: "1998-01-01T00:00:00Z",
  });

  // Standard KYC
  await blindpay.customers.create('<instance_id>', {
     type: "individual",
     kyc_type: "standard",
     email: "[email protected]",
     tax_id: "12345678",
     address_line_1: "8 The Green",
     address_line_2: "#12345",
     city: "Dover",
     state_province_region: "DE",
     country: "US",
     postal_code: "02050",
     ip_address: "127.0.0.1",
     phone_number: "+1234567890",
     proof_of_address_doc_type: "UTILITY_BILL",
     proof_of_address_doc_file: "https://pub-4fabf5dd55154f19a0384b16f2b816d9.r2.dev/v4-460px-Get-Proof-of-Address-Step-3-Version-2.jpg.jpeg",
     first_name: "John",
     last_name: "Doe",
     date_of_birth: "1998-01-01T00:00:00Z",
     id_doc_country: "US",
     id_doc_type: "PASSPORT",
     id_doc_front_file: "https://pub-4fabf5dd55154f19a0384b16f2b816d9.r2.dev/1000_F_365165797_VwQbNaD4yjWwQ6y1ENKh1xS0TXauOQvj.jpg"
  });
})