Generate police customer profiles report "Hospedajes" for Spain in Mews Operations

The Spanish police customer profiles report (Hospedajes) integration in Mews Operations helps you meet legal requirements in Spain by generating a daily report with guest information. Use this integration to automatically compile customer profiles, ensuring that you capture all required details. Generate the report each night to cover guest arrivals and manually upload the file to the Spanish Hospedajes platform.

Note: For properties in the Basque Country and Catalonia, use the respective customer profiles report integration:

This is not a direct integration, so you need to manually upload the file to the Spanish Hospedajes platform.

Note: When there are no checked-in reservations on the day of the report, properties should not upload the report to the Hospedajes platform. Uploading a file with empty values triggers a formatting error.

In this article, you can learn about:

How to set up the integration

To set up the Spanish police customer profiles (Hospedajes) integration:

  1. In Mews Operations, go to the main menu > Marketplace.
  2. Search for Spanish police customer profiles integration (Hospedajes).

Mews Marketplace - Spanish police customer profiles integration screen.

  1. Click Explore.
  2. Click Connect integration.
  3. Click Edit on the integration to add your property information. Note: You need to enable the integration to use it. To do so, check the checkbox at the top of the screen next to Enabled.
  4. Enter your property details, including:
    1. Service*: Select the correct service for your property, for example, Stay.
    2. Property code*: Unique identifier assigned by the Spanish government.

Note: Fields marked with * are mandatory.

  1. Under Recipient emails, add your email address to receive the report each night.
  2. Set the Daily report execution time to run at, or before, 11 PM.
  3. Click Save to complete the setup.
  4. Click OK on the success message.

You have now set up the integration. If you have filled out all customer profiles correctly, the system automatically generates the reports for you.

Filling in the mandatory information

Complete the following fields for each guest profile to ensure the Spanish police customer profiles (Hospedajes) report is accurate:

  • Customer Information:
    • First name
    • Last name
    • Second last name (for Spanish nationals)
    • Nationality
    • Traveler type (auto-generated by the system)
    • Email address or telephone number
  • Identity document (for adults):
    • Identity document type
    • Identity document number
    • Issuing country
  • For minors:
    • Birthdate
  • Address Information:
    • Address line 1 (Street)
    • Province/State
    • For Spanish addresses: Spanish Municipality Code
    • For non-Spanish addresses: Municipality or City Name
    • Postal Code
    • Country Code

Identity document type for guests with a Spanish NIE or NIF

The integration writes the document type of each guest into the XML file based on three fields on the customer profile: the Identity document type, the Issuing country of that document, and the Nationality. Hospedajes uses separate document types for a Número de Identificación Fiscal, or NIF, which Spanish nationals hold, and a Número de Identidad de Extranjero, or NIE, which foreign nationals who are resident in Spain hold. An identity card issued in Spain is written as NIF for a guest with the nationality Spain and as NIE for a guest of any other nationality. An identity card issued outside Spain or a driver's licence is written as OTRO. A passport is written as PAS.

If Hospedajes rejects the XML file because of the document type of a guest who holds a Spanish NIE, check that the guest's Identity document type is Identity card, that its Issuing country is Spain, and that the Nationality is the guest's own nationality, not Spain. The integration writes this combination as NIE. If the Nationality is set to Spain, the integration writes the same document as NIF, which Hospedajes rejects for an NIE number. Correct the profile, then generate the report again with the Mode set to Arrival, choose Spanish police customer profiles integration (Hospedajes) when exporting, and upload the file again.

Generated report example

After completing the mandatory fields, the integration generates an XML file. The integration automatically generates stay information, including the following:

  • Reservation identifier
  • Creation date reservation
  • Arrival date reservation
  • Departure date reservation
  • Number of persons
  • Payment type

If any mandatory fields are missing, the integration creates a zip file containing an errors.txt document listing which profiles have incomplete data.

  • Successful report generation example: 12345-27-09-2024 07-34-02.xml

successful report generation example - customer profile hospedajes police report

  • Error file example: If any fields are missing, the integration creates a zip file with an errors.txt document listing which profiles have incomplete data.

customer profiles hospedajes - error file example Error file example - customer profiles

Resolving potential errors

To resolve potential errors, do the following:

  1. Go to the customer profiles report.
  2. Click on the respective customer surname to open their profile tab.
  3. Add the missing information.
  4. Manually generate the report. Note: Set the Mode to Arrival.
  5. Export the report. Note: When exporting, choose Spanish police customer profiles integration (Hospedajes).

If Mews Operations generates the XML file without an errors.txt file but Hospedajes rejects the upload, for example because of the document type of a guest who holds a Spanish NIE, open a ticket with the Mews Digital Assistant and include the following information:

  • The exact error message that Hospedajes shows when the upload fails, for example as a screenshot.
  • One example of an affected guest: the reservation number, and the guest's nationality, identity document type and identity document number as shown on the customer profile.
  • The XML file that Mews Operations generated for that guest.

Mews Support compares the XML file with the error message from Hospedajes to find the cause.

Uploading the report

To upload the report:

  1. Download the generated XML file from Mews.
  2. Log in to the Hospedajes platform.
  3. In the communication type section, choose Parte de viajeros.
  4. Manually upload the XML file.

Note: This is not a direct integration, so you need to manually upload the file to the Spanish Hospedajes platform.

You can learn more about generating other police reports for Spain here.

Was this article helpful?
00



Feedback