How do I use sandbox mode, and what test values can I use?
Add the test query parameter to a Secretary of State (SOS) search request. The value you choose decides which sample response you get:
test=complete: a sample business record with possible alternatives (200, complete)test=incomplete: a 202 with a fixedretryId, for testing the retry and polling flowtest=failed: a failed search (500 in the response body)test=retryIdInvalid: an invalidretryId(400 in the response body)test=badRequest: a bad request (400 in the response body)
Example:
GET https://apigateway.cobaltintelligence.com/v1/search?searchQuery=Acme%20Roofing%20LLC&state=texas&test=completeGood to know:
- Sandbox requests are never billed and don't count toward your trial limit. They still need a valid API key in the
x-api-keyheader. - The name, state and other inputs are ignored. Only the
testvalue changes the response, so there are no special test names or EINs. - The HTTP status is always 200 in sandbox mode. The scenario's status code (500, 400 and so on) is in the
statusCodefield of the response body. - If you include a
callbackUrl, the sample data is sent to it after about 5 seconds, so you can test your webhook handling too. - Any other
testvalue returns a bad request message listing the allowed options.
Sandbox mode only works for SOS search. See Which products support sandbox mode?
testing-and-trialing
