Quickstart—Verify a Business
Learn how to use the Middesk API to quickly perform business identity verification.
Verify a business
A Business is the central object in the Middesk API. When you create a Business in Middesk, you automatically trigger the verification process.
In a production integration, first collect a few key business attributes from your user through your onboarding flow. Then send this data as part of a Create a Business API call.
Only name and addresses parameters are required, but in real-world applications, provide Middesk with more data for a more detailed verification.
To try it out, use:
- Your sandbox API key, available in the Dashboard
- Sample data
For example, if you use a name value of Corporation, Middesk reports the business as being a registered corp. Use a name value of Unregistered Business and Middesk reports the business having no associated registrations.
For addresses, provide 223 Grand St., New York, NY 10013 for a correct address match, or 423 Grand St., New York, NY 10013 for an approximate address match.
For a successful request, Middesk returns a 201 status code along with a JSON body containing the new Business object.
The 201 response only indicates a successful API call, not that the business was verified.
Find the verification results
For a test business verification, the results come back quickly—probably by the time you’ve read to this point! View the results using:
- The Middesk Dashboard
- A Retrieve a Business API call
- A webhook endpoint
As the Business was created in the sandbox environment, make sure you make a sandbox API call or look at sandbox data in the Dashboard.
The Middesk API is asynchronous in nature. While most requests can be automatically resolved and have results in a few seconds, some cases require a review by an internal analyst team, which takes longer. Additional uses of Middesk may require watching for changes in registrations or business activity. For these reasons, set up webhooks as part of your Middesk workflow.
Review the verification results
The code in Step 1 creates a Business object in your account, and triggers a Middesk verification review. After Middesk completes its verification process, Middesk updates the Business object with the results.
The last step is for you to make a decision about this business based upon Middesk’s report.
However you examine the updated Business object—using the Dashboard, a retrieve API call, or your webhook endpoint—pay attention to:
data.object.idis the Middeskbusiness_id. Middesk highly recommends storing thebusiness_idon your side as it’s required when peforming subsequent requests. It is also useful for debugging or reviewing activity.data.object.statusreflects the current status of the Business in the Middesk lifecycle.data.object.review.tasksstores high-level insights based on each business attribute. Most Middesk customers render a KYB decision based on the review tasks.
Here is an excerpt of what the data.object.review.tasks array might look like if a business name, address, person, and TIN were submitted for a given business.
More succinctly put, the JSON results are:
Depending upon your compliance needs and risk tolerance, you may approve this business to use your platform, or reach back out to double-check their TIN (as example responses).
Automate how you handle the verification results in your integration using rulesets or Policies.