Rate

https://api.minical.io/v2/rates/update_rates Update Rates

This endpoint allows you to update rate of a rate plan.

Parameter

Header

X-API-KEY string API key

Body

rates/date_start string Start date

rates/date_end string End date

rates/adult_1_rate number Rate for 1 adult

rates/adult_2_rate number Rate for 2 adult

rates/adult_3_rate number Rate for 3 adult

rates/adult_4_rate number Rate for 4 adult

rates/additional_adult_rate number Rate for additional adults

rates/additional_child_rate number Rate for additional children

rates/minimum_length_of_stay integer Stay for minimum number of nights

rates/maximum_length_of_stay integer Stay for maximum number of nights

rates/closed_to_arrival boolean Arrival is closed for given dates (0 for open, 1 for close)

rates/closed_to_departure boolean Departure is closed for given dates (0 for open, 1 for close)

rates/can_be_sold_online boolean 1 for sell, 0 for not sell

rate_plan_id integer PMS Rate Plan ID

company_id integer PMS Property ID

Responses

200 Rate successfully updated.
{
    "status": "success"
}
404 Could not find a rate matching this query.
{
    "status": false,
    "error": "Unknown method."
}

Request Body

{
    "company_id":"8490006340",
    "rate_plan_id":"168265",
    "rates":[
        {
            "date_start":"2020-07-05",
            "date_end":"2020-07-10",
            "adult_1_rate": "221.00",
            "adult_2_rate": "332.00",
            "adult_3_rate": "443.00",
            "adult_4_rate": "554.00",
            "additional_adult_rate": 155,
            "additional_child_rate": 266,
            "minimum_length_of_stay": "1",
            "maximum_length_of_stay": "10",
            "closed_to_arrival": "0",
            "closed_to_departure": "0",
            "can_be_sold_online": "1"
        },
        {
            "date_start":"2020-07-15",
            "date_end":"2020-07-20",
            "adult_1_rate": "22.00",
            "adult_2_rate": "32.00",
            "adult_3_rate": "43.00",
            "adult_4_rate": "54.00",
            "additional_adult_rate": 15,
            "additional_child_rate": 26,
            "minimum_length_of_stay": "1",
            "maximum_length_of_stay": "10",
            "closed_to_arrival": "0",
            "closed_to_departure": "0",
            "can_be_sold_online": "1"
        }
    ]
}

Last updated