idv-quickstart
idv-quickstart copied to clipboard
error_message: 'identity_verification_id must be filled.',
I am trying to create a link token for IDV, below you can see the snnipet of code use it, but always i am getting the following message error error_message: 'identity_verification_id must be filled.', even where all fields have been verified previously
app.post('/api/create_link_token', async (req, res, next) => { let payload = {}; payload = { user: { client_user_id: req.sessionID, email_address: '[email protected]', }, client_name: 'Plaid Tiny Quickstart - React Native', language: 'en', products: ['identity_verification'], country_codes: ['US'], identity_verification: { template_id: ID_VER_TEMPLATE, }, };
const tokenResponse = await client.linkTokenCreate(payload); res.json(tokenResponse.data); });