How to get service id (appointment type id)

Hello,

I need to redirect from the website to the booking page.
Right now, I am using this link: https://mylink.youcanbook.me/?service=MY_SERVICE_ID

MY_SERVICE_ID is appointment type id (I got it manually from the appoiment type path on youcanbook.me)

I want to install them via CMS, so I need to get the Appoiment Type list via api.

How to get it?

Thanks!

@kevin.quoc run a GET to your booking page: /v1/{ACCOUNT-ID}/profiles/{PROFILE-ID}/

With:
?fields=appointmentTypes,appointmentTypes.items,appointmentTypes.items.name,appointmentTypes.items.id

This will give you the name and ID of each Appointment Type you have setup on the page.

2 Likes

Thanks @Ben!

It’s wonderful

Thanks for help.

1 Like