MyBiz Travel Request API Integration (Spring Boot) [Note : This is the project in which the main focus is calling the external api of Make my trip i.e, request goes to one server to another server ].
This project integrates with MakeMyTrip's myBiz Travel Request API, enabling seamless travel requisition, approval, and booking synchronization between a third-party platform and myBiz.
- Create travel requests and redirect users to myBiz
- Receive itineraries pushed by myBiz
- Send approval/rejection of services
- Receive booking details & vouchers after successful booking
com.example.travelintegration
└── config
└── WebClientConfig.java
└── controller
└── TravelController.java
└── service
└── TravelService.java
└── dto
├── TravelRequest.java
├── ApprovalRequest.java
├── BookingPushPayload.java
└── ItineraryPushPayload.java
Update your application.properties
:
mybiz.api.key=your-partner-api-key
mybiz.client.code=your-client-code
POST /api/travel/create-itinerary
- Sends trip data to myBiz
- Receives requisitionId and redirect URL
POST /api/travel/receive-itinerary
- myBiz calls this with full itinerary JSON after request creation
PUT /api/travel/send-approval
- Sends manager-level approvals or rejections
POST /api/travel/receive-booking
- Receives booking info & vouchers after myBiz confirms booking
- Java 17+
- Spring Boot 3+
- Spring Web (WebClient)
- Lombok
Sample DTOs for each API interaction are defined in the dto
package. Refer to:
TravelRequest
for outbound travel initiationItineraryPushPayload
for receiving itineraryApprovalRequest
to send approvalsBookingPushPayload
for booking data
- Clone the repo
- Add your credentials to
application.properties
- Run the Spring Boot application
- Use Postman or your frontend to test the APIs
Raise an issue or reach out if you need help customizing the integration.