Onboard users with Layer
A guide to integrating Layer with Plaid Check
Overview
This guide will walk you through how to onboard users to Plaid Check with Layer. This process involves creating a user, onboarding the user with Layer, and retrieving the user's Plaid Check data.
Integration steps
Create a user
- Create a user token using the
/user/createendpoint. At this stage, theconsumer_report_user_identityfield is optional.
Onboard the user with Layer
Onboard the user by following Layer's Integration Overview steps.
When creating the Link token via/session/token/create, pass in the user token you created in theuser.user_idfield and be sure the template used has CRA products enabled.Call
/user_account/session/getto retrieve user-permissioned identity information.After processing the identity information, update the Plaid user record by calling the
/user/updateendpoint. Populate theconsumer_report_user_identityfield with the relevant information.
Retrieve the user's Plaid Check data
Now that the identity information has been added to the user record, you can generate a Consumer Report by calling
/cra/check_report/create.Once the Consumer Report has been generated (indicated by a
CHECK_REPORT_READYwebhook), retrieve the report by calling/cra/check_report/base_report/get,/cra/check_report/income_insights/get,/cra/check_report/partner_insights/get, or/cra/check_report/pdf/get.