Create Blocked Time
Requires authentication.
POST /api/v1/merchant/blocked-times
Name or description of the blocked time
ID of the blocked time type (for categorization)
Start date and time in ISO 8601 format
End date and time in ISO 8601 format
Whether this is an all-day block (ignores specific times if true)
Response
Returns201 Created on success.
Update Blocked Time
Requires authentication.
PUT /api/v1/merchant/blocked-times/{id}
Blocked time ID
Blocked time ID (must match path parameter)
Delete Blocked Time
Requires authentication.
DELETE /api/v1/merchant/blocked-times/{id}
Blocked time ID to delete
Blocked Time Types
Blocked time types provide categorization and visual distinction for different kinds of unavailability.Common Use Cases
- Breaks: Lunch, coffee breaks
- Vacation: Planned time off
- Sick Leave: Unplanned absence
- Appointments: External appointments or meetings
- Training: Professional development time
- Administrative: Paperwork, planning time
All-Day Blocked Times
Whenall_day is set to true:
- The specific times in
from_dateandto_dateare ignored - The entire day(s) between the dates are blocked
- Useful for vacations, holidays, or full-day events
Time-Specific Blocked Times
Whenall_day is false:
- Use specific times in the ISO 8601 format
- Blocks only the specified time range
- Can span multiple days if needed
Integration with Calendar
Blocked times appear on the merchant calendar and prevent bookings during those periods. The system:- Shows blocked times in the calendar view
- Prevents customer bookings during blocked periods
- Displays the block name and type (if set)
- Respects team member assignments (blocks only affect specific team members)
External Calendar Integration
Blocked times can be automatically created from external calendar integrations (see Integrations). These blocks:- Have a
sourcefield indicating the origin (e.g., “google_calendar”) - Are automatically synced when the external calendar changes
- Should not be manually edited (changes will be overwritten)
- Are removed when the integration is disconnected
Domain Model
Behind the scenes, blocked times are represented as:Best Practices
Recurring Blocked Times
For recurring blocks (like daily lunch breaks), create individual instances:Planning Ahead
- Book Vacations Early: Enter vacation blocks as soon as they’re approved
- Regular Breaks: Set up standard lunch and break times
- Update Promptly: Remove or update blocks when plans change
- Clear Names: Use descriptive names that explain the block
Blocked Time Types
Create blocked time types for common categories:- Different icons/colors for visual distinction
- Easier filtering and reporting
- Consistent categorization across team