Migrated from Redmine #91 | Author: Ara Howard Status: New | Priority: High, I’m very impatient | Created: 2018-01-17
we’re using the widget to book from our application. i am seeing a few issues, all related not being able to link the appt back to our system via the callback data.
basically what we need to do is:
have someone book
have information in the callback that let’s us know when a client booked, keeping in mind that, they may have multiple appiontments
what we need to do is specify a identifier, this could be email, a token, or something else when the client is booking so we can link it back to our system - in our particular case we need to know for which tax return an appointment was booked. i can see a few ways to do this from the docs and code including the possibility of specifiying the ‘client_email’ for the appt and making it readonly, but am unclear how to parameterize the iframe with that configuration.
essentially i need to know:
how to set values, email, phone, etc to a predefined value in the booking widget and make those values read only
and
after the callback info, knowing how to ask for details about that appoint via server-to-server api would be helpful
You can use our API callback url option. Your script will be called with booking ID. Then you can use our API to get details of this booking, client details, etc.
imagine a service that books for people to get their snow tires on. people make more than one appointment for the ‘car tire changing service’. the mechanic needs to know, before hand, which car (think uuid) the client will be coming in with.
so i would like to pass some infomation to the widget. think iframe src=/foo.html?uuid=1234
also, for us it is not allowable for the user to put in just any email address, i need to specify the one they use in our system, otherwise we have no customer data with which to look them up. imagine they use ‘foo@bar.com’ in our system as an email, but then they type ‘foo@yahoo.com’ when they book.
without either a way to specify either a uuid or to prevent them from typing just any email we have no way to use the information the booking api returns effectively because it cannot be linked back to our system.
the code supports passing some information in as ‘predefined’ now, is this possible?