roomorama / concierge

Roomorama supplier integrations - webhook providers and property synchronisation
https://concierge-web.roomorama.com
3 stars 0 forks source link

Parse Kigo min_stay_rules #381

Open keang opened 8 years ago

keang commented 8 years ago

Description

Minimum stay is parsed wrongly.

The property pricing information is unavailable due to a constraint. This Property has a minimum stay of 25 nights.Unfortunately, this unit is not available for your selected period. Please try another unit.

The property in question (kigo_id=225298) has Room.minimum_stay as 30, and availability (or calendar entries) also has minimum stay of 30.

I called the API and got the following:

{
  "PRICING": {
    "CURRENCY": "USD",
    "RENT": {
      "PERGUEST_CHARGE": null,
      "PERIODS": [
        {
          "CHECK_IN": "2016-03-30",
          "CHECK_OUT": "2016-04-01",
          "NAME": "",
          "STAY_MIN": {
            "UNIT": "NIGHT",
            "NUMBER": 1
          },
          "WEEKLY": false,
          "NIGHTLY_AMOUNTS": [
            {
              "GUESTS_FROM": 1,
              "WEEK_NIGHTS": [
                1,
                2,
                3,
                4,
                5,
                6,
                7
              ],
              "STAY_FROM": {
                "UNIT": "NIGHT",
                "NUMBER": 1
              },
              "AMOUNT": "59.40"
            }
          ]
        },
        {
          "CHECK_IN": "2016-04-01",
          "CHECK_OUT": "2017-04-03",
          "NAME": "",
          "STAY_MIN": {
            "UNIT": "NIGHT",
            "NUMBER": 1
          },
          "WEEKLY": false,
          "NIGHTLY_AMOUNTS": [
            {
              "GUESTS_FROM": 1,
              "WEEK_NIGHTS": [
                1,
                2,
                3,
                4,
                5,
                6,
                7
              ],
              "STAY_FROM": {
                "UNIT": "NIGHT",
                "NUMBER": 1
              },
              "AMOUNT": "56.16"
            }
          ]
        }
      ]
    },
    "FEES": {
      "FEES": [
        {
          "FEE_TYPE_ID": 3,
          "INCLUDE_IN_RENT": false,
          "UNIT": "AMOUNT",
          "VALUE": 75,
          "LABEL": "Cleaning Fee - Category 1"
        },
        {
          "FEE_TYPE_ID": 16,
          "INCLUDE_IN_RENT": false,
          "UNIT": "AMOUNT_PER_NIGHT_PER_GUEST",
          "VALUE": {
            "AMOUNT_ADULT": 35,
            "AMOUNT_CHILD": 0,
            "AMOUNT_BABY": 0
          },
          "LABEL": "Extra Guest"
        },
        {
          "FEE_TYPE_ID": 1,
          "INCLUDE_IN_RENT": false,
          "UNIT": "AMOUNT",
          "VALUE": 40,
          "LABEL": "Booking Fee"
        },
        {
          "FEE_TYPE_ID": 16,
          "INCLUDE_IN_RENT": false,
          "UNIT": "AMOUNT",
          "VALUE": 100,
          "LABEL": "Application Fee"
        }
      ]
    },
    "DISCOUNTS": {
      "EARLY_BIRD": null,
      "LAST_MINUTE": null,
      "SPECIAL": [

      ]
    },
    "DEPOSIT": null,
    "DEPOSITS_MAY_APPLY": true,
    "DEPOSITS": [
      {
        "UNIT": "PERCENT_RENT",
        "VALUE": 0.3,
        "LABEL": "Security Deposit"
      }
    ],
    "MIN_STAY": {
      "DEFAULT_VALUE": 30,
      "MIN_STAY_RULES": [
        {
          "LABEL": "Monthly Short term",
          "MIN_STAY_VALUE": 25,
          "DATE_FROM": null,
          "DATE_TO": null
        }
      ]
    }
  }
}

Looks like we should update the calendar parser to fetch that 25 from the json (3rd row from bottom)

Occurence

https://concierge-web.roomorama.com/errors/343067

keang commented 8 years ago

The newest response from the prices api of the property is:

{
  "PRICING": {
    "CURRENCY": "USD",
    "RENT": {
      "PERGUEST_CHARGE": null,
      "PERIODS": [
        {
          "CHECK_IN": "2016-03-30",
          "CHECK_OUT": "2016-04-01",
          "NAME": "",
          "STAY_MIN": {
            "UNIT": "NIGHT",
            "NUMBER": 1
          },
          "WEEKLY": false,
          "NIGHTLY_AMOUNTS": [
            {
              "GUESTS_FROM": 1,
              "WEEK_NIGHTS": [
                1,
                2,
                3,
                4,
                5,
                6,
                7
              ],
              "STAY_FROM": {
                "UNIT": "NIGHT",
                "NUMBER": 1
              },
              "AMOUNT": "59.40"
            }
          ]
        },
        {
          "CHECK_IN": "2016-04-01",
          "CHECK_OUT": "2017-04-03",
          "NAME": "",
          "STAY_MIN": {
            "UNIT": "NIGHT",
            "NUMBER": 1
          },
          "WEEKLY": false,
          "NIGHTLY_AMOUNTS": [
            {
              "GUESTS_FROM": 1,
              "WEEK_NIGHTS": [
                1,
                2,
                3,
                4,
                5,
                6,
                7
              ],
              "STAY_FROM": {
                "UNIT": "NIGHT",
                "NUMBER": 1
              },
              "AMOUNT": "56.16"
            }
          ]
        }
      ]
    },
    "FEES": {
      "FEES": [
        {
          "FEE_TYPE_ID": 3,
          "INCLUDE_IN_RENT": false,
          "UNIT": "AMOUNT",
          "VALUE": 75,
          "LABEL": "Cleaning Fee - Category 1"
        },
        {
          "FEE_TYPE_ID": 1,
          "INCLUDE_IN_RENT": false,
          "UNIT": "PERCENT_RENT",
          "VALUE": 0.025,
          "LABEL": "Processing Fee"
        },
        {
          "FEE_TYPE_ID": 16,
          "INCLUDE_IN_RENT": false,
          "UNIT": "AMOUNT",
          "VALUE": 100,
          "LABEL": "Application Fee"
        },
        {
          "FEE_TYPE_ID": 16,
          "INCLUDE_IN_RENT": false,
          "UNIT": "AMOUNT",
          "VALUE": 150,
          "LABEL": "Utilities "
        }
      ]
    },
    "DISCOUNTS": {
      "EARLY_BIRD": null,
      "LAST_MINUTE": null,
      "SPECIAL": [

      ]
    },
    "DEPOSIT": {
      "UNIT": "AMOUNT",
      "VALUE": 1000,
      "LABEL": "Refundable Security Deposit"
    },
    "DEPOSITS_MAY_APPLY": true,
    "DEPOSITS": [
      {
        "UNIT": "AMOUNT",
        "VALUE": 1000,
        "LABEL": "Refundable Security Deposit"
      }
    ],
    "MIN_STAY": {
      "DEFAULT_VALUE": 30,
      "MIN_STAY_RULES": [

      ]
    }
  }
}

MIN_STAY_RULES is now empty

keang commented 8 years ago

The property data response is:

{"PROP_ID":225298,"PROP_PROVIDER":{"PROVIDER_TYPE":"AGENCY","OWNER_ID":null,"RA_ID":16360},"PROP_INSTANT_BOOK":true,"PROP_INFO":{"PROP_NAME":"Colorfull and Modern Bedroom UES (Shared)","PROP_STREETNO":"","PROP_ADDR1":"338 East 100th Street, 1A","PROP_ADDR2":"","PROP_ADDR3":"","PROP_APTNO":"","PROP_POSTCODE":"10029","PROP_CITY":"New York","PROP_REGION":"","PROP_COUNTRY":"US","PROP_LATLNG":{"LATITUDE":"40.785965","LONGITUDE":"-73.943479"},"PROP_PHONE":"","PROP_AXSCODE":"","PROP_BEDROOMS":1,"PROP_BEDS":null,"PROP_BED_TYPES":[],"PROP_BATHROOMS":3,"PROP_TOILETS":null,"PROP_TYPE_ID":20,"PROP_SIZE":"150","PROP_SIZE_UNIT":"SQFEET","PROP_MAXGUESTS":1,"PROP_MAXGUESTS_ADULTS":1,"PROP_MAXGUESTS_CHILDREN":0,"PROP_MAXGUESTS_BABIES":0,"PROP_FLOOR":1,"PROP_ELEVATOR":null,"PROP_CIN_TIME":"15:00","PROP_COUT_TIME":"11:00","PROP_CLEAN_TIME":"00:00","PROP_STAYTIME_MIN":{"UNIT":"NIGHT","NUMBER":30},"PROP_STAYTIME_MAX":{"UNIT":"YEAR","NUMBER":5},"PROP_SHORTDESCRIPTION":"Private rooms in a beautiful 6 Bedroom apartment, located in Upper East side/Gracie P Point surrounded by restaurant, bar, lounge, stores,everything you need is near the apartment.","PROP_SHORTDESCRIPTION_HTML":"<p><strong>Private rooms in a beautiful 6 Bedroom apartment, located in Upper East side/Gracie P Point surrounded by restaurant, bar, lounge, stores,everything you need is near the apartment.</strong></p>","PROP_DESCRIPTION":"\"The Space Bedroom includes: * Queen Size Bed with Plasma TV LCD with Cable TV * High Speed Internet - Wi-Fi * Fully equipped Kitchen, finishes include white granite counter-tops, appliances, built-in microwave wine cooler and custom cabinetry (shared) * Marble bathroom (shared) * Bar with 4 Chairs (shared) * Laundry machines and dryer in the apartment * Heating * Living room with comfortable Sofa Bed (shared) * Dining table (shared) * Private parking available in front of the building (hourly rates) * Towels and bed sheet included and free of charge * Spacious Closet and drawer * SUBWAY 6 Train, few blocks away surrounded, Bars, restaurants, Movie Theater around, supermarket 24/7, in front of the building. . . * 20 minutes away from Times Square with Subway * 15 minutes away from Grand Central * 10 minutes walk to Central Park.. 4 blocks away from the apartment. * Building very secured with camera 24/7 Mobility: One block to FDR Drive, 4 blocks away from 6 line subway 96th and 103th Street subway station, attended indoor parking garage. Guest Access Apartment comes fully equipped with linens, towels, blankets and sufficient furnishings. Just bring you and be right at home, in the center, of the center of the world! Interaction with Guests he neighborhood is residential and quiet. Many restaurants, shops, and entertainments! Your home is the quintessential NYC location, safe and convenient, exciting and right in the middle of it all! Located on 100th street and 2nd avenue. Upper East Side: Easy access to a major subway line Broadway theaters are all within 10-15 subway ride The Neighborhood I lead a very busy schedule, however, I am always available to assist you with anything you may need. I can suggest places to eat, shop and gain entertainment. You will have complete privacy, should you choose and discretion is appreciated for both parties. Other Things to Note CHECK OUT IS AT 11AM - LATE CHECK IN FEE MAY APPLY IF THE CHECK IN IS AFTER 8PM\"","PROP_DESCRIPTION_HTML":"<p>\"The Space Bedroom includes: * Queen Size Bed with Plasma TV LCD with Cable TV * High Speed Internet - Wi-Fi * Fully equipped Kitchen, finishes include white granite counter-tops, appliances, built-in microwave wine cooler and custom cabinetry (shared) * Marble bathroom (shared) * Bar with 4 Chairs (shared) * Laundry machines and dryer in the apartment * Heating * Living room with comfortable Sofa Bed (shared) * Dining table (shared) * Private parking available in front of the building (hourly rates) * Towels and bed sheet included and free of charge * Spacious Closet and drawer * SUBWAY 6 Train, few blocks away surrounded, Bars, restaurants, Movie Theater around, supermarket 24/7, in front of the building. . . * 20 minutes away from Times Square with Subway * 15 minutes away from Grand Central * 10 minutes walk to Central Park.. 4 blocks away from the apartment. * Building very secured with camera 24/7 Mobility: One block to FDR Drive, 4 blocks away from 6 line subway 96th and 103th Street subway station, attended indoor parking garage. Guest Access Apartment comes fully equipped with linens, towels, blankets and sufficient furnishings. Just bring you and be right at home, in the center, of the center of the world! Interaction with Guests he neighborhood is residential and quiet. Many restaurants, shops, and entertainments! Your home is the quintessential NYC location, safe and convenient, exciting and right in the middle of it all! Located on 100th street and 2nd avenue. Upper East Side: Easy access to a major subway line Broadway theaters are all within 10-15 subway ride The Neighborhood I lead a very busy schedule, however, I am always available to assist you with anything you may need. I can suggest places to eat, shop and gain entertainment. You will have complete privacy, should you choose and discretion is appreciated for both parties. Other Things to Note CHECK OUT IS AT 11AM - LATE CHECK IN FEE MAY APPLY IF THE CHECK IN IS AFTER 8PM\"</p>","PROP_AREADESCRIPTION":"","PROP_RENTAL_DETAILS":"","PROP_INVENTORY":"","PROP_ARRIVAL_SHEET":"","PROP_ARRIVAL_SHEET_HTML":"","PROP_AMENITIES":[98,16,77,41,37,42,1,21,21,22,63,48,13,44,47,58,43,49,52,54,64,13],"PROP_ACTIVITIES":[7],"PROP_NAME_ALL":{"en-US":"Colorfull and Modern Bedroom UES (Shared)"},"PROP_DESCRIPTION_ALL":{"en-US":"\"The Space Bedroom includes: * Queen Size Bed with Plasma TV LCD with Cable TV * High Speed Internet - Wi-Fi * Fully equipped Kitchen, finishes include white granite counter-tops, appliances, built-in microwave wine cooler and custom cabinetry (shared) * Marble bathroom (shared) * Bar with 4 Chairs (shared) * Laundry machines and dryer in the apartment * Heating * Living room with comfortable Sofa Bed (shared) * Dining table (shared) * Private parking available in front of the building (hourly rates) * Towels and bed sheet included and free of charge * Spacious Closet and drawer * SUBWAY 6 Train, few blocks away surrounded, Bars, restaurants, Movie Theater around, supermarket 24/7, in front of the building. . . * 20 minutes away from Times Square with Subway * 15 minutes away from Grand Central * 10 minutes walk to Central Park.. 4 blocks away from the apartment. * Building very secured with camera 24/7 Mobility: One block to FDR Drive, 4 blocks away from 6 line subway 96th and 103th Street subway station, attended indoor parking garage. Guest Access Apartment comes fully equipped with linens, towels, blankets and sufficient furnishings. Just bring you and be right at home, in the center, of the center of the world! Interaction with Guests he neighborhood is residential and quiet. Many restaurants, shops, and entertainments! Your home is the quintessential NYC location, safe and convenient, exciting and right in the middle of it all! Located on 100th street and 2nd avenue. Upper East Side: Easy access to a major subway line Broadway theaters are all within 10-15 subway ride The Neighborhood I lead a very busy schedule, however, I am always available to assist you with anything you may need. I can suggest places to eat, shop and gain entertainment. You will have complete privacy, should you choose and discretion is appreciated for both parties. Other Things to Note CHECK OUT IS AT 11AM - LATE CHECK IN FEE MAY APPLY IF THE CHECK IN IS AFTER 8PM\""},"PROP_SHORTDESCRIPTION_ALL":{"en-US":"Private rooms in a beautiful 6 Bedroom apartment, located in Upper East side/Gracie P Point surrounded by restaurant, bar, lounge, stores,everything you need is near the apartment."},"PROP_ARRIVAL_SHEET_ALL":[],"PROP_NAME_ALL_HTML":{"en-US":"Colorfull and Modern Bedroom UES (Shared)"},"PROP_DESCRIPTION_ALL_HTML":{"en-US":"<p>\"The Space Bedroom includes: * Queen Size Bed with Plasma TV LCD with Cable TV * High Speed Internet - Wi-Fi * Fully equipped Kitchen, finishes include white granite counter-tops, appliances, built-in microwave wine cooler and custom cabinetry (shared) * Marble bathroom (shared) * Bar with 4 Chairs (shared) * Laundry machines and dryer in the apartment * Heating * Living room with comfortable Sofa Bed (shared) * Dining table (shared) * Private parking available in front of the building (hourly rates) * Towels and bed sheet included and free of charge * Spacious Closet and drawer * SUBWAY 6 Train, few blocks away surrounded, Bars, restaurants, Movie Theater around, supermarket 24/7, in front of the building. . . * 20 minutes away from Times Square with Subway * 15 minutes away from Grand Central * 10 minutes walk to Central Park.. 4 blocks away from the apartment. * Building very secured with camera 24/7 Mobility: One block to FDR Drive, 4 blocks away from 6 line subway 96th and 103th Street subway station, attended indoor parking garage. Guest Access Apartment comes fully equipped with linens, towels, blankets and sufficient furnishings. Just bring you and be right at home, in the center, of the center of the world! Interaction with Guests he neighborhood is residential and quiet. Many restaurants, shops, and entertainments! Your home is the quintessential NYC location, safe and convenient, exciting and right in the middle of it all! Located on 100th street and 2nd avenue. Upper East Side: Easy access to a major subway line Broadway theaters are all within 10-15 subway ride The Neighborhood I lead a very busy schedule, however, I am always available to assist you with anything you may need. I can suggest places to eat, shop and gain entertainment. You will have complete privacy, should you choose and discretion is appreciated for both parties. Other Things to Note CHECK OUT IS AT 11AM - LATE CHECK IN FEE MAY APPLY IF THE CHECK IN IS AFTER 8PM\"</p>"},"PROP_SHORTDESCRIPTION_ALL_HTML":{"en-US":"<p><strong>Private rooms in a beautiful 6 Bedroom apartment, located in Upper East side/Gracie P Point surrounded by restaurant, bar, lounge, stores,everything you need is near the apartment.</strong></p>"},"PROP_ARRIVAL_SHEET_ALL_HTML":[]},"PROP_RATE":{"PROP_RATE_CURRENCY":"USD","PROP_RATE_NIGHTLY_FROM":"56.16","PROP_RATE_NIGHTLY_TO":"56.16","PROP_RATE_WEEKLY_FROM":null,"PROP_RATE_WEEKLY_TO":null,"PROP_RATE_MONTHLY_FROM":null,"PROP_RATE_MONTHLY_TO":null},"PROP_PHOTOS":[{"PHOTO_ID":"//dx577khz83dc.cloudfront.net/16360/8016dc68-10d3-41f0-97b0-81f17c374495.jpg","PHOTO_PANORAMIC":false,"PHOTO_NAME":"Colorfull and Modern Bedroom UES","PHOTO_COMMENTS":"Colorfull and Modern Bedroom UES"},{"PHOTO_ID":"//dx577khz83dc.cloudfront.net/16360/5291eb3d-4c29-468a-828e-a7e060563cf0.jpg","PHOTO_PANORAMIC":false,"PHOTO_NAME":"Colorfull and Modern Bedroom UES","PHOTO_COMMENTS":"Colorfull and Modern Bedroom UES"},{"PHOTO_ID":"//s3.amazonaws.com/cdnmedia.bookt.com/16360/a37b9891-4f47-4201-ada6-49cb34d4c2aa.jpg","PHOTO_PANORAMIC":false,"PHOTO_NAME":"Colorfull and Modern Bedroom UES","PHOTO_COMMENTS":"Colorfull and Modern Bedroom UES"},{"PHOTO_ID":"//dx577khz83dc.cloudfront.net/16360/61e71015-3cbf-4f1f-8cab-d5255f8dbb87.jpg","PHOTO_PANORAMIC":false,"PHOTO_NAME":"Colorfull and Modern Bedroom UES","PHOTO_COMMENTS":"Colorfull and Modern Bedroom UES"},{"PHOTO_ID":"//s3.amazonaws.com/cdnmedia.bookt.com/16360/e6896e3b-ad11-450b-8bed-37c9afa4b5a7.jpg","PHOTO_PANORAMIC":false,"PHOTO_NAME":"Colorfull and Modern Bedroom UES","PHOTO_COMMENTS":"Colorfull and Modern Bedroom UES"},{"PHOTO_ID":"//s3.amazonaws.com/cdnmedia.bookt.com/16360/48b036a7-f72a-4db6-a4a0-1c574f0bb12c.jpg","PHOTO_PANORAMIC":false,"PHOTO_NAME":"Colorfull and Modern Bedroom UES","PHOTO_COMMENTS":"Colorfull and Modern Bedroom UES"},{"PHOTO_ID":"//dx577khz83dc.cloudfront.net/16360/d3245a48-52b2-4194-849f-c7fba695e645.jpg","PHOTO_PANORAMIC":false,"PHOTO_NAME":"Colorfull and Modern Bedroom UES","PHOTO_COMMENTS":"Colorfull and Modern Bedroom UES"},{"PHOTO_ID":"//dx577khz83dc.cloudfront.net/16360/b6b26bd0-b06b-44cc-bbfc-a1c9ed6c17eb.jpg","PHOTO_PANORAMIC":false,"PHOTO_NAME":"Colorfull and Modern Bedroom UES","PHOTO_COMMENTS":"Colorfull and Modern Bedroom UES"},{"PHOTO_ID":"//s3.amazonaws.com/cdnmedia.bookt.com/16360/7738d999-0101-4bbf-bfca-dc2973cff46d.jpg","PHOTO_PANORAMIC":false,"PHOTO_NAME":"Colorfull and Modern Bedroom UES","PHOTO_COMMENTS":"Colorfull and Modern Bedroom UES"},{"PHOTO_ID":"//dx577khz83dc.cloudfront.net/16360/194c1957-2949-4c3a-bad8-217763a8ecda.jpg","PHOTO_PANORAMIC":false,"PHOTO_NAME":"Colorfull and Modern Bedroom UES","PHOTO_COMMENTS":"Colorfull and Modern Bedroom UES"},{"PHOTO_ID":"//dx577khz83dc.cloudfront.net/16360/a7a45240-933e-4161-a617-7aaced4fafe9.jpg","PHOTO_PANORAMIC":false,"PHOTO_NAME":"Colorfull and Modern Bedroom UES","PHOTO_COMMENTS":"Colorfull and Modern Bedroom UES"},{"PHOTO_ID":"//dx577khz83dc.cloudfront.net/16360/d0e773a7-d8d3-4824-b504-473f5e3c738e.jpg","PHOTO_PANORAMIC":false,"PHOTO_NAME":"Colorfull and Modern Bedroom UES","PHOTO_COMMENTS":"Colorfull and Modern Bedroom UES"},{"PHOTO_ID":"//dx577khz83dc.cloudfront.net/16360/910c4bec-b49b-4665-903b-5f12e07c50d8.jpg","PHOTO_PANORAMIC":false,"PHOTO_NAME":"Colorfull and Modern Bedroom UES","PHOTO_COMMENTS":"Colorfull and Modern Bedroom UES"},{"PHOTO_ID":"//s3.amazonaws.com/cdnmedia.bookt.com/16360/440662ec-e361-4b81-9a05-9c33f3e98139.jpg","PHOTO_PANORAMIC":false,"PHOTO_NAME":"Colorfull and Modern Bedroom UES","PHOTO_COMMENTS":"Colorfull and Modern Bedroom UES"},{"PHOTO_ID":"//dx577khz83dc.cloudfront.net/16360/ebe413ab-5747-4d2a-8b87-7af34538f483.jpg","PHOTO_PANORAMIC":false,"PHOTO_NAME":"Colorfull and Modern Bedroom UES","PHOTO_COMMENTS":"Colorfull and Modern Bedroom UES"}],"PROP_UDPA":[]}

So we have PROP_STAYTIME_MIN = 30

But also, from the pricing info above, we have this period:

{
          "CHECK_IN": "2016-04-01",
          "CHECK_OUT": "2017-04-03",
          "NAME": "",
          "STAY_MIN": {
            "UNIT": "NIGHT",
            "NUMBER": 1
          },
          "WEEKLY": false,
          "NIGHTLY_AMOUNTS": [
            {
              "GUESTS_FROM": 1,
              "WEEK_NIGHTS": [
                1,
                2,
                3,
                4,
                5,
                6,
                7
              ],
              "STAY_FROM": {
                "UNIT": "NIGHT",
                "NUMBER": 1
              },
              "AMOUNT": "56.16"
            }

Which should make the query in 2017-01-xx to have stay_min as 1 night. But we have a failed quote: https://concierge-web.roomorama.com/errors/465086

I'll contact kigo and ask how can we correctly identify the min_stay

keang commented 8 years ago

Got reply from kigo:

You are right, the PRICING.RENT.PERIODS[n].STAY_MIN.NUMBER should be ignored since it is related to the RATE minimum stay to be applied in order to apply this specific rate for the booking, no to the property itself. This is an compatibility matter with the old Kigo system. Additionally, you can also discard the PRICING.MIN_STAY.DEFAULT_VALUE.

'PROP_INFO.PROP_STAYTIME_MIN' in the 'readProperty2' method and 'PRICING.MIN_STAY.MIN_STAY_RULES' in the 'readPropertyPricingSetup' are the ones you are looking for.

Please take into account that more than one minimum stay rule can be applied to the same property and the system will apply the most restrictive one.

sharipov-ru commented 8 years ago

Reopening this issue, lots of new occurrences dated today:

https://concierge-web.roomorama.com/errors/631156

{

  "API_VERSION": 1,
  "API_REVISION": 3,
  "API_METHOD": "computePricing",
  "API_CALL_ID": "c46b3a36-4e1e-4ac7-aabf-9ae3ffc210fd",
  "API_RESULT_CODE": "E_CONFLICT",
  "API_RESULT_TEXT": "The property pricing information is unavailable due to a constraint. This Property has a minimum stay of 28 nights.No Rates AvailableUnfortunately, this unit is not available for your selected period. Please try another unit.",
  "API_REPLY": null
}    
keang commented 8 years ago

Still have some occurrences: https://rollbar.com/Roomorama/Concierge/items/471/?item_page=0&item_count=100&#instances

sharipov-ru commented 8 years ago

@keang

from the list above I see that there are some new issues:

"The property pricing information is unavailable due to a constraint. Check in date: 2/17/2017 must be on a Saturday or Sunday."

"The property pricing information is unavailable due to a constraint. Check in date: 2/17/2017 must be on a Saturday or Sunday.Unfortunately, this unit is not available for your selected period. Please try another unit."

"The specified check-in/check-out dates conflict with one or several weekly-only rental periods."

However, I saw minimum stay issue too. Investigating further...