How do I know which varied price was chosen by customer using querybooking()

Question:
How do I know which varied price was chosen by customer using querybooking()

Product:
Wix Bookings

What are you trying to achieve:
I am trying to extract data from the queryBooking() function regarding the chosen price / variant (e.g. adult or child price). The reason I am doing this (instead of going to orders in dashboard) is because I am trying to populate a page with these details (e.g. whether the customer picked adult or child price). I tried to achieve this by using the “labeledPriceOptions” in the return object but the array is empty despite having inputted varied pricing in the wix bookings services (look at attached photo). From what I understand from the velo docs, this labelPriceOptions is supposed to containing key:value pairs (e.g. Adult: $20) so I am unsure why it is empty.

Another thing is that I tried to get these details using the getCheckout() function and used the checkout ID from the queryBookings() function under paymentDetails._id but it doesn’t work. The error I get is that the checkout is not found. I also realised that the bookings ID is the same as the checkout ID (not sure if it was meant to be)?


Hello! It’d help to have more information – could you post a snippet of the code you’re using to get this return object?