End-to-End Sequence
The following diagram illustrates the interaction between your system, the Travomatrix API, and the B2B wallet during a standard search-to-book flow.Lifecycle Breakdown
1. Search with Commission
ThePricingEngine identifies the applicable commission rules for the agent. The response includes the net_fare (amount to be paid by the agent) and the final_price (suggested price for the end customer).
2. Fare Validation
Validation is mandatory. It verifies the live availability with the GDS and locks the price. No wallet deduction happens at this stage.3. Booking & Wallet Deduction
WhenPOST /booking/create is called:
- The system calculates the final
net_fare. - It checks the agent’s wallet:
Balance + Credit Limit >= Net Fare. - If sufficient, it creates a
DEBITtransaction and places the booking. - The booking moves from
PENDINGtoBOOKEDonce confirmed by the provider.
4. Ticketing
After booking, the agent can issue tickets. Some providers issue tickets automatically during booking, while others require a separatePOST /booking/ticket call.
ing/ticket` call.