An improved Sandbox with customizable accounts


Updated on May 15, 2019

Today, we’re excited to share improvements to our Sandbox environment based on your feedback. You'll now be able to:

  • Customize the number of accounts and their metadata
  • Test with a broader dataset of transactions
  • Trigger webhooks on demand for an Item

Account data

Using the new user_custom test username, you can customize the account metadata in the Sandbox environment to fit your testing needs. This includes the ability to change account type, subtype, income (inflow), balance, number, and currency.

// Generate a public_token for an Item with customized accounts
client.sandboxPublicTokenCreate("ins_109508", ["transactions"], {
  override_username: "user_custom",
  override_password: JSON.stringify({
    override_accounts: [{
      starting_balance: 10000,
      type: "depository",
      subtype: "checking",
      meta: {
        name: "Checking Name 1"
      }
    }, {
      starting_balance: 20000,
      type: "depository",
      subtype: "savings",
      meta: {
        name: "Savings Name 2"
      }
    }]
  })
}, function(err, createResponse) {
  // Handle error, if present
  var publicToken = createResponse.public_token;
});

Transactions data

We improved the transactions data in the Sandbox environment to represent a broader set of merchants, descriptions, and account types. Additionally, we updated transaction amounts to more closely resemble production traffic. Transactions will be randomly generated from different merchants for each Item.

Webhooks

The new /sandbox/item/fire_webhook endpoint enables you to trigger and test transactions webhooks on demand for an Item via its access token.

// Fire a DEFAULT_UPDATE webhook for an Item
client.sandboxItemFireWebhook(access_token, 'DEFAULT_UPDATE',  
function(err, fire_webhook_response) {
  // Handle err, if present
});

We’ll be continuing to improve on the Sandbox environment so developers can test more use cases to refine their app and help even more users. In the meantime, we welcome any feedback on these latest improvements and anything else you may want to see in the Sandbox. Reach out to us via the Dashboard or Twitter.

View API docs