# Stuba

**Stuba** is a global B2B accommodation supplier that connects travel platforms to a wide network of hotels. With over 116,000 properties in 190+ countries, it offers real-time pricing, availability, hotel content, and booking services via API.

PHPTRAVELS supports native integration with Stuba, allowing you to fetch and sell live hotel inventory from their system directly through your website.

{% embed url="<https://youtu.be/xU2H7kOiyLw>" %}

### 🧩 **How to Enable the Stuba Module**

Follow these steps to enable Stuba as a hotel supplier in your PHPTRAVELS portal:

#### 1. Signup with stuba & **Login to Admin Panel**

* Visit <https://stuba.com> and signup and once you get API creds
* Visit: `yourdomain.com/admin`
* Use your admin credentials to log in.

***

#### 2. **Navigate to modules**

* Go to:\
  **Modules ➝ Stuba➝ Settings**
* Paste your credentials as below mention&#x20;
* C1 **➝ ORG**
* C2 **➝ User**
* C3 **➝ Password**&#x20;

***

#### 3. **Activate the Stuba Supplier**

* Find **Stuba** in the list
* Click on the **“Settings”** or **“Status”** button
* Toggle the switch to **Enable**

***

📌 *Note: Make sure you’re using either test credentials (development) or live credentials based on your environment.*

***

#### 5. **Set Default Markup**

* You can configure pricing markup specific to Stuba in the same markups area.
* Choose:
  * b2b or b2c value (e.g., +15%)
  * From modules select stuba

***

#### 6. **Sync Hotel Data (Optional)**

* Once Stuba is enabled, the system will automatically pull live hotel data when users search.
* You don’t need to manually import hotels.
* Filters like city, country, check-in/out, room occupancy will be handled automatically.

***

### 🧪 **Testing the Integration**

* Go to the **frontend of your website**
* Search for a hotel in any supported city (e.g., London, Dubai, Paris)
* Stuba results will appear alongside other enabled suppliers (if applicable)

***

### 🛠️ **Support for Stuba Bookings**

* All bookings made via Stuba will appear under:\
  **Admin Panel ➝ Bookings**
* You’ll see supplier name, booking reference, customer info, and payment status.
* Use the “View” button to access detailed booking info or manually confirm bookings if needed.

***

### 🔐 **Important Notes**

* You must have a valid account with **Stuba** to activate this module.
* Only one version of Stuba (sandbox or live) should be active at a time.
* The API integration supports real-time price updates and booking confirmations.

***

### ☄️ **Production**

* **To apply for production access, please note that any technical assistance required for certification or setup will be subject to a paid support fee.**
* In case to proceed yourself with certification please contact on below given emails mention @PHPTRAVELS in the email for better support from stuba \
  \
  **Contact :** \
  <techsupport@stuba.com><br>

### 📞 Need Help?

If you need assistance setting up Stuba or getting your API credentials, contact our support team:

🌐 phptravels.com/contact-us\
📧 Email: <info@phptravels.com>


---

# 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.phptravels.com/modules/stays/stuba.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.
