Truework POS Integrations
Verify borrower income directly in your POS application
Prerequisites
- Set up a Truework account
- Generate a sandbox API Key and Publishable Key under developer settings from your Truework account
- Contact implementations@truework.com before implementing to ensure your Publishable Key is configured for your specific workflow and verification methods
- Review our [[sandbox-test-cases]]
Implementation steps
1. Create Truework Direct Order
Make a POST request to /orders/truework-direct. Making this POST request creates an order that will contain zero or more verifications, each containing one verification report per employer.
The POST request generates a token that is used to initialize Truework.js, the consumer-facing widget that will enable the user to complete the verification. The token represents a unique instantiation of the widget, including any preloaded employment information. As a best practice, we additionally recommend sending all companies required to verify a borrower’s employment history.
2. Create backend endpoint
Create an API endpoint that calls /orders/truework-direct to create a unique Truework Direct session token.
3. Launch the Truework.js widget
Within the frontend UI (e.g. a button), call the API endpoint you created and use the returned session token to initialize the Truework Direct flow.The Truework.js widget will activate when the button is clicked and the user will be guided through the workflow.
Within the target object, it is highly recommended that you specify an action of verify for each company you want the user to verify.
4. Webhook configuration
Webhooks can be configured from Developer Settings in the Truework app.
There are two types of webhooks: order completed and verification state change.
Most relevant here are the completed and canceled states. A completed state indicates that new data is now available on the order. A canceled state indicates that a verification was not able to be completed.
Order Completed
The order.completed webhook will be issued when all verifications associated with the order have completed or canceled. Once you receive this webhook you can fetch the order results from the API.
Verification State Change
For verifications completed with Smart Outreach, you’ll likely need more granular updates about the data contained within an order. The verification_request.state.change webhook is issued when a verification request in the order changes state.
States: pending-approval → processing → action-required → completed/canceled
5. Retrieve results
To fetch an order, and all verification reports associated with that order, make a GET request to /orders/{order_id}.
The employment report will be in the verification_requests[].reports list in the API response.
6. Get report data
Make a GET request to /reports/:verification_report_id using the desired report ID. If you don’t have the report ID, you can also find reports under verification_requests[].reports in the GET /orders/{order_id} response.
For JSON format
For PDF format
7. Reverifying a report
Mortgage verifiers are typically required to reverify employment (no income) within 10 days of closing. The Truework API has built in support for this use case for reports that were successfully completed within the last 90 days.
There are two options available to reverify a report - work with your Implementation Manager to determine the best fit for your workflow.
Option 1: POS task workflow (recommended)
If you have the ability to add a task or direct the borrower back to the online application, you can embed the reverification workflow directly in your system using Truework.js.
Setup Prerequisite: Register for order.applicant_action_required webhook in sandbox Developer Settings. Contact your Implementation Manager if this option isn’t visible.
Applicant Action Required webhook
Alternative: Get Session Token from API
Response
Testing scenarios
Scenario 1: Connection lost (action required)
- Complete verification with SSN
000-22-0000 - Create reverification from returned report
- Receive
order.applicant_action_requiredwebhook - Use session token to reinitialize Truework.js widget
Scenario 2: Connection active (seamless)
- Complete verification with SSN
000-23-0000 - Create reverification from returned report
- No webhook needed - reverification completes automatically
Option 2: Email Workflow
If Option 1 is not viable for your workflow, Truework can send an email to the borrower to complete the reverification process outside your online application.
Ready to move to Production or have questions?
Reach out to implementations@truework.com or directly to your Integration Manager.