Sample use cases & flows: Locations

This article shares a possible use case for your implementation, as well as an example flow that supports it. You're certainly not limited to this use case, but it can be a helpful jumping off point as you plan your implementation.

Set Up a New Main Business Location

You can help Wix users create a new business location, set it as default, and update the opening hours for a location.

  1. Call Create Location.

  2. Set the new location as default by calling Set Default Location.

  3. List all existing locations by calling List Locations.

    Note: Make sure to extract the relevant locations’ IDs from the response and save it for future calls.

  4. Update a location's opening hours by calling Update Location.

    Note: Currently, it isn't possible to partially update a location. Therefore, you'll need to specify the full location object when making the call.

Did this help?