Bookings

Cancel experience booking

Overview

Cancel a confirmed experience booking and trigger any applicable refund.

When to Use

  • Guest-initiated cancellation - After the guest confirms via the cancel-preview screen

What You Get

  • status - Booking status after cancellation
  • providerStatus - Raw upstream provider status, when available
  • refund - Present when a refund was calculated; refundPending indicates it hasn't settled yet

Quick Start

POST with the bookingId from POST /experiences/bookings. Call GET /experiences/bookings/{bookingId}/cancel-preview first to show the guest the refund amount.

Error codes

Product-operation codes are listed below. Shared authentication/access/rate-limit middleware can return common codes such as 401, 40301 or 4290. HTTP status and error code are separate; do not parse message text.

CodeMeaning
75101booking not found
75102this booking has already been cancelled
75103cancellation is not allowed for this booking
75104the activity has already started
75105invalid cancellation request
75106cancellation provider request failed
75107cancellation provider request timed out
75108cancellation request is unauthorized
75109cancellation request is forbidden
75110cancellation service is temporarily unavailable
75199failed to process cancellation
post/experiences/bookings/{bookingId}/cancel

Request

  • Base URL
    https://api.liteapi.travel/v3.0
  • URL
    https://api.liteapi.travel/v3.0/experiences/bookings/{bookingId}/cancel
  • Auth
    API key in header X-API-Key

Path parameters

bookingIdstring required

LiteAPI booking ID returned from POST /experiences/bookings

Response

Booking cancelled

Example response

{
  "data": {
    "bookingId": "444fe833-a84e-49b4-ae9f-b032c8619419",
    "status": "cancelled",
    "providerStatus": "CANCELLED",
    "refundPending": true,
    "refund": {
      "refundAmount": 45.5,
      "refundType": "full",
      "estimateConfidence": "high",
      "currency": "EUR",
      "sellingPrice": 45.5
    }
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.