# Developers और एजेंटों के लिए tour booking API

> API वह रास्ता है जिससे दो software आपस में बात करते हैं। Ushba में टूर, availability, दाम और बुकिंग के लिए REST API, हर बुकिंग event के signed webhooks, और OCTO वाला endpoint है, ताकि OCTO जानने वाले एजेंट बिना अलग काम के जुड़ें। Connectors invoice और पेमेंट Xero, QuickBooks, Zoho Books या Odoo में, और गेस्ट और बुकिंग HubSpot, Salesforce, Zoho CRM या Odoo CRM में भेजते हैं।

कैनोनिकल पता: https://opentourbase.com/hi/features/api-webhooks  
अपडेट: 2026-11-15

## आप क्या बना सकते हैं

- **अपना बुकिंग flow**: Catalogue और live availability पढ़ें, सीटें होल्ड करें, पेमेंट के साथ पक्का करें, टिकट बनाएँ।
- **अपने सिस्टम से sync**: पहले से चल रहे सिस्टम से टूर और schedule भेजें, या बुकिंग अपने back office में खींचें।
- **Events पर काम**: बुकिंग बनी, पक्की हुई, बदली, कैंसिल हुई, redeem हुई; पेमेंट आया या रिफ़ंड हुआ।

## API के नियम

| विषय | बर्ताव |
| --- | --- |
| Authentication | Scopes वाली API keys, live और test mode अलग |
| Versioning | Path में version; तोड़ने वाले बदलाव सिर्फ़ नए version में |
| Pagination | हर लिस्ट पर cursor-based |
| Idempotency | हर write पर Idempotency-Key header; दोबारा भेजना सुरक्षित |
| Errors | RFC 9457 problem details, एक स्थिर code के साथ |
| Rate limits | हर key पर, headers बताते हैं कि कितना बाक़ी है |
| बुकिंग | दो चरण: reserve सीटें होल्ड करता है और अपने-आप ख़त्म होता है, confirm बिक्री पक्की करता है |
| Specification | OpenAPI 3.1, reference viewer के साथ छपा हुआ |

*ऑपरेटर API कैसे बर्ताव करता है*

## Webhooks

एक endpoint दर्ज करें, events चुनें, और Ushba हर event समय-मुहर वाले HMAC signature के साथ भेजता है। नाकाम delivery धीरे-धीरे बढ़ते अंतराल पर दोबारा भेजी जाती है; हर delivery, उसका जवाब पैनल में दिखता है और वहीं से दोबारा भेजी जा सकती है। एक ही चीज़ पर बदलावों की बौछार एक में जोड़ दी जाती है।

## OCTO support

[OCTO](https://opentourbase.com/hi/glossary/octo) टूर, एक्टिविटी और attractions के लिए एक खुला API standard है। Ushba एक OCTO supplier endpoint चलाता है, मुख्य क्षमताओं के साथ pricing, content, pickups और questions भी। हर एजेंट को अपनी key मिलती है, ताकि आप एक को बंद करें तो बाक़ी पर असर न पड़े। देखें [OCTO reseller](https://opentourbase.com/hi/integrations/octo)।

## Business software connectors

- [अकाउंटिंग: Xero, QuickBooks, Zoho Books, Odoo](https://opentourbase.com/hi/integrations/accounting): Invoice, पेमेंट, credit note और payout
- [CRM: HubSpot, Salesforce, Zoho CRM, Odoo CRM](https://opentourbase.com/hi/integrations/crm): Contacts, deals और सहमति
- [Payment gateways](https://opentourbase.com/hi/integrations/payment-gateways): 3-D Secure वाले कार्ड, USDT
- [WordPress plugin](https://opentourbase.com/hi/integrations/wordpress): Blocks और shortcodes

## अक्सर पूछे जाने वाले सवाल

### API integration क्या होता है?

दो सिस्टम को API के तय तरीक़े से जोड़ना, ताकि वे बिना हाथ के काम के जानकारी ले-दे सकें। जैसे आपकी अपनी app Ushba से live सीटें पढ़े और बुकिंग भेजे। [API क्या है](https://opentourbase.com/hi/glossary/api)।

### क्या API के अलग पैसे लगते हैं? हर प्लान में है?

API access उन प्लान में है जिनमें यह शामिल है; [दाम वाला पेज](https://opentourbase.com/hi/pricing) बताता है कि किनमें। आज़माने के लिए test mode है।

### OCTO standard क्या है?

Open Connectivity for Tours, Activities and Attractions: टूर, availability और बुकिंग का लेन-देन करने के लिए एक मुफ़्त, खुली API specification। [और पढ़ें](https://opentourbase.com/hi/glossary/octo)।

### क्या sandbox है?

हाँ। हर अकाउंट में अपनी keys के साथ test mode है; test बुकिंग कभी असली चैनलों या पेमेंट तक नहीं पहुँचतीं।
