Merchant search is not enabled by default. To request access, contact us at sales@spade.com.
Overview
Merchant search lets you query Spade’s merchant database by name. It is designed for powering autocomplete experiences to enable users to create merchant and category registrations for merchant-locked cards, rewards and other experiences. Use the returnedname and website with merchant registration to set up rewards, merchant-locked cards, and other transaction-level actions.
The returned categoryHierarchy shows which Spade category a merchant falls under, so you can confirm whether your category registration covers it. The last element is the merchant’s most specific category. Any element’s id can be used directly as the categoryId of a category trigger, and a trigger on a broader category also applies to the more specific categories under it.
Searching for a merchant
Send aGET request to /corporations with the merchant name as a query parameter.
The endpoint returns up to five results, ordered by relevance.
Response
Response fields
Building a merchant autocomplete
Backend proxy
Your backend should proxy requests to Spade so that your API key is never exposed to the client.Frontend debounce
Because the endpoint is rate-limited, debounce requests from the frontend so that a request is only sent after the user pauses typing (300-400 ms is a good starting point). Most autocomplete libraries handle this automatically — if yours does not, use a utility likelodash.debounce.
Next steps
- Merchant-based rewards — build a rewards program on top of merchant search
- Merchant-locked cards — restrict card spending to specific merchants
- Merchant registration — register merchants to trigger custom actions during enrichment

