Integration pattern: Bridge Widget | Products: PLL (Paycheck-Linked Lending) | Demo: PaycheckLinkedLoans
Get started
Run the demo
Clone and run the PaycheckLinkedLoans demo to see the full paycheck-linked lending flow working locally.Open
http://localhost:5173, select Consumer Credit > Paycheck-Linked Loans, and walk through a verification using sandbox credentials (goodlogin / goodpassword).See full setup instructions for ngrok and environment configuration.Understand the API flow
The demo follows this sequence:
- Search for employer — Your server calls GET /v1/company-mappings-search/ to find the borrower’s employer by name.
- Create a user — Your server calls POST /v1/users/ to create a Truv user.
- Create a bridge token — Your server calls POST /v1/users//tokens/ with
product_type: "pll"and optionallycompany_mapping_idto deeplink Bridge to the employer. Include theaccountobject with your bank details and deduction configuration. - Initialize Bridge — Your frontend opens Truv Bridge with the
bridge_token. The borrower connects their payroll and confirms the deduction. - Receive webhooks — Truv sends a
task-status-updatedwebhook when the enrollment completes. Verify the signature using theX-Webhook-Signheader with HMAC-SHA256. - Retrieve dual reports — Fetch the VOIE report with
POST /v1/users/{user_id}/reports/for income data. Fetch the deposit switch report withGET /v1/users/{user_id}/deposit_switch/report/for deduction confirmation.
Review the code
Each step maps to a specific file in the demo. Use these as reference when building your integration.
| Step | Demo file | API reference |
|---|---|---|
| Employer search | src/components/CompanySearch.jsx | Company Search |
| User creation | server/routes/bridge.js | POST /v1/users/ |
| Bridge token | server/routes/bridge.js | POST /v1/users//tokens/ |
| Bridge initialization | src/demos/PaycheckLinkedLoans.jsx | Bridge SDK |
| Webhook verification | server/webhooks.js | Webhook events |
| Income report | server/routes/user-reports.js | Income reports |
| Deposit switch report | server/routes/user-reports.js | Deposit switch report |
Consumer Credit-specific configuration
Bridge token for PLL
Setproduct_type to "pll" and include the account object with your bank details and deduction configuration:
Deduction options
Control the repayment amount withdeposit_type and deposit_value:
deposit_type | deposit_value | Description |
|---|---|---|
amount | "200.00" | Fixed dollar amount per paycheck |
percent | "10" | Percentage of each paycheck |
Dual reports
PLL verification produces two reports in parallel:| Report | Endpoint | What it contains |
|---|---|---|
| VOIE report | POST /v1/users/{user_id}/reports/ | Verified income, employment, and pay history |
| Deposit switch report | GET /v1/users/{user_id}/deposit_switch/report/ | Deduction confirmation with allocation details |
Both reports become available after the
task-status-updated webhook fires with status: done. Fetch them in parallel for the fastest results.Next steps
Smart Routing
Verify income before approval, then set up PLL after
Bridge Widget Guide
Full implementation guide for user creation, bridge tokens, and Bridge initialization
PLL Product
Product details for Paycheck-Linked Lending
Bridge Events
Handle all Bridge lifecycle events and error codes