Configuring Stays as a Source
In the Sources tab, click on the “Add source” button located on the top right of your screen. Then, select the Stays option from the list of connectors. Click Next and you’ll be prompted to add your access.1. Add account access
You’ll need to provide your Stays API credentials. These can be obtained from your Stays account manager or through the Stays developer portal. The following configurations are available:-
API URL: The base URL for the Stays API (e.g.
https://api.stays.net/external/v1). - Username: The username used to authenticate against the Stays API.
- Password: The password used to authenticate against the Stays API.
Advanced settings
- Reservations Export Settings: Configuration for the reservations export stream, including start date, end date, and a lookback window (in days) to re-fetch recently updated reservations.
- Reviews Settings: Requires a separate login for the Stays internal system. Provide the email and password used to access the internal reviews export, along with optional start/end dates and lookback window.
2. Select streams
Choose which data streams you want to sync. For faster extractions, select only the streams that are relevant to your analysis. You can select entire groups of streams or pick specific ones.Tip: The stream can be found more easily by typing its name.Select the streams and click Next.
3. Configure data streams
Customize how you want your data to appear in your catalog. Select the desired layer where the data will be placed, a folder to organize it inside the layer, a name for each table (which will effectively contain the fetched data) and the type of sync.- Layer: choose between the existing layers on your catalog. This is where you will find your new extracted tables as the extraction runs successfully.
- Folder: a folder can be created inside the selected layer to group all tables being created from this new data source.
- Table name: we suggest a name, but feel free to customize it. You have the option to add a prefix to all tables at once and make this process faster!
- Sync Type: you can choose between INCREMENTAL and FULL_TABLE.
- Incremental: every time the extraction happens, we’ll get only the new data.
- Full table: every time the extraction happens, we’ll get the current state of the data.
4. Configure data source
Describe your data source for easy identification within your organization, not exceeding 140 characters. To define your Trigger, consider how often you want data to be extracted from this source. Optionally, you can define some additional settings:- Configure Delta Log Retention and determine for how long we should store old states of this table as it gets updated. Read more about this resource here.
- Determine when to execute an Additional Full Sync.
5. Check your new source
You can view your new source on the Sources page. If needed, manually trigger the source extraction by clicking on the arrow button. Once executed, your data will appear in your Catalog.Streams and Fields
Below you’ll find all available data streams from Stays and their corresponding fields:Reservations Export
Reservations Export
| Field | Type | Description |
|---|---|---|
| _id | string | Unique reservation identifier |
| id | string | Reservation ID |
| type | string | Reservation type (reserved, booked, contract, blocked, maintenance, canceled) |
| currency | string | Currency code |
| creationDate | string | Date the reservation was created |
| forwardingDate | string | Date the reservation was forwarded |
| checkInDate | string | Check-in date |
| checkOutDate | string | Check-out date |
| guestTotalCount | integer | Total number of guests |
| nightCount | integer | Number of nights |
| pricePerNight | number | Price per night |
| reserveTotal | number | Total reservation amount |
| listingInvoiceTotal | number | Total listing invoice amount |
| extraServicesTotal | number | Total extra services amount |
| listing | object | Listing details (id, internalName) |
| baseAmountForwarding | number | Base forwarding amount |
| sellPriceCorrected | number | Corrected sell price |
| companyCommision | number | Company commission amount |
| buyPrice | number | Buy price |
| totalForwardFee | number | Total forward fee |
| client | object | Client details (name, firstName, lastName, email, phoneNumber) |
| hasReview | boolean | Whether the reservation has a review |
| partnerName | string | Partner name |
| agentName | string | Agent name |
| fee | array | List of fees (val, desc) |
| ownerFee | array | List of owner fees (val, desc) |
| documents | array | List of documents (type, numb, issued, date) |
| partnerCode | string | Partner code |
| observation | string | Observation notes |
Reservation Details
Reservation Details
| Field | Type | Description |
|---|---|---|
| _id | string | Internal reservation ID |
| id | string | Reservation ID |
| creationDate | string | Date the reservation was created |
| checkInDate | string | Check-in date |
| checkInTime | string | Check-in time |
| checkOutDate | string | Check-out date |
| checkOutTime | string | Check-out time |
| _idlisting | string | Listing ID |
| _idclient | string | Client ID |
| type | string | Reservation type |
| operator | object | Operator details (id, name) |
| agent | object | Agent details (id, name) |
| price | object | Price breakdown (currency, expected, total, hosting details, extras details) |
| stats | object | Payment statistics (totalPaid) |
| guests | integer | Total number of guests |
| guestsDetails | object | Guest breakdown (adults, children, infants, guest list with contact info and documents) |
| partner | object | Partner details (id, name, commission) |
| internalNote | string | Internal note |
| partnerCode | string | Partner code |
| _idpromoCode | string | Promo code ID |
| reservationUrl | string | Reservation URL |
| message | string | Message |
| errors | array | Error details (path, message, errorCode) |
Promo Codes
Promo Codes
| Field | Type | Description |
|---|---|---|
| _id | string | Unique promo code identifier |
| name | string | Promo code name |
| status | string | Promo code status |
| type | string | Discount type |
| _f_discount | number | Discount value |
| usedCount | integer | Number of times used |
| usedCountPerGuest | integer | Number of times used per guest |
| maxUsesCount | integer | Maximum number of uses |
| maxUsesCountPerGuest | integer | Maximum uses per guest |
| useWithOtherPromotions | boolean | Whether it can be combined with other promotions |
| _mcdiscount | object | Multi-currency discount values (BRL, USD, EUR) |
| periodRestrictions | object | Period restrictions (enable, from, to, invalidDaysOfWeek) |
| calendarRestrictions | object | Calendar restrictions (arrival/departure date ranges, minLengthOfStay) |
| productRestrictions | object | Product restrictions (bedrooms, listings limit) |
| userRestrictions | object | User restrictions (emails, minReservationsCount, maxGuestsCount) |
| target | string | Target |
Reviews
Reviews
Requires separate internal system credentials configured in the Reviews Settings.
| Field | Type | Description |
|---|---|---|
| _id | string | Unique review identifier (generated hash) |
| status | string | Review status |
| hospede | string | Guest name |
| id_do_anuncio | string | Listing ID |
| listing_internal_name | string | Listing internal name |
| data | string | Review date |
| external_reserve_id | string | External reservation ID |
| external_channel_name | string | External channel name (Airbnb, Booking, etc.) |
| avaliacao | number | Overall rating |
| cleaning_rating | number | Cleaning rating |
| checkin | number | Check-in rating |
| checkout | number | Checkout rating |
| processo_de_reserva | number | Booking process rating |
| manutencao | number | Maintenance rating |
| cliente_treatment | number | Client treatment rating |
| pontos_positivos | string | Positive points |
| pontos_negativos | string | Negative points |
| comentarios | string | Comments |
| listing_accuracy | number | Listing accuracy rating |
| limpeza | number | Cleanliness rating |
| comunicacao | number | Communication rating |
| localizacao | number | Location rating |
| valor | number | Value rating |
| feedback_privado | string | Private feedback |
| feedback_publico | string | Public feedback |
| original_cleanliness | number | Original cleanliness score |
| original_facilities | number | Original facilities score |
| original_location | number | Original location score |
| original_services | number | Original services score |
| original_staff | number | Original staff score |
| original_amount | number | Original amount score |
| original_rating | number | Original overall rating |
| titulo_da_avaliacao | string | Review title |
| positivo | string | Positive feedback |
| negativo | string | Negative feedback |
| comentarios_do_hospede | string | Guest comments |
| _date_time | datetime | Export date/time |