Pacific Bedbank API Rates Doc
    • INTRODUCTION
    • Getting Started
    • Payments
    • Discover
    • Endpoints Overview
    • Webhooks
    • Authentication
      • Login
        POST
      • Me
        GET
    • Search
      • List Countries
        GET
      • List Currencies
        GET
      • List Hotels
        GET
      • Search Hotel Rates
        POST
      • Search Hotel Min Rates
        POST
    • Bookings
      • Create Prebook
        POST
      • Prebook Payment Page
        GET
      • Prebook Payment Return
        GET
      • Get Prebook
        GET
      • List Bookings
        GET
      • Confirm Booking
        POST
      • Cancel Booking
        PUT
      • Amend Guest Name
        PUT
      • Get Booking
        GET
    • Schemas
      • LoginResponse
      • LoginRequest
      • CountriesResponse
      • Country
      • CurrenciesResponse
      • Currency
      • HotelListResponse
      • HotelSummary
      • HotelEssential
      • RateEssential
      • RoomTypeEssential
      • SearchResponseEssential
      • SupplierWarning
      • HotelRatesRequest
      • OccupancyInput
      • WholesalerCurrency
      • HotelMinRate
      • HotelMinRatesResponse
      • HotelMinRatesRequest
      • CreditLineInfo
      • PaymentSdkInfo
      • PrebookResponse
      • PrebookRoomRate
      • TravellerInfo
      • PrebookRequest
      • TravellerInput
      • BookingListItem
      • BookingListResponse
      • ConfirmBookingResponse
      • ConfirmBookingRequest
      • GuestInput
      • HolderInput
      • CancelBookingResponse
      • AmendGuestResponse
      • AmendGuestRequest
      • BookingDetailResponse

    Payments

    Implementing Payments#

    Payments are handled during the two-step booking process: Prebook and Confirm.

    Payment SDK Flow#

    By default, use_payment_sdk is set to true in POST /api/v1/bookings/prebook.
    The response includes:
    payment_url - Hosted checkout page.
    transaction_id - Payment transaction reference.
    return_url - URL returns to after payment.
    Redirect to the payment_url.
    After successful payment, you will be returned to return_url, and the booking is automatically confirmed.

    Manual Confirm Flow#

    If you set use_payment_sdk to false, no hosted payment URL is returned.
    In that case, you must confirm the booking yourself using:
    POST /api/v1/bookings/confirm

    Important Notes#

    Keep the booking_id and prebook_id from the prebook response.
    A prebook is not a confirmed booking until payment and confirmation are complete.
    If automatic confirmation fails after payment, check the return response and retry confirmation if needed.
    Modified at 2026-06-03 00:42:39
    Previous
    Getting Started
    Next
    Discover
    Built with