Restriction vs. FPLOS
Modified on: 2021-09-01 18:10
Restriction
The Restrictions existed in the response of the /ari/daily/details APIs of both AgencyUSB and ExtranetUSB.
Example:
"availStatuses": {
"close": [
false,
false,
false,
false
],
"minStayArrival": [
0,
2,
0,
0
],
"maxStayArrival": [
0,
2,
0,
0
],
"minStayThrough": [
0,
2,
0,
0
],
"maxStayThrough": [
0,
2,
0,
0
],
"minAdvanceDay": [
0,
2,
0,
0
],
"maxAdvanceDay": [
365,
365,
365,
365
],
"cta": [
false,
false,
false,
true
],
"ctd": [
false,
false,
false,
true
],
"fplos": [
"1111111",
"1001111",
"1000001",
"0000000"
]
},Below are the definitions for each field of the restriction:
| AvailStatus ( take the availStatus of March 10th for example) | Descriptions |
|---|---|
| Close=true | The availability for this product is closed (can not be sold). |
| minStayArrival=2 | I need to stay at least 2 days if I check in on March 10th. |
| maxStayArrival=2 | I can stay 2 days at most if I check in on March 10th. |
| minStayThrough=3 | When the stay range passed through March 10th, I need to stay at least 3 days.
|
| maxStayThrough=3 | When the stay range passed through March 10th, I can only stay for 3 days at most.
|
| minAdvanceDay=2 | If I want to check in on March 10th, I need to make a reservation before March 8th. |
| maxAdvanceDay=2 | If I want to check in on March 10th, I can only make a reservation for this product from March 8th. |
| cta=true | Close to arrival, can not check-in on March 10th. |
| ctd=true | Close to departure, can not check out on March 10th. |
| Fplos=“0010110” | Full pattern length of stay. If I want to check in on March 10th, only stay 3 days, 5 days and 6 days are available. |
FPLOS
Full Pattern Length of Stay: All possible length of stay options are provided in a string, with open or closed values. (IE: 1=Open, 0=Closed)
Example:
| FPLOS | Explanation |
|---|---|
| 1001110=7 day total possible LOS | 1 night LOS is open; 2&3 night LOS is closed; 4, 5, &6 night LOS is open; 7 night LOS is closed. |
Did you find it helpful? Yes No
Send feedback