Migrated from Redmine #1222 | Author: Nathan Schram
Status: New | Priority: Normal | Created: 2024-04-23
Hello,
I’m currently exploring how to use the SimplyBook.me API to achieve a use case I have that is not currently natively available in your platform.
Specifically, I have partners who need to book follow-up services for clients. When this happens, the client doesn’t log into SimplyBook. Instead, the partner needs to be able to book on behalf of the client.
To achieve this, I will be creating a partner portal.
I’m hoping you can answer some API questions.
The partner will need to log into their account through my portal. To achieve this, I’ll have the user make a login request, which will proxy through a custom API on my own server. The request will then proxy off to the SimplyBook.Me API at the getUserToken endpoint.
After successfully authenticating as one of my partners, I’ll allow the partner to specify a client’s name, email, and phone number. This information will then be passed to the /book endpoint, allowing the partner to create a booking for the client on behalf of the partner.
My questions specifically are:
If the partner enters a name, email, and phone number that matches an existing account in SimplyBook.me, will it link the booking up to the existing client account?
If the partner enters a name, email, and phone number that does NOT match an existing account in SimplyBook.Me, will it create a new account for that client?
If the partner enters an email address that matches an existing account but not the phone number, will the booking still be linked to the existing account?
I have the same question as above, but does the phone number match an existing account, and the email address doesn’t?
Thanks in advance for your assistance.
Kind regards,
Nathan