Discussions

Ask a Question
Back to All

API bookings Total Value = 0

hi, i want to ask.. where or which Variable should we take to get the TOTAL or the booking price??

we are abit confused because sometimes the total query on the bookings api it shows ZERO amount?

example we try to get 2 data on the same date query on bookings api

data 1

"order_id": 1697427,
"hotel_id": 1508154879,
"room_id": 2442571,
"vroom_id": null,
"user_id": null,
"invoice": null,
"referral": "Booking",
"referral_order_id": "3015768679",
"checkin": "2023-06-01T00:00:00",
"checkout": "2023-06-03T00:00:00",
"name": "Zahlul Mahfudz",
"country": "ID",
"address": "30 08 Prudential Tower, 19 Cecil St",
"email": "[email protected]",
"emailas": null,
"phone": "+62 2035640799",
"guests": 2,
"childrens": 0,
"infants": null,
"nights": 2,
"price": 368100,
"total": 0,

data 2

[
{
"order_id": 1637622,
"hotel_id": 1508154879,
"room_id": 2442563,
"vroom_id": null,
"user_id": null,
"invoice": null,
"referral": "Booking",
"referral_order_id": "3944215847",
"checkin": "2023-06-01T00:00:00",
"checkout": "2023-06-04T00:00:00",
"name": "Joe el",
"country": "SG",
"address": "",
"email": "[email protected]",
"emailas": null,
"phone": "+65 8223 0727",
"guests": 8,
"childrens": null,
"infants": null,
"nights": 3,
"price": 3090000,
"total": 9270000,

the 1st data we have total value : "total": 0,

the 2nd data we have the total amout of : "total": 9270000,

question is

1st what make the diffrent between both 2 data? one total is ZERO amount and the other is 9270000? what cause the one is ZERO and the other has value?

2nd so if then where can i get the TOTAL value of the Guest pay ? or what is the total value that the OWNER will earn?

please advise thanks

thank you