Skip to main content
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"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
booking_id
string
required

ID of the booking to cancel

Example:

"60d21b4667d0d8992e610c87"

Response

Booking cancelled successfully

success
integer
Example:

1

data
object