Hi Marcus
The solution provided by is not working its giving output -0 for the below response.Please find the attached screenshot
Response:
{"BlockRoomResult": {
"TraceId": "e272f3dc-f362-4cfa-a863-0c15076ba6e7",
"ResponseStatus": 1,
"Error": {
"ErrorCode": 0,
"ErrorMessage": ""
},
"IsPriceChanged": true,
"IsCancellationPolicyChanged": false,
"HotelRoomsDetails": [
{
"RoomIndex": 1,
"RoomTypeCode": "45000000022|1",
"RoomTypeName": "Executive Room on Room basis",
"RatePlanCode": "990000000014",
"RatePlanName": "",
"InfoSource": "FixedCombination",
"SequenceNo": "IB~~1000000014~1",
"DayRates": [
{
"Amount": 2368.91,
"Date": "2014-12-28T00:00:00"
},
{
"Amount": 2368.91,
"Date": "2014-12-29T00:00:00"
}
],
"Price": {
"CurrencyCode": "INR",
"RoomPrice": 4737.82,
"Tax": 923.25,
"ExtraGuestCharge": 0,
"ChildCharge": 0,
"OtherCharges": 0,
"Discount": 0,
"PublishedPrice": 5661.07,
"PublishedPriceRoundedOff": 5661,
"OfferedPrice": 5661.07,
"OfferedPriceRoundedOff": 5661,
"AgentCommission": 0,
"AgentMarkUp": 780.84,
"ServiceTax": 48.8,
"TDS": 0
},
"RoomPromotion": "",
"Amenities": ["Accommodation"],
"SmokingPreference": "NoPreference",
"BedTypes": [],
"Supplements": [],
"SupplierSpecificData": null,
"CancellationPolicies": [
{
"Charge": 100,
"ChargeType": 2,
"Currency": null,
"FromDate": "2014-09-30T00:00:00",
"ToDate": "2014-12-19T09:59:00"
},
{
"Charge": 1,
"ChargeType": 3,
"Currency": null,
"FromDate": "2014-12-19T10:00:00",
"ToDate": "2014-12-23T09:59:00"
},
{
"Charge": 100,
"ChargeType": 2,
"Currency": null,
"FromDate": "2014-12-23T10:00:00",
"ToDate": "2014-12-26T09:59:00"
},
{
"Charge": 100,
"ChargeType": 2,
"Currency": null,
"FromDate": "2014-12-26T09:59:01",
"ToDate": "2014-12-30T23:59:59"
}
],
"LastCancellationDate": "2014-09-29T00:00:00",
"CancellationPolicy": "Executive Room on Room basis#^#100.00% of total amount will be charged, If cancelled between 30-Sep-2014 00:00:00 and 19-Dec-2014 09:59:00.| Charge of 1 night(s) will be charged, If cancelled between 19-Dec-2014 10:00:00 and 23-Dec-2014 09:59:00.|100.00% of total amount will be charged, If cancelled between 23-Dec-2014 10:00:00 and 26-Dec-2014 09:59:00.|100.00% of total amount will be charged, If cancelled between 26-Dec-2014 09:59:01 and 30-Dec-2014 23:59:59.|#!#"
},
{
"RoomIndex": 2,
"RoomTypeCode": "45000000022|2",
"RoomTypeName": "Executive Room on Room basis",
"RatePlanCode": "990000000014",
"RatePlanName": "",
"InfoSource": "FixedCombination",
"SequenceNo": "IB~~1000000014~1",
"DayRates": [
{
"Amount": 2368.91,
"Date": "2014-12-28T00:00:00"
},
{
"Amount": 2368.91,
"Date": "2014-12-29T00:00:00"
}
],
"Price": {
"CurrencyCode": "INR",
"RoomPrice": 4737.82,
"Tax": 923.25,
"ExtraGuestCharge": 0,
"ChildCharge": 0,
"OtherCharges": 0,
"Discount": 0,
"PublishedPrice": 5661.07,
"PublishedPriceRoundedOff": 5661,
"OfferedPrice": 5661.07,
"OfferedPriceRoundedOff": 5661,
"AgentCommission": 0,
"AgentMarkUp": 780.84,
"ServiceTax": 48.8,
"TDS": 0
},
"RoomPromotion": "",
"Amenities": ["Accommodation"],
"SmokingPreference": "NoPreference",
"BedTypes": [],
"Supplements": [],
"SupplierSpecificData": null,
"CancellationPolicies": [
{
"Charge": 100,
"ChargeType": 2,
"Currency": null,
"FromDate": "2014-09-30T00:00:00",
"ToDate": "2014-12-19T09:59:00"
},
{
"Charge": 1,
"ChargeType": 3,
"Currency": null,
"FromDate": "2014-12-19T10:00:00",
"ToDate": "2014-12-23T09:59:00"
},
{
"Charge": 100,
"ChargeType": 2,
"Currency": null,
"FromDate": "2014-12-23T10:00:00",
"ToDate": "2014-12-26T09:59:00"
},
{
"Charge": 100,
"ChargeType": 2,
"Currency": null,
"FromDate": "2014-12-26T09:59:01",
"ToDate": "2014-12-30T23:59:59"
}
],
"LastCancellationDate": "2014-09-29T00:00:00",
"CancellationPolicy": "Executive Room on Room basis#^#100.00% of total amount will be charged, If cancelled between 30-Sep-2014 00:00:00 and 19-Dec-2014 09:59:00.| Charge of 1 night(s) will be charged, If cancelled between 19-Dec-2014 10:00:00 and 23-Dec-2014 09:59:00.|100.00% of total amount will be charged, If cancelled between 23-Dec-2014 10:00:00 and 26-Dec-2014 09:59:00.|100.00% of total amount will be charged, If cancelled between 26-Dec-2014 09:59:01 and 30-Dec-2014 23:59:59.|#!#"
},
{
"RoomIndex": 3,
"RoomTypeCode": "45000000022|3",
"RoomTypeName": "Executive Room on Room basis",
"RatePlanCode": "990000000014",
"RatePlanName": "",
"InfoSource": "FixedCombination",
"SequenceNo": "IB~~1000000014~1",
"DayRates": [
{
"Amount": 2368.91,
"Date": "2014-12-28T00:00:00"
},
{
"Amount": 2368.91,
"Date": "2014-12-29T00:00:00"
}
],
"Price": {
"CurrencyCode": "INR",
"RoomPrice": 4737.82,
"Tax": 923.25,
"ExtraGuestCharge": 0,
"ChildCharge": 0,
"OtherCharges": 0,
"Discount": 0,
"PublishedPrice": 5661.07,
"PublishedPriceRoundedOff": 5661,
"OfferedPrice": 5661.07,
"OfferedPriceRoundedOff": 5661,
"AgentCommission": 0,
"AgentMarkUp": 780.84,
"ServiceTax": 48.8,
"TDS": 0
},
"RoomPromotion": "",
"Amenities": ["Accommodation"],
"SmokingPreference": "NoPreference",
"BedTypes": [],
"Supplements": [],
"SupplierSpecificData": null,
"CancellationPolicies": [
{
"Charge": 100,
"ChargeType": 2,
"Currency": null,
"FromDate": "2014-09-30T00:00:00",
"ToDate": "2014-12-19T09:59:00"
},
{
"Charge": 1,
"ChargeType": 3,
"Currency": null,
"FromDate": "2014-12-19T10:00:00",
"ToDate": "2014-12-23T09:59:00"
},
{
"Charge": 100,
"ChargeType": 2,
"Currency": null,
"FromDate": "2014-12-23T10:00:00",
"ToDate": "2014-12-26T09:59:00"
},
{
"Charge": 100,
"ChargeType": 2,
"Currency": null,
"FromDate": "2014-12-26T09:59:01",
"ToDate": "2014-12-30T23:59:59"
}
],
"LastCancellationDate": "2014-09-29T00:00:00",
"CancellationPolicy": "Executive Room on Room basis#^#100.00% of total amount will be charged, If cancelled between 30-Sep-2014 00:00:00 and 19-Dec-2014 09:59:00.| Charge of 1 night(s) will be charged, If cancelled between 19-Dec-2014 10:00:00 and 23-Dec-2014 09:59:00.|100.00% of total amount will be charged, If cancelled between 23-Dec-2014 10:00:00 and 26-Dec-2014 09:59:00.|100.00% of total amount will be charged, If cancelled between 26-Dec-2014 09:59:01 and 30-Dec-2014 23:59:59.|#!#"
},
{
"RoomIndex": 4,
"RoomTypeCode": "45000000022|4",
"RoomTypeName": "Executive Room on Room basis",
"RatePlanCode": "990000000014",
"RatePlanName": "",
"InfoSource": "FixedCombination",
"SequenceNo": "IB~~1000000014~1",
"DayRates": [
{
"Amount": 2368.91,
"Date": "2014-12-28T00:00:00"
},
{
"Amount": 2368.91,
"Date": "2014-12-29T00:00:00"
}
],
"Price": {
"CurrencyCode": "INR",
"RoomPrice": 4737.82,
"Tax": 923.25,
"ExtraGuestCharge": 0,
"ChildCharge": 0,
"OtherCharges": 0,
"Discount": 0,
"PublishedPrice": 5661.07,
"PublishedPriceRoundedOff": 5661,
"OfferedPrice": 5661.07,
"OfferedPriceRoundedOff": 5661,
"AgentCommission": 0,
"AgentMarkUp": 780.84,
"ServiceTax": 48.8,
"TDS": 0
},
"RoomPromotion": "",
"Amenities": ["Accommodation"],
"SmokingPreference": "NoPreference",
"BedTypes": [],
"Supplements": [],
"SupplierSpecificData": null,
"CancellationPolicies": [
{
"Charge": 100,
"ChargeType": 2,
"Currency": null,
"FromDate": "2014-09-30T00:00:00",
"ToDate": "2014-12-19T09:59:00"
},
{
"Charge": 1,
"ChargeType": 3,
"Currency": null,
"FromDate": "2014-12-19T10:00:00",
"ToDate": "2014-12-23T09:59:00"
},
{
"Charge": 100,
"ChargeType": 2,
"Currency": null,
"FromDate": "2014-12-23T10:00:00",
"ToDate": "2014-12-26T09:59:00"
},
{
"Charge": 100,
"ChargeType": 2,
"Currency": null,
"FromDate": "2014-12-26T09:59:01",
"ToDate": "2014-12-30T23:59:59"
}
],
"LastCancellationDate": "2014-09-29T00:00:00",
"CancellationPolicy": "Executive Room on Room basis#^#100.00% of total amount will be charged, If cancelled between 30-Sep-2014 00:00:00 and 19-Dec-2014 09:59:00.| Charge of 1 night(s) will be charged, If cancelled between 19-Dec-2014 10:00:00 and 23-Dec-2014 09:59:00.|100.00% of total amount will be charged, If cancelled between 23-Dec-2014 10:00:00 and 26-Dec-2014 09:59:00.|100.00% of total amount will be charged, If cancelled between 26-Dec-2014 09:59:01 and 30-Dec-2014 23:59:59.|#!#"
}
]
}}