Maxxton External API

Sections

Create rates for a resource

Path Parameters

resourceIdinteger Required

Resource id for which resource rate will inserted

Body Parameters

valuenumber

Actual rate value, price.

remarkstring

Optional remark/comment about the specific rate

quantifierstring

Possible values are: ABSOLUTE ( +/- an amount to the rate), OVERRIDE (override the rate), RELATIVE( +/- a percentage to the rate).

valueTypestring

Type of value, price. This can be "single" (base )

priorityinteger

Priority, the rate with the highest priority will be the preferred one

bookdateFromstring

The reservation book date should be greater than equal to this date.

bookdateTostring

The reservation book date should be less than equal to this date.

resourceIdinteger

The resource(accommodationtype, addon) the rate applies to.

repeatableinteger

Defines if the rate be used again between the valid from and to period

statusinteger
rateLevelIdinteger

Deprecated

rateTypeIdsarray

Ratetypes the rate is linked to

Show child attributes

rateOptionIdinteger

The rate option which is linked to the rate type. A rate option defines if the price is per night or any other length of stay. If it's not per night, the rate is depending on the minimum length of stay. When creating a rate, the correct rateOptionId is selected based on the provided values of rateTypeIds, minDuration, maxDuration, duration, usageDurationFrom, usageDurationTo. In case rateOptionId is provided the other fields will be blocked. In case both are filled that is rateOpti...

minDeviationinteger

Minimal number of days between book date and arrival date when the price will be valid.

maxDeviationinteger

Maximum number of days between book date and arrival date when the price will be valid.

translationsarray

Show child attributes

durationinteger

Stay for which the cashflow rule

writeOnly
validFromstring

The arrival date of reservation should be geater than or equal to this date.

writeOnly
validTostring

The arrival date of reservation should be less than or equal to this date.

writeOnly
daysOfWeekarray

The day the rate is applicable/valid

writeOnly

Show child attributes

usageDurationFrominteger

The usage of the unit should be greater than or equal to the this date.

writeOnly
usageDurationTointeger

The usage of the unit should be less than or equal to the this date.

writeOnly
minDurationinteger

Minimal length of stay(number of nights) the price is valid for(only applies in case of nightly rates).

writeOnly
maxDurationinteger

Maximum length of stay(number of nights) the price is valid for(only applies in case of nightly rates).

writeOnly

Response

204
Object
The request is completed successfully without any errors
500
Object
Error occurred while insert resource rate.

POST

/

Select
1

Response