Truework’s Target Employer Order API enables you to seamlessly integrate robust verification capabilities directly into your application. In this guide, we’ll explore how to use the Truework Sandbox—a risk-free playground where you can test your integration without touching production data. Get ready to dive in and make your first request with ease!
https://api.truework-sandbox.comTo create a verification request from your backend application, make a POST request to /orders/target-employer using a tool like curl, Postman, or via our built-in API Explorer. Making this POST request creates an order that will contain a single verification for the requested employer.
The /orders/target-employer endpoint processes your order asynchronously. Although you will receive a response instantly, there will be no reports associated with the verification on the order. You will need to retrieve the report(s) once the order is completed, which is detailed in the next section.
Once created, copy the string returned in the id field—we’ll need it for the next step.
Truework uses webhooks to asynchronously update our partners when a verification is completed. Webhooks are configured under developer settings in the Truework app.
There are two types of webhooks: order completed and verification state change.
Of interest will mostly be the states completed and canceled:
completed state indicates that new data is now available on the ordercanceled state indicates that a verification was not able to be completed, but may have user-provided information and/or documentsThe order.completed webhook will be issued when all employer verifications associated with the order have been completed or canceled. Once you receive this webhook, you can fetch the order results.
Now that you’ve created an order and copied its ID, we can get it from the API to see its current state and other data. To do so, we will need to make an HTTP GET request to the /orders/{order_id} endpoint.
After retrieving your order, you should observe the following:
verification_requests list in the order includes one verification with a completed statereports field of the verification contains a Verification of Employment and Income (VOIE) reportorder.completed webhook has been triggeredThese actions occurred because a special SSN value (000-00-0000) was used in the sandbox environment, which automatically processed and completed the verification. You can learn more about the SSNs available for use in the sandbox here.
When your integration is complete (or nearing completion), follow the steps below:
Not a problem, we are here to help! Send your questions to implementations@truework.com.