---
title: "POST /api/hotel/getbookings"
method: POST
path: "/api/hotel/getbookings"
tags: ["Hotel"]
---

# POST /api/hotel/getbookings

`POST /api/hotel/getbookings`

## Headers

- `accountId` string, required
- `apiKey` string, required

## Request body

- HotelAPIDataContractRetrieveGetBookingsReq
  - `channelId` string, nullable
  - `bookingId` string, nullable
  - `correlationId` string, nullable
  - `guestNames` string, nullable
  - `bookingStatus` string, nullable
  - `providerConfirmationNumber` string, nullable
  - `hotelConfirmationNumber` string, nullable
  - `hotelCancellationNumber` string, nullable
  - `ownerUserId` string, nullable
  - `creatorUserId` string, nullable
  - `creationStartDate` string, date-time
  - `creationEndDate` string, date-time
  - `cancellationDate` string, date-time
  - `tripStartDate` string, date-time
  - `tripEndDate` string, date-time
  - `checkOutStartDate` string, date-time
  - `checkOutEndDate` string, date-time
  - `providerName` string, nullable
  - `email` string, nullable
  - `pagingInfo` HotelAPIDataContractRetrievePagingInfo
    - `pageNo` integer
    - `pageSize` integer
    - `orderBy` string, nullable
    - `totalResults` integer
    - `paginationToken` string, nullable
    - `forwardSearch` boolean
    - `sort` HotelAPIDataContractRetrieveSort
      - `by` 'BookingDate' | 'CheckInDate' | 'PaymentDueDate'
      - `order` 'Descending' | 'Ascending'
  - `paymentStatus` string, nullable
  - `agencyId` string, nullable
  - `GrandParentId` string, nullable
  - `agentEmail` string, nullable
  - `loggedInUserEmail` string, nullable
  - `transactionId` string, nullable
  - `latestBooking` boolean
  - `campaignId` string, nullable
  - `isApiOut` boolean, nullable
  - `clientReferenceNumber` string, nullable
  - `onHoldBookings` boolean, nullable
  - `onBehalfBooking` boolean, nullable
  - `paymentDueDateStart` string, date-time, nullable
  - `paymentDueDateEnd` string, date-time, nullable
  - `isHotelConfirmationNumberExists` boolean, nullable
  - `hotelFilter` HotelAPIDataContractRetrieveHotelFilter
    - `name` string, nullable
    - `cityCode` string, nullable
    - `cityName` string, nullable
    - `countryName` string, nullable
    - `countryCode` string, nullable

## Response `200`

Success

- HotelAPIDataContractRetrieveGetBookingsRes
  - `bookings` HotelAPIDataContractRetrieveBookingSummary[], nullable
    - `accountId` string, nullable
    - `channelId` string, nullable
    - `ownerUserId` string, nullable
    - `creatorUserId` string, nullable
    - `bookingId` string, nullable
    - `customerName` string, nullable
    - `passengers` string, nullable
    - `guests` string[], nullable
    - `hotelId` string, nullable
    - `hotelName` string, nullable
    - `providerName` string, nullable
    - `providerId` string, nullable
    - `providerHotelId` string, nullable
    - `cityName` string, nullable
    - `bookingStatus` string, nullable
    - `creationDate` string, date-time
    - `tripStartDate` string, date-time
    - `tripEndDate` string, date-time
    - `totalAmount` number, double
    - `baseAmount` number, double
    - `totalTax` number, double
    - `totalCommission` number, double
    - `totalMarkup` number, double
    - `totalFee` number, double
    - `totalDiscount` number, double
    - `providerConfirmationNumber` string, nullable
    - `hotelConfirmationNumber` string, nullable
    - `hotelCancellationNumber` string, nullable
    - `correlationId` string, nullable
    - `email` string, nullable
    - `cancelledBy` string, nullable
    - `reconfirmationStatus` string, nullable
    - `countryName` string, nullable
    - `currency` string, nullable
    - `starrating` string, nullable
    - `roomcount` string, nullable
    - `numOfAdults` string, nullable
    - `numOfChildren` string, nullable
    - `transactionId` string, nullable
    - `paymentStatus` string, nullable
    - `chargedAmount` string, nullable
    - `api` string, nullable
    - `agentEmail` string, nullable
    - `loggedInUserEmail` string, nullable
    - `totalRate` number, double
    - `supplierCost` number, double
    - `supplierCostCurrency` string, nullable
    - `discountByAdmin` number, double
    - `feeByAdmin` number, double
    - `grossCost` number, double
    - `childBookingId` string, nullable
    - `parentBookingId` string, nullable
    - `guestNames` string, nullable
    - `domain` string, nullable
    - `campaignId` string, nullable
    - `clientReferenceNumber` string, nullable
    - `onHold` boolean, nullable
    - `paymentDueDate` string, date-time, nullable
    - `agencyId` string, nullable
    - `parentAgencyId` string, nullable
    - `isApiOut` boolean, nullable
  - `pagingInfo` HotelAPIDataContractRetrievePagingInfo
    - `pageNo` integer
    - `pageSize` integer
    - `orderBy` string, nullable
    - `totalResults` integer
    - `paginationToken` string, nullable
    - `forwardSearch` boolean
    - `sort` HotelAPIDataContractRetrieveSort
      - `by` 'BookingDate' | 'CheckInDate' | 'PaymentDueDate'
      - `order` 'Descending' | 'Ascending'

## Other responses

- `400` — ClientSideError

---

[API](https://skmtc.net/zentrumhub/apis/hotelcontent-api.md) · [All operations](https://skmtc.net/zentrumhub/apis/hotelcontent-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/zentrumhub/hotelcontent-api/revisions/9fa4830db488/schema)
