POST/ Get Cancellation Policy Details
Get Cancellation Policy Details
DESCRIPTION
This API returns the Rules and Descriptions of Cancellation Rules in Days
HEADERS TO USE FOR REQUEST
|
Parameter |
Value |
|
Content-Type |
application/json |
|
APIKEY |
|
|
TENANTCODE |
|
BODY PARAMETERS
|
Name |
Type |
Description |
Example |
|
TenantCode |
String |
Provide Tenant code |
Code Provided Separately |
UAT URL: https://uat.breakaway.ie/api/CancellationPolicy/GetCancellationPolicy
RESPONSE PARAMETERS
|
Name |
Type |
Description |
Example |
|
Result |
boolean |
|
true/false |
|
Message |
String |
|
|
|
Object |
Array of Objects |
Cancellation Policy and List of cancellation rules |
|
|
IsTimeout |
boolean |
|
|
|
ErrorCode |
|
|
|
ERROR CODES
|
HTTP Status |
Type |
|
500 |
INTERNAL_SERVER_ERROR |
SAMPLE REQUEST
{
"TenantCode": "CODE"
}
SAMPLE RESPONSE
{
"Result": true,
"ResultMessage": null,
"Object": {
"CancellationPolicyName": "Cancellation Policy for Dnata",
"RegularCancellationBeforDay": 31,
"PolicyDescription": "Cancellations shall not incur any fees as long as they are made at the latest 31 (thirty-one) days prior to arrival.",
"CancellationCalulationRulesObj": [
{
"MinDays": 8,
"MaxDays": 30,
"CancellationValue": 25,
"Factor": "%",
"Description": "30 - 8 days prior to departure – 25%"
},
{
"MinDays": 3,
"MaxDays": 7,
"CancellationValue": 50,
"Factor": "%",
"Description": "7 - 3 days prior to departure – 50%"
},
{
"MinDays": 0,
"MaxDays": 2,
"CancellationValue": 100,
"Factor": "%",
"Description": "2 - 0 days prior to departure – 100%"
}
]
},
"ExtraObject": null,
"IsTimeout": false,
"HttpResponseCode": 200,
"ErrorCode": null
}
Created with the Personal Edition of HelpNDoc: Easy CHM and documentation editor