Cancellation Policy
Appointment cancellation policy: how many hours in advance cancellation is free and the penalty amount.
GET — public. PATCH — salon owner only.
Get Cancellation Policy
GET /api/v1/salons/:id/cancellation_policy
Response 200
{
"success": true,
"status": "200",
"message": "Cancellation policy retrieved successfully",
"errors": null,
"data": {
"cancellation_hours_before": 24,
"cancellation_fee_percent": "0.0"
}
}
| Field | Description |
|---|---|
cancellation_hours_before | Hours before appointment that allows free cancellation |
cancellation_fee_percent | Penalty in % if cancelled after the deadline |
Update Cancellation Policy
PATCH /api/v1/salons/:id/cancellation_policy
Requires authentication. Salon owner only.
Request
{
"cancellation_policy": {
"cancellation_hours_before": 12,
"cancellation_fee_percent": 50
}
}
Response 200
{
"success": true,
"status": "200",
"message": "Cancellation policy updated successfully",
"errors": null,
"data": {
"cancellation_hours_before": 12,
"cancellation_fee_percent": "50.0"
}
}