Maxxton External API

Sections

Calculate prices for a resource

Query Parameters

removeWarrantboolean

The basePrice and totalPrice without the warrant costs bill will be returned when the value is set to true

Path Parameters

resourceIdinteger Required

resourceId of accommodation type for which the total price needs to be calculated

Body Parameters

distributionChannelIdinteger Required

If the user pass the distributionChannel id in the request then the data will be filtered based on the provided id else the distributionChannel id will be taken from the token. If no distributionChannel id is passed neither the token contains the distributionChannel id valid error message will be thrown.

reservationCategoryIdinteger Required

Specifies the categoryId of the reservation

arrivalDatestring Required

The date on which customer/guest will arrive. Date should be added using ISO 8601 standard(yyyy-MM-dd)

durationinteger Required

The number of days starting from the arrivalDate for which the price range search has been carried out and the duration should be passed in days ex: 7.

rateTypeIdinteger

Rate type id which will be used to fetch availability. If not provided, then the first rate type will be picked up from the rate types linked to distribution channel and ordered in ascending order of priority.

offerCodestring

Unique code associated with offer on the bases of which accommodationtype is to be filtered

subjectsobject

The details of the person accommodated in an accommodationtype

Show child attributes

petQuantityinteger

Quantity of the pets for which search is to be made

writeOnly
redeemableLoyaltyPointsinteger

Loyalty points to be used for the price calculation of the accommmodationtype

Response

200
Object
The request is completed successfully without any errors

Response Attributes

basePricenumber

Accommodation type price + mandatory costs

offerPricenumber

The discount that is received through offer(s)

loyaltyDiscountnumber

The discount that is received through loyalty

totalPricenumber

The total price including discounts (if no offer code is provided: cheapest option among open offers, otherwise price for requested offer code)

500
Object
Error occurred while adding new accommodation type.

POST

/

Select
1

Response