Authenticate with Application Password, with user having 'manage_options' capability
GET /wp-json/jet-engine/v2/appointment-refresh-date/?service={service_id}&provider={provider_id}
For example /wp-json/jet-engine/v2/appointment-refresh-date/?service=75&provider=false
Response:
{
"success": true,
"data": {
"excludedDates": [
{
"start": 1707782400,
"end": 1707782400,
"service": 75,
"is_full": true
},
{
"start": 1707868800,
"end": 1707868800,
"service": 75,
"is_full": true
},
{
"start": 1707955200,
"end": 1707955200,
"service": 75,
"is_full": true
}
],
"worksDates": [],
"datesRange": {
"start": 0,
"end": 0
},
"datesMode": "override_days",
"availableWeekDays": [
"saturday",
"sunday",
"monday"
]
}
}
POST /wp-json/jet-engine/v2/appointment-add-appointment
Pass an array of appointments
[
{
"service": 75,
"date": "18/02/2024",
"date_timestamp": "1708214400",
"slot": "10:00",
"slot_end": "16:00",
"slot_timestamp": "1708250400",
"slot_end_timestamp": "1708272000",
"status": "pending",
"user_email": "[email protected]"
},
{
"service": 75,
"date": "18/02/2024",
"date_timestamp": "1708214400",
"slot": "10:00",
"slot_end": "16:00",
"slot_timestamp": "1708250400",
"slot_end_timestamp": "1708272000",
"status": "pending",
"user_email": "[email protected]"
}
]
/wp-json/jet-booking/v2/ fot JetBooking
endpoints can be found in folder \jet-booking\includes\rest-api\endpoints