Salesforce B2C Commerce 24.7 > Developing Your Site > On-Demand Sandboxes > Use the Sandbox API to Manage On-Demand Sandboxes
Start, Stop, Reset (DBINIT), and Restart an On-Demand Sandbox
Advanced course
Control Center for Salesforce B2C Commerce
Learn how to manage instances, roles, permissions, on-demand sandboxes, audit logs, and day-to-day Control Center operations with practical SFCC guidance.
View courseTo stop, start, or reset (DBINIT) a sandbox, use the
POST/sandboxes/{sandboxId}/operations method. Stopped sandboxes consume
fewer credits than running sandboxes.
- To open the Sandbox API user interface, go to B2C Commerce Sandbox API.
- Click Authorize.
- Enter the API client ID for the Sandbox API.
- To dismiss the authorization window and return to the Sandbox API user interface, click Close.
-
In the Sandboxes section of the Sandbox API user interface, click to expand the
POST/sandboxes/{sandboxId}/operationsmethod. - Click Try it out.
-
Edit the operation in the request body to specify what you want to do.
- start: Makes a sandbox in a stopped state accessible again.
- stop: Stops a sandbox.
- reset: Refreshes a sandbox instance with a new database using the DBINIT process.
- restart: Makes a sandbox that is in a stopped state accessible again. Stops an active sandbox and starts it again.
- Enter the sandbox ID.
-
Click Execute.
- Check the status of the sandbox to make sure it has changed accordingly. See Check the Status of a Sandbox.
Related concepts
Related tasks
Infocenter Retirement: On June 30, 2023, the Infocenter was retired, and documentation currently hosted on the Infocenter will be published to Salesforce Help, Commerce Cloud Developer Center, and Salesforce B2C Commerce Developer Documentation Resources. For more information, see the release note.