Skip to main content

Hi! 

 

We’re currently building a WordPress extension that integrates with the Mews Distributor API, and we’ve run into recurring issues that I’d like to check if anyone else has solved.

Current situation:

  • We work with multiple bookable services (several ConfigurationIds) under one Mews enterprise.

  • Our goal is to aggregate all services into a single unified search flow (cabins, apartments, hotels, across locations).

  • We fetch metadata via configuration/get (list of Ids) and then call hotels/getAvailability for each ConfigurationId + HotelId + CategoryIds.

Problems:

  1. Endpoint mismatch:

    • Some documentation and support replies reference
      https://app.mews.com/api/distributor/v1/...
      while others use
      https://api.mews.com/api/distributor/v1/....

    • In production, we sometimes get 404 (Cloudflare HTML) on configuration/get if we don’t use the api.mews.com/api/... form.

  2. Availability errors:

    • hotels/getAvailability often returns 400 Invalid CategoryIds even when the CategoryIds were retrieved via configuration/get.

    • Other times we receive 401 Unauthorized (“Cannot perform operation or session has expired”), despite using the registered Client string.

    • Even when the call succeeds, we sometimes get empty 200 responses for short stays, while the Mews booking engine shows valid prices for the same period.

What we’ve tried:

  • Verified that the Client string is consistent across all calls.

  • Confirmed that the same calls work fine in demo, but fail intermittently in production.

  • Cross-checked that our RoomCategoryIds map to the expected ConfigurationIds, but still get 400/401.

👉 Question 1: Has anyone successfully implemented a multi-service Distributor API integration (aggregating multiple ConfigurationIds) that consistently retrieves availability and pricing? If so, how did you structure the API calls and handle CategoryIds validation across services?

👉 Question 2: Does anyone know of an existing vendor or software provider that already supports this kind of multi-service aggregation “out of the box”? We’d be open to looking at external solutions if this is already solved elsewhere.

Any experiences, best practices, or code snippets would be greatly appreciated!

 

Thanks in advance

 

Jan Terje 

Hi Jan,

this is Milan from the Technical partnership team.

Regarding the URL, please note the only right one for the Booking Engine API is the https://api.mews.com  (app.mews.com is used for the Mews app itself and the Mews Booking engine).

For Hotels/getAvailability, please make sure you always use the correct ConfigurationID for the relevant service to get the right ResouceCategories returned. If you will keep receiving the error non the less, let us know so we can investigate further.

Could you please provide an example of the call that resulted in the 401 error? Ideally if you have the RequestID from the response would help us to investigate what went wrong.

Thank you,

Milan


Hi Milan,

Thank you for your quick and detailed reply — I really appreciate it.

I just wanted to let you know that I managed to find the solution to the problem, and things are now looking good. Hopefully I’ll have everything up and running very soon.

Thanks again for your help and guidance!

Best regards,
Jan Terje