Create Location
Requires authentication.
POST /api/v1/merchant/locations
Country name
City name
Postal or ZIP code
Street address
Geographic coordinates
Google Places ID or similar identifier
Complete formatted address for display
Whether this is the primary business location
Whether this location is currently active
Response
Returns201 Created on successful location creation.
Location Data Model
Locations are referenced in merchant settings and appear in customer-facing booking flows. The primary location is displayed on the merchant’s public page.Geographic Point
Thegeo_point object contains latitude and longitude coordinates:
- Displaying the location on a map
- Calculating distance for customers
- Location-based search and filtering
Formatted Location
Theformatted_location field should contain a human-readable complete address:
Primary vs Multiple Locations
While the current API supports creating locations, the merchant settings endpoint returns the primary location information. Theis_primary flag designates which location is shown by default.
Future versions may support:
- Multiple active locations
- Location-specific services
- Location-based team member assignments
- Service availability by location
Best Practices
Address Validation
When creating locations:- Use a geocoding service (like Google Maps API) to validate addresses
- Obtain the
place_idfrom the geocoding service - Use the service’s formatted address for consistency
- Store exact latitude/longitude coordinates
Example with Google Maps
Updating Locations
Currently, the API supports creating new locations. To update location information:- Create a new location with updated details
- Set
is_primary: trueon the new location - The merchant settings will reflect the new primary location