Generate and manage KYC verification links for investors
The idLinks sub-module manages KYC verification links powered by . Each link directs an investor to a hosted verification flow where they complete identity checks and optionally connect a wallet.
const link = await trusset.customers.idLinks.create({ recipientEmail: '[email protected]', investorType: 'RETAIL', country: 'DE', expiryDays: 30, sendVia: ['email'], note: 'Series A allocation',})link.id // internal link IDlink.token // unique token in the verification URLlink.verificationUrl // full URL to send to the investorlink.status // 'PENDING'link.delivery // { email: { sent: true } }
At least one of recipientEmail, recipientWallet, or recipientPhone is required. If recipientWallet is set, the investor must verify from that specific address. If omitted, any wallet can be connected during verification.
Charge the investor a one-time verification fee before the KYC flow starts. Integer cents, 50 - 1,000,000. Payment runs through a hosted Stripe checkout; the KYC flow unlocks once paid.