> ## Documentation Index
> Fetch the complete documentation index at: https://docs.unifystays.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Confirm Hold

> Confirm a TripJack held booking before its supplier deadline.

This action exists only for TripJack offers whose prebook lifecycle contains
`available_booking_modes: ["INSTANT", "HOLD"]`. Create the booking with
`booking_mode: "HOLD"`, then call this endpoint when booking status is
`ON_HOLD` and `available_actions` contains `CONFIRM_HOLD`.

Send the booking's exact `accepted_offer_id`. Confirmation uses the supplier
amount already bound to the accepted offer. Confirm before `hold_deadline_at`;
TripJack may automatically cancel an unconfirmed hold after that deadline.

This follows TripJack Hotel API v3: omitting `paymentInfos` creates the hold,
and `/oms/v3/hotel/confirm-book` confirms it before the review response's
deadline. See the [TripJack API documentation](https://tripjack.com/page/api-doc).


## OpenAPI

````yaml reference/openapi.json POST /hotels/book/{booking_id}/confirm-hold
openapi: 3.0.0
info:
  title: Unifystays API
  description: >-
    One unified hotel API across suppliers. Integrate once, then enable and
    manage suppliers from the Unifystays portal.
  version: '1.0'
  contact: {}
servers:
  - url: https://api-sandbox.unifystays.com
    description: Sandbox
  - url: https://api.unifystays.com
    description: Production
security:
  - x-api-key: []
tags: []
paths:
  /hotels/book/{booking_id}/confirm-hold:
    post:
      tags:
        - Hotels
      summary: Confirm a TripJack held booking
      description: >-
        Available only when booking status is ON_HOLD and available_actions
        contains CONFIRM_HOLD. Confirmation uses the accepted supplier amount
        already bound to the booking.
      operationId: HotelBookingController_confirmHold
      parameters:
        - name: booking_id
          required: true
          in: path
          schema:
            type: string
        - name: language
          description: Enter language code(ex. en)
          in: header
          schema: {}
        - name: X-Unifystays-Contract-Version
          in: header
          required: false
          description: Hotel API contract version. Missing defaults to v1.
          schema:
            type: string
            enum:
              - '1'
            default: '1'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ConfirmHoldRequestDto'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HotelBookingResponseDto'
          headers:
            X-Unifystays-Contract-Version:
              description: Selected hotel contract version.
              schema:
                type: string
                enum:
                  - '1'
        '406':
          description: CONTRACT_VERSION_UNSUPPORTED
          headers:
            X-Unifystays-Contract-Version:
              description: Selected hotel contract version.
              schema:
                type: string
                enum:
                  - '1'
components:
  schemas:
    ConfirmHoldRequestDto:
      type: object
      properties:
        accepted_offer_id:
          type: string
          description: >-
            The accepted offer ID stored with this held booking. Prevents
            confirming a different revision accidentally.
      required:
        - accepted_offer_id
    HotelBookingResponseDto:
      type: object
      properties:
        contract_version:
          type: string
          example: '1'
        success:
          type: boolean
          example: true
        message:
          type: string
          example: Booking request accepted and is being processed.
        data:
          $ref: '#/components/schemas/BookingStatusDataDto'
      required:
        - contract_version
        - success
        - message
        - data
    BookingStatusDataDto:
      type: object
      properties:
        booking_id:
          type: string
          example: ubk_eGQ0dW9uV1Vi
          description: >-
            Stable Unifystays booking id used for status, details, and
            cancellation endpoints.
        accepted_offer_id:
          type: string
          example: off_01J...
        status:
          type: string
          enum:
            - PROCESSING
            - CONFIRMED
            - ON_HOLD
            - FAILED
            - CANCELLATION_PENDING
            - CANCELLED
          example: PROCESSING
        is_terminal:
          type: boolean
          example: false
        provider:
          $ref: '#/components/schemas/BookingProviderStatusDto'
        next_poll_after_ms:
          type: object
          description: Client hint to re-check booking status. Null when terminal.
          example: 5000
          nullable: true
        processing_reason:
          type: string
          enum:
            - SUPPLIER_CONFIRMATION_PENDING
            - HOTEL_CONFIRMATION_PENDING
            - CANCELLATION_PENDING
            - RECONCILIATION_REQUIRED
            - HOLD_CONFIRMATION_REQUIRED
          nullable: true
        action_required:
          type: boolean
        available_actions:
          type: array
          items:
            type: string
            enum:
              - GET_STATUS
              - GET_DETAILS
              - CANCEL
              - CONFIRM_HOLD
              - CONTACT_SUPPORT
        hold_deadline_at:
          type: string
          nullable: true
        created_at:
          type: string
          example: '2026-04-15T12:12:11.000Z'
        updated_at:
          type: string
          example: '2026-04-15T12:12:11.000Z'
      required:
        - booking_id
        - accepted_offer_id
        - status
        - is_terminal
        - provider
        - next_poll_after_ms
        - processing_reason
        - action_required
        - available_actions
        - hold_deadline_at
        - created_at
        - updated_at
    BookingProviderStatusDto:
      type: object
      properties:
        code:
          type: string
          example: TBO
        booking_id:
          type: object
          example: '100055869'
          nullable: true
          description: >-
            Supplier's primary booking/order identifier used to find the
            booking. Null until the supplier assigns it.
        booking_code:
          type: object
          example: REZ6A5A81E9
          nullable: true
          description: >-
            Supplier's secondary booking code, when the supplier provides a
            distinct second reference. Null when it does not.
        hotel_confirmation_number:
          type: object
          example: HCN-482910
          nullable: true
          description: >-
            Hotel confirmation number issued or recognized by the property. It
            may arrive after supplier confirmation.
        hotel_confirmation_status:
          type: object
          example: Confirmed
          nullable: true
        hotel_confirmation_note:
          type: object
          nullable: true
        hotel_contact_phone:
          type: object
          nullable: true
        hotel_contact_name:
          type: object
          nullable: true
      required:
        - code
        - booking_id
        - booking_code
        - hotel_confirmation_number
        - hotel_confirmation_status
        - hotel_confirmation_note
        - hotel_contact_phone
        - hotel_contact_name
  securitySchemes:
    x-api-key:
      type: apiKey
      in: header
      name: x-api-key
      description: Environment-specific API key created in the Unifystays portal

````