diff --git a/onboarding-api/src/controllers/kyb/verifyBusiness.ts b/onboarding-api/src/controllers/kyb/verifyBusiness.ts index d0326e8bce..51416dc87b 100644 --- a/onboarding-api/src/controllers/kyb/verifyBusiness.ts +++ b/onboarding-api/src/controllers/kyb/verifyBusiness.ts @@ -45,11 +45,13 @@ export const verifyBusinessController = async ( } } + const MANUAL_KYB_REFERENCE = `MANUAL_KYB_REQUEST_${Math.random()}` + const user: EntityUser = { investorType: 'entity', address: null, kycReference: '', - manualKybReference: manualReview ? `MANUAL_KYB_REQUEST_${Math.random()}` : null, + manualKybReference: manualReview ? MANUAL_KYB_REFERENCE : null, wallet: [wallet], name: null, dateOfBirth: null, @@ -98,7 +100,7 @@ export const verifyBusinessController = async ( enable_extra_proofs: 1, labels: ['proof_of_address', 'signed_and_dated_ownership_structure'], verification_mode: 'any', - reference: `KYB_${Math.random()}`, + reference: MANUAL_KYB_REFERENCE, email: body.email, country: body.jurisdictionCode, redirect_url: `${origin}/manual-kyb-redirect.html`,