• Hi I am trying to set up an appointment booking system for my website. However, I am struggling to get the appointment data from the order and place it into a custom email. I am wondering if anyone nows what API request I can make to get the appointment data & time from the order, or any other way in which I can place this data in custom emails.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter smp5

    (@smp5)

    register_rest_route(
    MVVWB_TOKEN . ‘/v1’,
    ‘/booking/(?P<id>\d+)’,
    array(
    ‘methods’ => ‘GET’,
    ‘callback’ => array($this, ‘getBooking’),
    ‘permission_callback’ => array($this, ‘get_permission’)
    )
    );

    Thread Starter smp5

    (@smp5)

    Fount the route that should do it. However, I geep getting ”rest route not found” error when submitting request

    Thread Starter smp5

    (@smp5)

    Does anyone know the exact url I should use?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Get Appointment date & Time with API’ is closed to new replies.