# Hostaway

Pour automatiser la création du bail mobilité avec Lewisbnb il suffit de créer une automatisation qui va envoyer un email à lewisbnb avec un format très spécifique (message en json).

Dès que Lewisbnb recoit l'email il va créer le bail nécessaire pour que le locataire puisse signer électroniquement à distance.

Cela devrait fonctionner que le locataire ai réservé par Airbnb, Booking ou autres.

&#x20;

<figure><img src="/files/y6xW9rKB5qg1CnlMQ9Y6" alt="hostaway bail mobilité"><figcaption><p>Integration Bail mobilité dans Hostaway</p></figcaption></figure>

1. Mettre en `cc email 1` l'email que vous a fourni Lewisbnb
2. Ajouter le body suivant:

```json
// Body de l'email

{
    "firstname": "{{guest_first_name}}",
    "lastname": "{{guest_last_name}}",
    "check_in": "{{checkin_date}}", 
    "check_out": "{{checkout_date}}", 
    "listing_name": "{{listing_name}}",
    "listing_address": "{{address}}",
    "listing_city": "{{city}}",
    "channel_manager_id": "{{listing_id}}",
    "listing_id": "{{channel_property_id}}",
    "listing_unit_id": "{{channel_unit_id}}",
    "booking_id": "{{channel_reservation_id}}",
    "phone_number": "{{guest_phone}}",
    "price": {{airbnb_listing_base_price}},
    "booking_fees": {{airbnb_listing_host_fee}},
    "booking_payout": {{airbnb_expected_payout_amount}},
    "platform_name": "{{channel_name}}"
}

```

3. Bien mettre `At` `Reservation`
4. Selectionner les annonces concernées

Cela fonctionne uniquement si vous avez déjà enregistrer un logement avec suffisament de crédits.

Pour debugger vous retrouverez toutes les requêtes sur [app.lewisbnb.fr/requests](https://app.lewisbnb.fr/requests)

Pour vous aider à intégrer Lewis à Hostaway hésitez pas à envoyer un email à <stephane@lewisbnb.fr>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.lewisbnb.fr/channel-managers/hostaway.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
