system
November 7, 2018, 10:46am
1
Migrated from Redmine #281 | Author: Sam Holtby
Status: New | Priority: Immediate, there is BUG! | Created: 2018-11-07
Hello,
It seems the ‘price’ attribute is missing from the method ‘getBookingDetails’ API response. However, there is now an attribute named ‘invoice_id’. I wasn’t able to find what this was via your documentation though or it’s now replacing price.
Could you please look in to why the price attributes are missing?
system
November 7, 2018, 11:35am
2
Dmytro Bondarev wrote:
Hello! ‘price’ was deprecated. Please use ‘invoice’ data (will be available very soon).
Later we will add public API for invoices.
system
November 12, 2018, 11:00am
3
Sam Holtby wrote:
Hello,
Thank you for the update. I can see that the invoice field has now been populated. However, I’m now having an issue with the invoice data missing from various bookings. See below for an example. Please note I’ve replaced sensitive information with the tag [REMOVED].
stdClass Object
(
[id] => 1832
[code] => 2rk1evnel
[is_confirmed] => 1
[comment] =>
[event_id] => 2
[event_name] => [Inside & Outside Wash]
[event_duration] => 120
[event_buffertime_before] => 0
[event_buffertime_after] => 0
[event_price] => 25.0000
[event_currency] => GBP
[event_tax_id] =>
[invoice_id] =>
[invoice_number] =>
[invoice_status] =>
[invoice_currency] =>
[invoice_line_amount] =>
[invoice_payment_received] =>
[invoice_amount] => 0.0000
[invoice_payment_processor] =>
[invoice_payment_processor_id] =>
[event_image] =>
[event_image_path] =>
[unit_id] => 9
[unit_name] => [REMOVED]
[unit_description] =>
[unit_email] => [REMOVED]
[unit_phone] => [REMOVED]
[unit_image] => e7abfcfd832a6c68edc90c2a108bd186.jpg
[unit_image_path] => [REMOVED]
[start_date_time] => 2018-11-09 09:00:00
[end_date_time] => 2018-11-09 11:00:00
[client_timezone] =>
[record_date] => 2018-11-07 11:07:10
[client_id] => 1288
[client_name] => [REMOVED]
[client_email] => [REMOVED]
[client_phone] => [REMOVED]
[client_address1] =>
[client_address2] =>
[client_city] =>
[client_zip] => [REMOVED]
[client_country_id] => [REMOVED]
[company_login] => [REMOVED]
[company_name] => Dropless Ltd.
[company_phone] => [REMOVED]
[company_email] => [REMOVED]
[additional_fields] => [REMOVED]
[comments] => Array
(
)
[history] => [REMOVED]
[status] => stdClass Object
(
[id] => 3
[name] => Cleaned Car
[description] =>
[color] => 00ff09
[is_default] => 0
)
[location] => Array
(
)
[price] => Array
(
)
[promo] => stdClass Object
(
[id] => 703
[plugin_promo_id] => 65
[sheduler_id] => 1832
[discount] => 25.0000
[code] => [REMOVED]
[referral_client_id] =>
)
[invoice] =>
[batch_type] => recurring
[batch_id] => 1052
)
system
November 12, 2018, 11:04am
4
Dmytro Bondarev wrote:
Hello! It seems this booking was created without payment. So no need invoice.
system
November 12, 2018, 12:38pm
5
Sam Holtby wrote:
Hello,
It seems to me that since the update to invoice some bookings are missing the payment information.
Each booking is made with the ‘delay’ payment type. Has this also been removed?
Could the fact it’s a recurring booking be an issue?
system
November 12, 2018, 12:45pm
6
Dmytro Bondarev wrote:
Can you please provide company login?
system
November 12, 2018, 12:54pm
7
system
November 12, 2018, 12:59pm
8
Dmytro Bondarev wrote:
It looks like you making such booking via Admin API.
So there is no need payment, that is why invoice info is absent.
system
November 12, 2018, 1:18pm
9
Sam Holtby wrote:
Ok, I’m not sure why that means a booking doesn’t have a final price, even after a promo code has been added.
Is there any other way of receiving the final price for booking as before the invoice update?
I need to charge my clients. I’m not able to do so, due to this issue.
system
November 12, 2018, 1:23pm
10
Dmytro Bondarev wrote:
How do you create booking?
system
November 12, 2018, 1:36pm
11
Sam Holtby wrote:
We use the AdminAPI with the book method. This has worked until recently.
system
November 12, 2018, 2:23pm
12
Dmytro Bondarev wrote:
We have changed payment process, now all payments works through the invoices.
If you create booking via Admin API - there is no payment. So you will not get invoice.
But you have event_price and event_currency.
In case you need invoice, then please use public API.
But we do not have public API to confirm invoice payment. we will add it soon.