Skip to content

Car Booking Cancellation

After completing the booking then if user needs to cancel the car reservation then following request need to be executed.

api/v1/reservation/car-cancel

Car Cancellation Request

Cancellation request consist only with the booking reference number.After successfully executing this request reservation will be cancelled from supplier api.

Tags Attribute Description
CancellationCriteria (JsonObject)
bookingReferenceId*
(String)
This attribute contains the reference number of the booking.
Car Cancellation Request
1
2
3
{
  "bookingReferenceId": "BKR-2023-000012"
}

Car Cancellation Response

Cancellation response consist with the booking reference number and he penalty charges for the cancellation.Penalty charges will be received from the supplier.

Tags Attribute Description
CarCancellationResponse (JsonObject)
bookingReferenceId*
(String)
Unique Key for the booking
bookingStatus*
(String)
The status of the booking
currency* Applicable currency for cancellation charges
cancellationCharge (JsonObject) Applicable currency for cancellation charges
supplierCancellationCharge *
(Double)
Supplier cancellation charge amount
adminCancellationCharge *
(Double)
Admin cancellation charge amount
totalCancellationCharges *
(Double)
Total cancellation charges

Car cancellation response
{
  "meta": {
    "success": true,
    "statusCode": "",
    "statusMessage": "",
    "actionType": "",
    "conversationId": "fe22cb8d-67e9-4c29-92af-e44dffdcb9a9"
  },
  "warnings": [
    {
      "code": "validation_required",
      "documentationUrl": "api-doc/docs/troubleshoot/api-error-codes/index.html",
      "message": "Transaction id can't be blank",
      "value": "Transaction id can't be blank"
    }
  ],
  "errors": [
    {
      "code": "validation_required",
      "documentationUrl": "api-doc/docs/troubleshoot/api-error-codes/index.html",
      "message": "Field 'bookingReferenceNumber' can't be blank",
      "value": "Field 'bookingReferenceNumber' can't be blank",
      "source": {
        "field": "bookingReferenceNumber",
        "pointer": "/BookingCancelCriteria/bookingReferenceNumber"
      },
      "title": "Required field",
      "type": "validation_error"
    }
  ],
  "commonData": {
    "productCode": "string"
  },
  "data": {
    "bookingReferenceId": "BKR-2019-09421",
    "bookingStatus": "canceled",
    "currency": "INR",
    "cancellationCharge": [
      {
        "supplierCancellationCharge": 9177.0,
        "adminCancellationCharge": 723.0,
        "totalCancellationCharges": 9900.0,
      }
    ]
  }
}