I'm using often the API and just found 2 more bugs.
1. If I send api request and try to book appointment using existing package (what I wrote in my previous ticket) - I can still send requests also if the capacity used fully, and then I see "-1" or something like that. Image attached.
2. When I enroll to appointment using API, it doesn't showed in google calendar.
Thank you for reporting these issues. Here's what I can share regarding the bugs you've encountered:
1. Overbooking with Fully Used Package Capacity
The API should prevent bookings if the package's capacity is fully utilized. The behavior you're describing, where requests are accepted and result in a "-1" or similar values, indicates a bug in the capacity validation process. We recommend:
Double-checking the API request payload to ensure it's correctly formatted.
If the issue persists, please provide more details, including the specific request and response data, to help us reproduce and resolve it.
2. Google Calendar Sync Issue
Appointments created via the API should sync with Google Calendar if the integration is correctly configured. If enrollments are not appearing:
Verify that the Google Calendar integration is active and properly linked to the employee.
Ensure the appointments booked through the API are assigned to an employee with an active Google Calendar connection.
Check the synchronization logs for any errors.
If the issue persists, please provide access to your API logs and Google Calendar settings so we can investigate further.
Thank you for your patience, and we’ll work to resolve these bugs promptly.
Package Booking Issue: The behavior you observed when no slots are available may relate to mismatched configurations for services or packages. Verify that all necessary details—such as packageCustomer and slot availability—align with your booking logic. Double-check that your request includes valid packageCustomerService attributes. If the issue persists, it could indicate an internal handling inconsistency requiring further review.
Google Calendar Integration: To attach bookings to the correct Google Calendar, include the key "googleCalendarEmployeeId": [employee_id] in your request body under the relevant booking object. This ensures the appointment is correctly linked to the employee's calendar.
Let me know if this helps or if you need additional assistance!
Thank you for the details. I will take a look into this and investigate the issue you're experiencing. I'll get back to you as soon as I have more information.
Feel free to check the calendar issue in the meantime.
Hello!
I'm using often the API and just found 2 more bugs.
1. If I send api request and try to book appointment using existing package (what I wrote in my previous ticket) - I can still send requests also if the capacity used fully, and then I see "-1" or something like that. Image attached.
2. When I enroll to appointment using API, it doesn't showed in google calendar.
Thanks.
Attached files: screenshot-amelia.png
Hello,
Thank you for reporting these issues. Here's what I can share regarding the bugs you've encountered:
1. Overbooking with Fully Used Package CapacityThe API should prevent bookings if the package's capacity is fully utilized. The behavior you're describing, where requests are accepted and result in a "-1" or similar values, indicates a bug in the capacity validation process. We recommend:
- Double-checking the API request payload to ensure it's correctly formatted.
- If the issue persists, please provide more details, including the specific request and response data, to help us reproduce and resolve it.
2. Google Calendar Sync IssueAppointments created via the API should sync with Google Calendar if the integration is correctly configured. If enrollments are not appearing:
If the issue persists, please provide access to your API logs and Google Calendar settings so we can investigate further.
Thank you for your patience, and we’ll work to resolve these bugs promptly.
Kind Regards,
Uros Jovanovic
[email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps, and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables
Hello Ofek,
Thank you for reaching out!
Package Booking Issue: The behavior you observed when no slots are available may relate to mismatched configurations for services or packages. Verify that all necessary details—such as packageCustomer and slot availability—align with your booking logic. Double-check that your request includes valid packageCustomerService attributes. If the issue persists, it could indicate an internal handling inconsistency requiring further review.
Google Calendar Integration: To attach bookings to the correct Google Calendar, include the key "googleCalendarEmployeeId": [employee_id] in your request body under the relevant booking object. This ensures the appointment is correctly linked to the employee's calendar.
Let me know if this helps or if you need additional assistance!
Kind Regards,
Uros Jovanovic
[email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps, and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables
I don't understand...
According to documentation, there's nothing with "packageCustomerService". That's the request body I send with /bookings endpoint:
{
"serviceId": 12,
"providerId": 169,
"locationId": null,
"bookings": [
{
"customerId": 386,
"status": "approved",
"duration": 3600,
"persons": 1,
"extras": [],
"customFields": "{\"1\":{\"label\":\"text\",\"value\":\"\",\"type\":\"text\"},\"4\":{\"label\":\"Adresa\",\"value\":\"\",\"type\":\"address\"}}",
"packageCustomerService": {
"packageCustomer": {
"id": 1977
}
}
}
],
"bookingStart": "2024-11-26 09:00",
"notifyParticipants": 0,
"internalNotes": "",
"lessonSpace": null
}
And when there's no slots available, instead of getting an error I still can book and see in Packages Purchases list on website the "-1".
I'll check the second issue with calendar,
Thanks.
Kind Regards,
Uros Jovanovic
[email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps, and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables