[#539] API Build

Migrated from Redmine #539 | Author: Alex Proven
Status: New | Priority: Normal | Created: 2020-06-02


Hi,

I need to know if it is possible for you to POST data to an API endpoint for our account?

Whenever a customer books an appointment we need that data to be sent to another system via JSON in realtime?

Thanks,
Alex

Redmine Admin wrote:

hi, there is callback url in API plugin settings. This url will be called each time you will get a new booking

Alex Proven wrote:

So is your answer that you can’t post to another endpoint?

I would have to call your API to get the data?

Redmine Admin wrote:

you can set any endpoint you like

Alex Proven wrote:

Hi,

But it doesn’t fully answer my question.. I need a JSON posted via API.

The other system we are using already has customer profiles in that database, so in order to accurately match up appointments with the existing profile I would need specific JSON structure posting from yourselves to them. Is this possible?

Alex Proven wrote:

I have enabled the API in our account and can see that the data will be sent in JSON, is it limited to just these fields -

The callback data will be presented in the raw post data in JSON format. The following fields are available:
booking_id - Booking ID
booking_hash - Booking hash
company - Your company login
notification_type - Notification type. Can be ‘create’, ‘cancel’, ‘notify’, ‘change’

Can we not add more data fields to this?

Dmytro Bondarev wrote:

Hi! You can receive this data on your server, format it and then send to your endpoint in format that you need.
It is not possible to format request on our side.

Redmine Admin wrote:

You need to call API method getBookingDetails API documentation | SimplyBook.me Online Scheduling with such id to get all data you need