If a channel manager sends a reservation to Mews in a format different from Mews API requirements, the reservation fails and Mews returns error code: 7.
For more information, please refer to the Channel API documentation here.
Note: there is no automation to notify customers about channel manager API error.
Channel manager reservation API errors
Reservation code
The following error \"error\":{\"code\":7,\"message\":\"Invalid value 'code' of 'reservation'.\ is returned if:
- Reservation codes are not provided.
- Reservation codes are not unique.
Reservation amounts
The following error \"error\":{\"code\":7,\"message\":\"Invalid value '-100.0' of 'reservation.amounts'..gross'.\ is returned if:
- Night amounts are negative.
- Total reservation amount is negative.
The following error \"error\":{\"code\":7,\"message\":\"Invalid value of 'reservation.amounts'.\ is returned if:
- Amounts are missing.
- Number of amounts per night is greater/less than number of booked nights. If a reservation is booked for two nights, two amounts should be sent (each representing a price per night) and one total amount.
Extra amount
The following error \"error\":{\"code\":7,\"message\":\"Invalid value '-80.0' of 'extra.amount.gross'.\ is returned if:
- Extra amounts are negative.
- Extra amount missing.
Extra count
The following error \"error\":{\"code\":7,\"message\":\"Invalid value of 'extra.count'.\" is returned if:
-
Extra count equals or is below zero.
Reservation guests
The following error \"error\":{\"code\":7,\"message\":\"Invalid 'reservation.guests' - there is more guests than 'reservation.adultCount' and 'reservation.childCount' combined.\ is returned if:
-
The total number of
adultCountandchildCountdoes not equal the number of guest profiles. For example, the number of guest profiles foradultCount:1andchildCount:2should be 3.
Reservation guest: last name
The following error \"error\":{\"code\":7,\"message\":\"Invalid value of 'reservation.guest.lastName'.\ is returned if:
-
The last name in
guestor/andcustomerprofile is missing. This is required information. In case it is not provided, it should be replaced with UNKNOWN.
Reservation: channel information
Booking channel information is optional, however, if sent, it must include both channel code and channel name. If only one value is provided, the reservation will fail.
"channel": {
"code": 1,
"name": "Expedia"
}
Reservation interval
The following error code": 1,\"error\":{\"code\":7,\"message\":\"Invalid interval - 'reservation.from' has to be before 'reservation.to'.\ is returned if:
-
A reservation start date is later than the check-out date.
Payment card details
The following error \"error\":{\"code\":7,\"message\":\"Invalid value of 'paymentCard.number'.\ is returned if:
-
The payment card was not provided, but null values were sent to Mews. In case it is not provided, the payment card array should not be included in the
processGrouprequest.
Receive reservations operation
The following error \"error"\:{\"code\":9,\"message\":\"This operation is not currently allowed."\} is returned if:
- Property has disabled operation "Receive reservations" in their Channel manager integration in Mews. To be able to push reservations again, the property needs to enable back the operation.