Okay
  Public Ticket #2019781
Sales
Closed

Comments

  • dan haddad started the conversation

    Do you offer any back end APIs? Specifically we have an on premise appointment system that has available slots that we can expose via a rest API, would like to integrate such that only available slots display in online scheduling (or another way to block off unavailable time to customers from our back endpoint.)

  • [deleted] replied

    Hi Dan,

    Thank you for your interest in our plugin.

    Yes we have API Routes for the Amelia app, but most of them are protected depends on of the permissions that is set in WordPress Accounts. You can check those API Routs in our free version of Amelia. Amelia Lite is a free WordPress booking plugin that allows to set up a fully-featured automated WordPress booking system on your website. It is a handy tool for small businesses and individuals that depend on stable appointment-booking processes. You can download it from this link.

    When you download Lite version you can find all API Routs in this file ../wp-content/plugins/ameliabooking/src/Infrastructure/Routes/Routes.php

    At the moment we have some JavaScript hooks that triggers after confirm booking, before confirm booking...

    Best regards.


  • dan haddad replied

    Understood, so I would need to handle the authentication portion to be able to access the APIs?

     

    Is there an API for either creating a specific blocked off period of time? (Perhaps setting the availably 8-5 and then a cron job that schedules appointments with dummy\null customers for all the unavailable times? Or is there a way to hook into the request for availability and just display the available slots from our endpoint?


    Do you have any documentation for the API , endpoints and payloads? id rather not have to install it just to be able to take a look at that data... 

  • [deleted] replied

    Hi Dan,

    You have three options here:

    1) You can create periods of working time in our plugin and put breaks or even special days with special working hours for each employee and block certain time slots in that way. More about creating the schedule you can read here.

    2) You can connect each employee with their Google calendar and use our synchronization with Google Calendar to block certain time slots. Each time when you or employees add an event into the Google Calendar the time slots from Amelia will be blocked and removed from the calendar so the users cannot book them.

    3) If you want to create fake bookings over API you can do it with ajax POST requests (sending dummy data about customers, and real service/employee IDs, booking start, and some optional data). This doesn't require authentication but it requires sending real service/employee IDs.

    Best regards.

  • dan haddad replied

    Can you show me what the ajax POST payload would look like?

  • [deleted] replied

    Hi Dan,

    You can take a look in the browser console of our demo site (go to the Book appointment and find it on the booking step), or you can contact us in Amelia section of this support platform once you purchase the plugin and our technical support will be glad to send you.

    Best regards.