Skip to main content
Manage your merchant configuration including business information, scheduling settings, business hours, and calendar preferences.

Get Settings

Requires authentication. Accessible by Staff, Admin, and Owner roles.
Retrieve all merchant settings including business hours and location information.
GET /api/v1/merchant/settings
curl -X GET 'https://api.example.com/api/v1/merchant/settings' \
  --cookie "session_token=your_session_token"
merchant_name
string
Business name
contact_email
string
Contact email address
introduction
string
Brief introduction or tagline
announcement
string
Current announcement or notice
about_us
string
Detailed business description
parking_info
string
Parking instructions for customers
payment_info
string
Payment information and accepted methods
cancel_deadline
integer
Cancellation deadline in minutes before appointment
booking_window_min
integer
Minimum advance booking time in minutes
booking_window_max
integer
Maximum advance booking time in minutes
buffer_time
integer
Buffer time between appointments in minutes
timezone
string
IANA timezone identifier (e.g., “America/New_York”)
business_hours
object
Map of day (0-6, Sunday=0) to array of time slots
location_id
integer
Primary location ID
country
string
Country name
city
string
City name
postal_code
string
Postal or ZIP code
address
string
Street address
formatted_location
string
Complete formatted address

Update Settings

Requires authentication. Accessible by Staff, Admin, and Owner roles.
Update merchant settings and business hours.
PATCH /api/v1/merchant/settings
curl -X PATCH 'https://api.example.com/api/v1/merchant/settings' \
  --cookie "session_token=your_session_token" \
  --header 'Content-Type: application/json' \
  --data '{
    "introduction": "Welcome to our salon",
    "announcement": "Spring special: 20% off all services",
    "about_us": "Professional hair and beauty services since 2020",
    "parking_info": "Free parking in rear lot",
    "payment_info": "We accept cash, credit cards, and mobile payments",
    "cancel_deadline": 1440,
    "booking_window_min": 60,
    "booking_window_max": 10080,
    "buffer_time": 15,
    "business_hours": {
      "1": [{"start_time": "09:00:00", "end_time": "17:00:00"}],
      "2": [{"start_time": "09:00:00", "end_time": "17:00:00"}],
      "3": [{"start_time": "09:00:00", "end_time": "17:00:00"}],
      "4": [{"start_time": "09:00:00", "end_time": "17:00:00"}],
      "5": [{"start_time": "09:00:00", "end_time": "20:00:00"}]
    }
  }'
introduction
string
required
Brief introduction or tagline
announcement
string
required
Current announcement (can be empty string)
about_us
string
required
Detailed business description
parking_info
string
required
Parking instructions
payment_info
string
required
Payment information
cancel_deadline
integer
required
Cancellation deadline in minutes
booking_window_min
integer
required
Minimum advance booking time in minutes
booking_window_max
integer
required
Maximum advance booking time in minutes
buffer_time
integer
required
Buffer time between appointments in minutes
business_hours
object
required
Map of day (0-6) to array of time slot objects with start_time and end_time

Get Normalized Business Hours

Requires authentication. Accessible by Staff, Admin, and Owner roles.
Get simplified business hours showing only the earliest start and latest end time for each day.
GET /api/v1/merchant/settings/business-hours/normalized
curl -X GET 'https://api.example.com/api/v1/merchant/settings/business-hours/normalized' \
  --cookie "session_token=your_session_token"
Returns a map of day number to single time slot:
{
  "1": {"start_time": "09:00:00", "end_time": "17:00:00"},
  "2": {"start_time": "09:00:00", "end_time": "17:00:00"}
}

Update Merchant Name

Requires Owner role only.
Update the merchant’s business name.
PATCH /api/v1/merchant/name
curl -X PATCH 'https://api.example.com/api/v1/merchant/name' \
  --cookie "session_token=your_session_token" \
  --header 'Content-Type: application/json' \
  --data '{"name": "New Business Name"}'
name
string
required
New merchant name

Check URL Availability

Requires authentication. Accessible by Staff, Admin, and Owner roles.
Check if a merchant URL name is available.
POST /api/v1/merchant/check-url
curl -X POST 'https://api.example.com/api/v1/merchant/check-url' \
  --cookie "session_token=your_session_token" \
  --header 'Content-Type: application/json' \
  --data '{"merchant_name": "my-salon"}'
merchant_name
string
required
Desired URL-friendly merchant name
Returns 200 OK if available, or 409 Conflict if already taken:
{
  "error": {
    "message": "Merchant URL is not unique",
    "merchant_url": "suggested-alternative"
  }
}

Get Preferences

Requires authentication. Accessible by Staff, Admin, and Owner roles.
Retrieve calendar and display preferences.
GET /api/v1/merchant/preferences
curl -X GET 'https://api.example.com/api/v1/merchant/preferences' \
  --cookie "session_token=your_session_token"
first_day_of_week
string
First day of week for calendar display (e.g., “monday”, “sunday”)
time_format
string
Time format preference (“12h” or “24h”)
calendar_view
string
Default calendar view (“day”, “week”, “month”)
calendar_view_mobile
string
Mobile calendar view preference
start_hour
string
Calendar start hour in HH:MM:SS format
end_hour
string
Calendar end hour in HH:MM:SS format
time_frequency
string
Time slot frequency in HH:MM:SS format

Update Preferences

Requires authentication. Accessible by Staff, Admin, and Owner roles.
Update calendar and display preferences.
PATCH /api/v1/merchant/preferences
curl -X PATCH 'https://api.example.com/api/v1/merchant/preferences' \
  --cookie "session_token=your_session_token" \
  --header 'Content-Type: application/json' \
  --data '{
    "first_day_of_week": "monday",
    "time_format": "24h",
    "calendar_view": "week",
    "calendar_view_mobile": "day",
    "start_hour": "08:00:00",
    "end_hour": "20:00:00",
    "time_frequency": "00:15:00"
  }'
first_day_of_week
string
required
First day of week for calendar
time_format
string
required
Time format (“12h” or “24h”)
calendar_view
string
required
Default calendar view
calendar_view_mobile
string
required
Mobile calendar view
start_hour
string
required
Calendar start hour (HH:MM:SS)
end_hour
string
required
Calendar end hour (HH:MM:SS)
time_frequency
string
required
Time slot frequency (HH:MM:SS)

Delete Merchant

Requires Owner role only. This action is irreversible.
Permanently delete the merchant account and all associated data.
DELETE /api/v1/merchant
curl -X DELETE 'https://api.example.com/api/v1/merchant' \
  --cookie "session_token=your_session_token"
Returns 200 OK on successful deletion.

Build docs developers (and LLMs) love