Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Aashi30756/bd1c3e85ef149119c59edbbb69b780a2 to your computer and use it in GitHub Desktop.
Save Aashi30756/bd1c3e85ef149119c59edbbb69b780a2 to your computer and use it in GitHub Desktop.
G6 OTA and HDP/Ordering
Ota Request :
{
"source": "Consumer_Guest",
"channel": "Android App",
"occupancy_hotel_category_map": [
{
"checkin": "2025-05-09",
"checkout": "2025-05-12",
"room_config": {
"adults": 2,
"children": 0,
"room_count": 1
},
"hotel_details_map": {
"294295": [
{
"room_category_id": 285444,
"rate_code_ids": [
1
]
}
]
}
}
],
"requested_modes": [
"datewise"
],
"requested_fields": [
"crs_price",
"slasher_price",
"datewise_details"
]
}
Response :
{
"occupancy_hotel_category_map": [
{
"id": 1,
"occupancy": [
1,
0,
0
],
"checkin_time": "2025-05-09",
"checkout_time": "2025-05-12",
"pricing_details": {
"isCouponValidForQuotation": true,
"datewise": {
"294295_285444_1_2025-05-11": {
"hotel_id": 294295,
"room_category_id": 285444,
"rate_code_id": 1,
"is_mrn_eligible": false,
"date": "2025-05-11",
"crs_price": {
"1": 58.27,
"2": 62.97,
"3": 62.97,
"4": 62.97
},
"slasher_price": {
"1": 61.99,
"2": 66.99,
"3": 66.99,
"4": 66.99
},
"floor_price": {},
"mrnEligible": false,
"applicable_insurance": 0.0,
"final_price_map": {
"1": 58.27,
"2": 62.97,
"3": 62.97,
"4": 62.97
},
"final_price_without_surcharge_map": {},
"occ_crs_price": 62.97,
"surcharge_fee": 0.0,
"no_prepaid": false,
"extra_discount": 0.0,
"adjusted_tax_amount": 0.0
},
"294295_285444_1_2025-05-10": {
"hotel_id": 294295,
"room_category_id": 285444,
"rate_code_id": 1,
"is_mrn_eligible": false,
"date": "2025-05-10",
"crs_price": {
"1": 63.91,
"2": 68.61,
"3": 68.61,
"4": 68.61
},
"slasher_price": {
"1": 67.99,
"2": 72.99,
"3": 72.99,
"4": 72.99
},
"floor_price": {},
"mrnEligible": false,
"applicable_insurance": 0.0,
"final_price_map": {
"1": 63.91,
"2": 68.61,
"3": 68.61,
"4": 68.61
},
"final_price_without_surcharge_map": {},
"occ_crs_price": 68.61,
"surcharge_fee": 0.0,
"no_prepaid": false,
"extra_discount": 0.0,
"adjusted_tax_amount": 0.0
},
"294295_285444_1_2025-05-09": {
"hotel_id": 294295,
"room_category_id": 285444,
"rate_code_id": 1,
"is_mrn_eligible": false,
"date": "2025-05-09",
"crs_price": {
"1": 63.91,
"2": 68.61,
"3": 68.61,
"4": 68.61
},
"slasher_price": {
"1": 67.99,
"2": 72.99,
"3": 72.99,
"4": 72.99
},
"floor_price": {},
"mrnEligible": false,
"applicable_insurance": 0.0,
"final_price_map": {
"1": 63.91,
"2": 68.61,
"3": 68.61,
"4": 68.61
},
"final_price_without_surcharge_map": {},
"occ_crs_price": 68.61,
"surcharge_fee": 0.0,
"no_prepaid": false,
"extra_discount": 0.0,
"adjusted_tax_amount": 0.0
}
},
"summed": {},
"average": {}
}
}
]
}
HDP/Ordering Request :
{
"newOvhFlow": false,
"isFrnApplicable": false,
"otaBooking": false,
"pricingOwnedWizardLogic": false,
"listing": false,
"channelSourceValidForCpp": false,
"country_id": 0,
"is_pricing_owned_wizard_logic": false,
"price_metadata": {
"utm_source": "",
"booking_hotel_segments": null
},
"checkin": "2025-05-20",
"checkout": "2025-05-21",
"occupancy": [
0,
1,
0
],
"occupancy_hotel_category_map": [
{
"id": 1,
"hotelIds": null,
"requestId": null,
"clientReferenceId": null,
"checkin": "2025-05-20",
"checkout": "2025-05-22",
"occupancy": [
1,
0,
0
],
"hotel_category_map": null,
"hotel_details_map": {
"294678": [
{
"room_category_id": 285493,
"rate_code_ids": [
1
]
}
]
},
"room_config": {
"adults": 3,
"children": 0,
"room_count": 1
}
}
],
"accommodation_type": "HOTEL",
"source": "Consumer_Guest",
"channel": "Android App",
"client_platform": "belvilla",
"requested_fields": [
"additional_cost",
"crs_price",
"slasher_price",
"price_included"
],
"requested_service_prices": [],
"non_optin_services": [],
"non_optin_services_in_average": [],
"requested_modes": [
"summed",
"average",
"datewise"
],
"precision": 2,
"user_profile_id": "220410129",
"optin_services": [],
"map_type": "hotel-category",
"wizard_renewable_feature": false,
"oyo_money_applicable": 0.0,
"fallback_default_prices": true,
"override": false,
"walkin_override": false,
"requested_rateplans": [],
"disable_fallback": [],
"rate_plan": false,
"bundle_info": {},
"micro_market_id": 0,
"slot_info": [],
"language_code": "EN",
"user_logged_in": false,
"bundle_data": {},
"is_ota_booking": false,
"is_listing": false,
"corporate_account_numberd": "CP8PPQBU"
}
Response :
{
"occupancy_hotel_category_map": [
{
"id": 1,
"occupancy": [
1,
0,
0
],
"checkin_time": "2025-05-20",
"checkout_time": "2025-05-22",
"pricing_details": {
"isCouponValidForQuotation": true,
"datewise": {
"294678_285493_1_2025-05-20": {
"hotel_id": 294678,
"room_category_id": 285493,
"rate_code_id": 1,
"is_mrn_eligible": false,
"date": "2025-05-20",
"crs_price": {
"1": 74.03,
"2": 74.03,
"3": 78.73,
"4": 83.43
},
"slasher_price": {
"1": 78.76,
"2": 78.76,
"3": 83.76,
"4": 88.76
},
"floor_price": {},
"mrnEligible": false,
"applicable_insurance": 0.0,
"final_price_map": {
"1": 74.03,
"2": 74.03,
"3": 78.73,
"4": 83.43
},
"final_price_without_surcharge_map": {},
"occ_crs_price": 78.73,
"surcharge_fee": 0.0,
"no_prepaid": false,
"extra_discount": 0.0,
"adjusted_tax_amount": 0.0
},
"294678_285493_1_2025-05-21": {
"hotel_id": 294678,
"room_category_id": 285493,
"rate_code_id": 1,
"is_mrn_eligible": false,
"date": "2025-05-21",
"crs_price": {
"1": 74.03,
"2": 74.03,
"3": 78.73,
"4": 83.43
},
"slasher_price": {
"1": 78.76,
"2": 78.76,
"3": 83.76,
"4": 88.76
},
"floor_price": {},
"mrnEligible": false,
"applicable_insurance": 0.0,
"final_price_map": {
"1": 74.03,
"2": 74.03,
"3": 78.73,
"4": 83.43
},
"final_price_without_surcharge_map": {},
"occ_crs_price": 78.73,
"surcharge_fee": 0.0,
"no_prepaid": false,
"extra_discount": 0.0,
"adjusted_tax_amount": 0.0
}
},
"summed": {
"294678_285493_1": {
"hotel_id": 294678,
"room_category_id": 285493,
"rate_code_id": 1,
"is_mrn_eligible": false,
"crs_price": 157.47,
"crs_price_breakup": {
"1": 148.07,
"2": 148.07,
"3": 157.47,
"4": 166.87
},
"slasher_price": 167.52,
"slasher_price_breakup": {
"1": 157.52,
"2": 157.52,
"3": 167.52,
"4": 177.52
},
"slasher_price_tax_breakup": {
"1": 19.24,
"2": 19.24,
"3": 20.47,
"4": 21.69
},
"cpp_price": 0.0,
"cpp_price_map": {},
"final_price": 157.47,
"tax_info": {
"total_tax": 20.47,
"final_price_with_tax": 177.94
},
"mrnEligible": false,
"surcharge_fee_map": {},
"applicable_insurance": 0.0,
"price_included": [],
"final_price_map": {
"1": 148.07,
"2": 148.07,
"3": 157.47,
"4": 166.87
},
"final_price_tax_map": {
"1": 19.24,
"2": 19.24,
"3": 20.47,
"4": 21.69
},
"final_price_without_surcharge": 157.47,
"final_price_without_surcharge_map": {},
"surcharge_fee": 0.0,
"price_upload_source": "Algo_Pricing",
"metadata": "{\"raw_crs_price\":{}}",
"sanitisation_fee": 0.0,
"no_prepaid": false,
"extra_discount": 0.0,
"adjusted_tax_amount": 0.0
}
},
"average": {
"294678_285493_1": {
"hotel_id": 294678,
"room_category_id": 285493,
"rate_code_id": 1,
"is_mrn_eligible": false,
"crs_price": 78.73,
"crs_price_breakup": {
"1": 74.03,
"2": 74.03,
"3": 78.73,
"4": 83.43
},
"slasher_price": 83.76,
"slasher_price_breakup": {
"1": 78.76,
"2": 78.76,
"3": 83.76,
"4": 88.76
},
"slasher_price_tax_breakup": {
"1": 19.24,
"2": 19.24,
"3": 20.47,
"4": 21.69
},
"cpp_price": 0.0,
"cpp_price_map": {},
"final_price": 78.73,
"tax_info": {
"total_tax": 10.24,
"final_price_with_tax": 88.97
},
"mrnEligible": false,
"surcharge_fee_map": {},
"applicable_insurance": 0.0,
"price_included": [],
"final_price_map": {
"1": 74.03,
"2": 74.03,
"3": 78.73,
"4": 83.43
},
"final_price_tax_map": {
"1": 19.24,
"2": 19.24,
"3": 20.47,
"4": 21.69
},
"final_price_without_surcharge": 78.73,
"final_price_without_surcharge_map": {},
"surcharge_fee": 0.0,
"price_upload_source": "Algo_Pricing",
"metadata": "{\"raw_crs_price\":{}}",
"sanitisation_fee": 0.0,
"no_prepaid": false,
"extra_discount": 0.0,
"adjusted_tax_amount": 0.0
}
}
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment