# The Developer Experience: Sandbox source: https://developer.mastercard.com/blog/the-developer-experience-sandbox/index.md Authors: Donal Rafferty. This blog post is the second in a series of posts discussing the growing importance of the developer experience. In the first post, I discuss the impact of reference applications on the productivity of developers. In this post, I describe why an open and dynamic sandbox is an essential competitive asset for API providers. We intend to extend this series, so keep an eye out for future posts about this emerging discipline. We are living in an API economy where we are seeing the democratisation of entire industries through open platforms that grant innovators access to data that was once off-limits. Nowhere is this more evident than within the financial sector, where Open Finance aims to empower consumers by allowing them to consent to the sharing of their fiscal data. APIs are engines of innovation, enabling collaboration and improvisation to occur through connectedness, and it is through connecting developers to financial data that enterprises can differentiate themselves from competitors. However, it isn't as simple as creating APIs and handing them over to developers, there is a caveat. As we introduce ever-connected technologies, there is a cost in terms of complexity. This intricacy needs to be addressed by developers as we task them with combining multiple systems, many with business logic unfamiliar to them. As organisations turn to APIs for a competitive advantage, the developer experience becomes a focal point for realising API potential. By reducing friction and cognitive load throughout the developer experience, companies can ensure developers are enjoying the use of their APIs, and therefore perpetuating their use. There is a growing discourse about how developer happiness directly correlates to productivity. When developers feel their time is being wasted, either waiting or searching, they quickly become demotivated and withdraw from work; significant delays to product development occur and the bottom line suffers. At Mastercard Developers, we are on a journey to ensure the developer experience across all of our products is a net positive experience for developers. This entails understanding how developers think, the way they work, and the tools they need to do their job efficiently. We understand developers are creative, like artists, and that they learn by doing. We provide an API explorer that shows live requests and responses, reference applications that turn documentation into code, and sandboxes that provide a playground for experimentation. Of all these assets, the sandbox is a core pillar of a seamless developer experience. An API sandbox is a service that mimics the behaviour of a production API in an isolated environment. The goal of a sandbox is to enable risk-free and cost-free testing. A publicly available and easily accessible sandbox is fundamental to a best-in-class developer experience. By removing friction such as prolonged onboarding, and searching static documentation, sandbox environments enable instant and risk-free creativity. Developers quickly understand what the API provides through implementation rather than reading. An open sandbox also provides a unique opportunity to broaden the range of prospective customers, and a novel way to 'lock-in' new business by lowering switching costs. As fintechs permeate the financial landscape, the more open to collaboration incumbents are, the more likely they are to remain competitive and avoid disruption. A good sandbox will be isolated from any dependent systems and instead have these stubbed or mocked. The idea is to simulate production, so developers can explore, test, and build without fear. For example, if an API relies on a transaction it may use a 3rd party payments service, but this doesn't need to exist in the sandbox. Rather, it can be mocked since the developer only needs to understand the flow, not complete a real payment. The sandbox needs to recreate the functionality available by the production system because developers will want to run their integrations through a set of tests each time they make changes. Having to run these tests against production is risky and costly, both for the customer and the API provider. Every sandbox should allow creativity without consequence. The growing API economy provides an opportunity to contribute to a company's profitability, but it is important to understand that this means developers become central to success. In a 2018 Q2 research report by Developer Nation, 17% of developers said they get to make the final business decision to pay for a service, in the 2021 Q1 report that number jumped to 33%; a sign of just how important the developer experience is. If a developer can't explore, test, and experiment with a service, they are going to recommend alternatives. To be competitive in the API economy, organisations must provide a best-in-class developer experience, and an open, easily accessible sandbox that replicates production should be priority number one.