Test in Sandbox
Sandbox API Keys & Widget ID Format
The sandbox and production environments function almost identically, with a few necessary differences. Your sandbox API keys and Connect
widgetId
will haveSB_PROD
as a prefix. (e.g.SB_PROD_00000CA111B222F33FC4444DF3CE67B0
)
Testing Connect in Sandbox
In the Sandbox, you can test Connect without needing to authenticate a real connection. This makes it easy to integrate Connect into your application and test the end-user connection experience. You'll need the sandbox Connect widgetId
, which you can find in the Dashboard. For more details on how to use connect a business using Connect, see Connect.
Testing Accounting Data as a Serviceā¢ API in Sandbox
In the Sandbox, you can test the API using your Sandbox API Keys. You can find the Sandbox API keys in the Dashboard. When making API calls in the sandbox, you can use the same serviceName
values used in production. For more details on how to use the API, see our API reference.
Supported Integrations & Data in Sandbox
You can access sample data from all integrations supported by Accounting Data as a Serviceā¢ in Sandbox. See Supported Integrations for more details.
Pushing Data on Accounting Data as a Serviceā¢ Mocked Sandbox
Pushing data on the sandbox is done through mocked responses. No actual data is being created in the Sandbox. Accordingly, pulling data on Sandbox will not contain any records you previously pushed.
Attachments on Accounting Data as a Serviceā¢ Mocked Sandbox
Pulling and posting attachments are currently not supported in the current version of the Accounting Data as a Serviceā¢mocked sandbox.
Simulating Webhook Events
The Sandbox provides rich test data, as well as the ability to simulate a number of scenarios for testing in Sandbox. Accounting Data as a Serviceā¢ provides a special Sandbox-only endpoint, /sandbox/fireWebhooks, that can be used to trigger webhooks events on-demand, allowing you to test that you are receiving webhooks successfully for both Accounting Data as a Serviceā¢ Mocked Sandbox and Accounting Service Provider Sandbox. See Webhooks for more details.
Sandbox Test Credentials
Simulate different flows using Sandbox credentials. The easiest approach to create connections in the Sandbox is by using the following usernames and password pass_good
to simulate the test scenarios that your SMBs may experience while connecting their businesses.
Test Scenario | Use Case |
---|---|
Successful Connection | Credentials are entered correctly to successfully access data for your business connection. |
Duplicate Connection | Simulate a duplicate connection attempt to trigger the system's response to handle and return the appropriate duplicate entry response. |
Failed Connection | A connection error can occur due to various reasons, including network issues, server unavailability, or issues with the application's configuration. The business connection will not be established. |
Invalid Credentials | Mimics entering the wrong credentials and returns an error. |
No Data | Credentials are entered successfully but the business will return no data. |
Updated 30 days ago