ポスト

Confirm Or Decline Booking


開発者プレビュー

このAPIは変更される可能性があります。プレビュー期間中、開発者からのフィードバックに基づいてバグ修正や新機能がリリースされる予定です。

Updates the booking status to CONFIRMED, PENDING, or DECLINED based on the paymentStatus you provide, double booking conflicts, and whether the service requires business approval.

Call this endpoint only when using a custom checkout page. Don't call it when using a Wix eCommerce checkout. In such cases, Wix automatically updates the booking status based on the paymentStatus of the corresponding Wix eCommerce order.

The booking status is set to DECLINED if both of the following conditions are met:

  • You provide UNDEFINED, NOT_PAID, REFUNDED, or EXEMPT as payment status.
  • There is a double booking conflict.

If only one or none of these conditions is met, status is set to PENDING または CONFIRMED depending on whether the service requires business approval.

If there is a double booking conflict, doubleBooked is set to 真の.

There are small but important differences in confirmation behavior if the booking was created with special flowControlSettings:

  • If the booking's flowControlSettings.skipAvailabilityValidation was set to 真の, the booking is never declined regardless of double booking conflicts. Instead, it's marked CONFIRMED または PENDING, depending on whether the service requires business approval.
  • If the booking's flowControlSettings.skipBusinessConfirmation was set to 真の, the booking skips PENDING status and is marked CONFIRMED immediately.
Authentication

You can only call this method when authenticated as a Wix app or Wix user identity.

Permissions
Manage Bookings - all permissions
Manage Bookings
Learn more about app permissions.
Endpoint
POST
https://www.wixapis.com/bookings/v2/confirmation/{bookingId}:confirmOrDecline

役に立ちましたか?
はい
いいえ