GETBookings

Get Booking Details

/api/v1/bookings/{bookingNumber}

Retrieve detailed information for a specific booking number belonging to the authenticated partner. The response groups all booked products under items and includes the linked resource details for each item.

Authentication Required

Include Bearer token in Authorization header: Authorization: Bearer YOUR_TOKEN

Path Parameters

NameTypeRequiredDescription
bookingNumberstringYesUnique booking number identifier

Response

Success Response Example:

{
  "success": true,
  "booking": {
    "bookingNumber": "PC2236PAQ",
    "items": [
      {
        "productCode": "P811C6RV",
        "reservationDate": "2026-03-26",
        "reservationTime": "00:00",
        "quantities": [
          {
            "label": "adult",
            "quantity": 2,
            "price": 75
          },
          {
            "label": "child",
            "quantity": 1,
            "price": 40
          }
        ],
        "resource": {
          "code": "RES-LOUVRE-AM",
          "name": "Louvre Morning Entry",
          "type": "ticket"
        }
      }
    ],
    "guests": [
      {
        "title": "Mr",
        "firstName": "John",
        "lastName": "Doe",
        "age": 37
      },
      {
        "title": "Mrs",
        "firstName": "Jane",
        "lastName": "Doe",
        "age": 35
      }
    ],
    "payments": [
      {
        "method": "CREDIT_CARD",
        "amount": 150,
        "currency": "EUR",
        "reference": "txn-2026-03-20-001"
      },
      {
        "method": "VOUCHER",
        "amount": 40,
        "currency": "EUR",
        "reference": "voucher-ABCD-2026"
      }
    ],
    "customerNote": "Wheelchair accessible entrance requested",
    "resellerReference": "RS-TRAVELMATE-9912",
    "resellerSource": "mytravelmate",
    "resellerNote": "VIP customer, prioritize fast check-in",
    "status": "created",
    "customer": {
      "title": "Mr",
      "firstName": "John",
      "lastName": "Doe",
      "phone": "+33612345678",
      "email": "[email protected]"
    }
  }
}

Error Response

Error Example:

{
  "success": false,
  "error": {
    "code": "NOT_FOUND",
    "message": "Booking not found"
  }
}

Available Errors

HTTP StatusCodeMeaning
401UNAUTHORIZEDInvalid or missing authentication token
403FORBIDDENPartner and Booking do not match
404NOT_FOUNDBooking not found
500INTERNAL_SERVER_ERRORFailed to retrieve booking