Salesforce B2C Commerce 23.6 > Developing Your Site > On-Demand Sandboxes

Use On-Demand Sandbox Credits Efficiently

The credit system provides flexibility so you can use the credits that you purchase the way you want. For example, depending on your needs, you can keep just a few sandboxes running for an extended period or create many short-term sandboxes.

Users assigned to the Sandbox API User role can control how credits are spent. When managing sandboxes and sandbox credits, keep these considerations in mind:

Because sandboxes consume credits while in a stopped state, make sure to delete sandboxes you don't need. Then create them again when you want to use them.

Stop and restart sandboxes only when you want to retain the exact set of data that you created for the sandbox. To better manage sandboxes in a realm, you can set the sandbox autoScheduled parameter to yes and create an Operation Scheduler to automatically start and stop the sandboxes.

If you need a sandbox repeatedly for the same purpose, consider using APIs to automate creating a sandbox and importing the applicable data and code. Then you can quickly recreate the sandbox environment after it's deleted.

You can easily import Storefront Reference Architecture (SFRA) into a sandbox using Business Manager. It isn’t necessary to keep a sandbox in the stopped state just to maintain an environment that uses SFRA.

X Privacy Update: We use cookies to make interactions with our websites and services easy and meaningful, to better understand how they are used. By continuing to use this site you are giving us your consent to do this. Privacy Policy.