Error
A valid request URL is required to generate request examples{
"success": 1,
"data": {
"_id": "60d21b4667d0d8992e610c87",
"activity_id": "60d21b4667d0d8992e610c85",
"variation_id": "60d21b4667d0d8992e610c86",
"reseller_id": "60d21b4667d0d8992e610c82",
"status": "Paid by Customer",
"partnerConfirmation": "Confirmed",
"bookingDate": "2023-07-15",
"bookingTime": "10:00",
"price": {
"totalPrice": 150,
"affiliateDeservedAmount": 15
},
"external_payment_id": "pay_1N9dvSLkdIwHu2QOxgMtN9dE"
}
}{
"success": 0,
"error": [
"Booking is not paid, you can't cancel unpaid booking"
],
"message": "Booking is not paid, you can't cancel unpaid booking",
"code": 400
}{
"success": 0,
"error": [
"unauthorized access"
],
"message": "unauthorized access",
"code": 401
}{
"success": 0,
"error": [
"unexpected error"
],
"message": "unexpected error",
"code": 500
}API Reference
Cancel Booking
Cancels a paid booking and processes refund according to cancellation policy. The booking must have status “Paid by Customer” to be eligible for cancellation.
POST
/
bookings
/
cancel-booking
Error
A valid request URL is required to generate request examples{
"success": 1,
"data": {
"_id": "60d21b4667d0d8992e610c87",
"activity_id": "60d21b4667d0d8992e610c85",
"variation_id": "60d21b4667d0d8992e610c86",
"reseller_id": "60d21b4667d0d8992e610c82",
"status": "Paid by Customer",
"partnerConfirmation": "Confirmed",
"bookingDate": "2023-07-15",
"bookingTime": "10:00",
"price": {
"totalPrice": 150,
"affiliateDeservedAmount": 15
},
"external_payment_id": "pay_1N9dvSLkdIwHu2QOxgMtN9dE"
}
}{
"success": 0,
"error": [
"Booking is not paid, you can't cancel unpaid booking"
],
"message": "Booking is not paid, you can't cancel unpaid booking",
"code": 400
}{
"success": 0,
"error": [
"unauthorized access"
],
"message": "unauthorized access",
"code": 401
}{
"success": 0,
"error": [
"unexpected error"
],
"message": "unexpected error",
"code": 500
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
ID of the booking to cancel
Example:
"60d21b4667d0d8992e610c87"
