預訂規格

「預訂」是指預約特定庫存清單時段,內含辨識與進行預約所需的資訊。

// A booking for an inventory slot
message Booking {
  // ID of this booking (required)
  string booking_id = 1;

  // The appointment slot of this booking (required for CreateBooking and
  // UpdateBooking:modify, but not UpdateBooking:cancel)
  Slot slot = 2;

  // Personal information of the user making the appointment (required for
  // CreateBooking)
  UserInformation user_information = 3;

  // Status of the booking (required for CreateBooking and UpdateBooking:cancel,
  // but not UpdateBooking:modify)
  BookingStatus status = 4;

  // Information about payment transactions that relate to the booking.
  // (optional)
  PaymentInformation payment_information = 5;

  // Information about virtual session related to this booking. (optional)
  VirtualSessionInfo virtual_session_info = 6;
}

建立預訂

建立預訂的方法有兩種:

  • 直接從時段建立預訂。
  • 如果使用保留功能 (選用),系統會先為該時段建立「保留」,然後再完成預訂。

詳情請參閱 CreateBooking

更新預訂

您可以更新預訂,例如取消或重新安排預訂。
詳情請參閱 UpdateBooking

取得預訂狀態

您可以透過 GetBookingStatusListBookings 讀取預訂功能的預訂狀態 (請參閱 BookingStatus) 和預付狀態 (請參閱 PrepaymentStatus)。