Stuba
Stuba API Integration Tutorial | Connect Hotel API to PHP Website
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.
🧩 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
C1 ➝ ORG
C2 ➝ User
C3 ➝ Password
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 : [email protected] [email protected] [email protected] [email protected]
📞 Need Help?
If you need assistance setting up Stuba or getting your API credentials, contact our support team:
🌐 phptravels.com/contact-us 📧 Email: [email protected]
Last updated
Was this helpful?