[#363] Retrieve booking address

Migrated from Redmine #363 | Author: Dmitry Trofimets
Status: New | Priority: Normal | Created: 2019-03-21


Hi there!
We’re integrating SimplyBook into our UI and we need to retrieve booking address after the booking is confirmed. So, client picks the address amongst several options, then proceeds to payment, then booking is confirmed - we need to show a confirmation page / send our own confirmation email, for that we need to retrieve chosen address. What would be the best option?

Thanks!
Cheers,
Dmitry.

Redmine Admin wrote:

Hi,

you need to call this method Company administration service methods - Company administration service methods - SimplyBook.me

Dmitry Trofimets wrote:

Doesn’t return ‘location’ object/array

That’s what get returned:
{
“id”: “43”,
“code”: “ifn16wmp”,
“is_confirmed”: “1”,
“comment”: null,
“event_id”: “6”,
“event_name”: “Тестовая сессия (Онлайн)”,
“event_duration”: “60”,
“event_buffertime_before”: “0”,
“event_buffertime_after”: “0”,
“event_price”: “1.0000”,
“event_currency”: “RUB”,
“event_tax_id”: null,
“invoice_id”: “33”,
“invoice_number”: “I-00000005”,
“invoice_status”: “paid”,
“invoice_currency”: “RUB”,
“invoice_line_amount”: “1.0000”,
“invoice_payment_received”: “1”,
“invoice_amount”: “1.0000”,
“invoice_payment_processor”: “robokassa”,
“invoice_payment_processor_id”: “1”,
“event_image”: “”,
“event_image_path”: “”,
“unit_id”: “12”,
“unit_name”: “Вероника Т.”,
“unit_description”: “”,
“unit_email”: “test2-psy-77467654662666B06D952EE36F1D@mail.psyalter.ru”,
“unit_phone”: “”,
“unit_image”: “”,
“unit_image_path”: “”,
“start_date_time”: “2019-03-21 10:00:00”,
“end_date_time”: “2019-03-21 11:00:00”,
“client_timezone”: “Europe/Moscow”,
“client_id”: “8”,
“client_name”: “Тестовый клиент”,
“client_email”: “test@psyalter.com”,
“client_phone”: “+79219286768”,
“client_address1”: “”,
“client_address2”: “”,
“client_city”: “”,
“client_zip”: “”,
“client_country_id”: “”,
“company_login”: “psyalter”,
“company_name”: “Alter”,
“company_phone”: “+79169330894”,
“company_email”: “dt@psyalter.com”,
“additional_fields”:
}

Dmitry Trofimets wrote:

Any help, please?

(Short original content)

Redmine Admin wrote:

Hi, sorry for late answer. Unfortunately we do not have method which can help you to get location data by booking id.

Dmitry Trofimets wrote:

But ehm… the API method you’ve sent link to, as per documentation, provides location object.

Redmine Admin wrote:

yes, you are right. It will provide this data if you call this method via Admin API. But there is no way to get this using public API.
Here is authorizadion differences for this 2 APIs API documentation | SimplyBook.me Online Scheduling