Return synchronous business details with Smart populate
The Smart populate API (/prefill/businesses) returns real-time data about a business that you can use to pre-fill fields during the onboarding process. This synchronous API provides instant responses with business names, addresses, people, entity type, TIN, website, and industry classifications.
End-to-end flow
- A user types their business name and address, or selects the name and address from the list returned by the Autocomplete API.
- Your backend sends a request to Middesk’s
POST /v1/prefill/businessesendpoint. - Middesk returns real-time information about the business including:
- Names
- Addresses
- People
- Entity type
- Last 4 digits of EIN
- Website
- Industry classifications
- Use the returned data to pre-fill fields during the business onboarding process.
Integrate the Smart populate API
Prepare your request
To search for a business, provide either:
- Business
namesandaddresses, OR - Business
tin
If you provide all three (names, addresses, and TIN), the API only searches by names and addresses.
Make a Smart populate request
Send a POST request to the prefill endpoint with the business name and address:
A successful request returns a 200 OK with business data in the response body:
null if no business is found.Use the data to pre-fill your forms
Map the returned data to the appropriate fields in your onboarding forms:
- Use
namesfor the business name field - Use
addressesfor address fields - Use
formation.entity_typefor entity type selection - Use
peopleto pre-populate owner or officer fields - Use
tin.last_fourto verify TIN input
API reference
Method: POST
URL: https://api.middesk.com/v1/prefill/businesses
Headers: Include the API key in the Authorization header using Bearer authorization