@wix/ditto-codegen-public 1.0.162 → 1.0.164

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. package/dist/docs-output/api-docs/bookings-bookings-onBookingCanceled-doc.txt +169 -0
  2. package/dist/docs-output/api-docs/bookings-bookings-onBookingCreated-doc.txt +154 -0
  3. package/dist/docs-output/api-docs/crm-contacts-onContactCreated-doc.txt +87 -171
  4. package/dist/docs-output/api-docs/crm-contacts-onContactDeleted-doc.txt +58 -0
  5. package/dist/docs-output/api-docs/crm-contacts-onContactUpdated-doc.txt +99 -0
  6. package/dist/docs-output/api-docs/data-items-get-doc.txt +95 -54
  7. package/dist/docs-output/api-docs/data-items-insert-doc.txt +235 -43
  8. package/dist/docs-output/api-docs/data-items-onDataItemCreated-doc.txt +61 -0
  9. package/dist/docs-output/api-docs/data-items-onDataItemDeleted-doc.txt +58 -0
  10. package/dist/docs-output/api-docs/data-items-onDataItemUpdated-doc.txt +61 -0
  11. package/dist/docs-output/api-docs/data-items-query-doc.txt +507 -302
  12. package/dist/docs-output/api-docs/data-items-remove-doc.txt +120 -40
  13. package/dist/docs-output/api-docs/data-items-update-doc.txt +425 -46
  14. package/dist/docs-output/api-docs/ecom-cart-addToCart-doc.txt +488 -0
  15. package/dist/docs-output/api-docs/ecom-cart-createCart-doc.txt +518 -0
  16. package/dist/docs-output/api-docs/ecom-cart-createCheckout-doc.txt +155 -0
  17. package/dist/docs-output/api-docs/ecom-cart-deleteCart-doc.txt +92 -0
  18. package/dist/docs-output/api-docs/ecom-cart-getCart-doc.txt +376 -0
  19. package/dist/docs-output/api-docs/ecom-cart-onCartCreated-doc.txt +89 -80
  20. package/dist/docs-output/api-docs/ecom-cart-onCartUpdated-doc.txt +91 -81
  21. package/dist/docs-output/api-docs/ecom-cart-removeLineItemsFromCart-doc.txt +321 -0
  22. package/dist/docs-output/api-docs/ecom-cart-updateCart-doc.txt +539 -0
  23. package/dist/docs-output/api-docs/ecom-checkout-addToCheckout-doc.txt +1005 -0
  24. package/dist/docs-output/api-docs/ecom-checkout-createCheckout-doc.txt +1641 -0
  25. package/dist/docs-output/api-docs/ecom-checkout-getCheckout-doc.txt +1027 -0
  26. package/dist/docs-output/api-docs/ecom-checkout-onCheckoutCompleted-doc.txt +151 -0
  27. package/dist/docs-output/api-docs/ecom-checkout-onCheckoutCreated-doc.txt +150 -0
  28. package/dist/docs-output/api-docs/ecom-checkout-onCheckoutUpdated-doc.txt +150 -0
  29. package/dist/docs-output/api-docs/ecom-checkout-removeLineItemsFromCheckout-doc.txt +879 -0
  30. package/dist/docs-output/api-docs/ecom-checkout-updateCheckout-doc.txt +1011 -0
  31. package/dist/docs-output/api-docs/ecom-currentCart-getCurrentCart-doc.txt +368 -322
  32. package/dist/docs-output/api-docs/ecom-currentCart-updateCurrentCart-doc.txt +506 -321
  33. package/dist/docs-output/api-docs/ecom-orders-bulkUpdateOrders-doc.txt +1040 -0
  34. package/dist/docs-output/api-docs/ecom-orders-cancelOrder-doc.txt +608 -0
  35. package/dist/docs-output/api-docs/ecom-orders-getOrder-doc.txt +926 -0
  36. package/dist/docs-output/api-docs/ecom-orders-onOrderCreated-doc.txt +245 -0
  37. package/dist/docs-output/api-docs/ecom-orders-onOrderUpdated-doc.txt +244 -0
  38. package/dist/docs-output/api-docs/ecom-orders-searchOrders-doc.txt +670 -0
  39. package/dist/docs-output/api-docs/ecom-orders-updateOrder-doc.txt +818 -0
  40. package/dist/docs-output/api-docs/search-wixSiteSearch-search-doc.txt +162 -0
  41. package/dist/docs-output/api-docs/stores-collections-addProductsToCollection-doc.txt +86 -0
  42. package/dist/docs-output/api-docs/stores-collections-createCollection-doc.txt +108 -0
  43. package/dist/docs-output/api-docs/stores-collections-getCollection-doc.txt +102 -0
  44. package/dist/docs-output/api-docs/stores-collections-queryCollections-doc.txt +209 -0
  45. package/dist/docs-output/api-docs/stores-collections-removeProductsFromCollection-doc.txt +86 -0
  46. package/dist/docs-output/api-docs/stores-collections-updateCollection-doc.txt +110 -0
  47. package/dist/docs-output/api-docs/stores-inventory-queryInventory-doc.txt +98 -0
  48. package/dist/docs-output/api-docs/stores-inventory-updateInventoryVariants-doc.txt +249 -0
  49. package/dist/docs-output/api-docs/stores-inventoryItemsV3-queryInventoryItems-doc.txt +236 -0
  50. package/dist/docs-output/api-docs/stores-inventoryItemsV3-updateInventoryItem-doc.txt +139 -0
  51. package/dist/docs-output/api-docs/stores-productsV3-createProduct-doc.txt +1697 -0
  52. package/dist/docs-output/api-docs/stores-productsV3-deleteProduct-doc.txt +73 -0
  53. package/dist/docs-output/api-docs/stores-productsV3-getProduct-doc.txt +933 -0
  54. package/dist/docs-output/api-docs/stores-productsV3-onProductCreated-doc.txt +794 -0
  55. package/dist/docs-output/api-docs/stores-productsV3-onProductDeleted-doc.txt +794 -0
  56. package/dist/docs-output/api-docs/stores-productsV3-onProductUpdated-doc.txt +794 -0
  57. package/dist/docs-output/api-docs/stores-productsV3-queryProducts-doc.txt +1051 -0
  58. package/dist/docs-output/api-docs/stores-productsV3-searchProducts-doc.txt +1144 -0
  59. package/dist/docs-output/api-docs/stores-productsV3-updateProduct-doc.txt +1730 -1600
  60. package/dist/docs-output/api-docs/stores-readOnlyVariantsV3-queryVariants-doc.txt +290 -0
  61. package/dist/docs-output/api-docs/stores-readOnlyVariantsV3-searchVariants-doc.txt +353 -0
  62. package/dist/out.js +24996 -553
  63. package/package.json +2 -2
  64. package/dist/docs-output/api-docs/data-items-onDataItemCreated.txt +0 -103
  65. package/dist/docs-output/api-docs/stores-product-onProductCreated-doc.txt +0 -118
  66. package/dist/docs-output/api-docs/stores-productV3-onProductCreated-doc.txt +0 -184
@@ -0,0 +1,169 @@
1
+ <bookings_bookings_onBookingCanceled>
2
+ <description>
3
+ # This is a Webhook method
4
+
5
+ # Method name:
6
+
7
+ bookings.bookings.onBookingCanceled(handler: OnBookingCanceledHandler)
8
+
9
+ # Method Link:
10
+
11
+ https://dev.wix.com/docs/sdk/backend-modules/bookings/bookings/on-booking-canceled
12
+
13
+ # Method Description:
14
+
15
+ Triggered when a booking is canceled.
16
+
17
+
18
+ </description>
19
+ <usage>
20
+ import { bookings } from "@wix/bookings";
21
+
22
+ bookings.onBookingCanceled((event) => {
23
+ // handle your event here
24
+ });
25
+
26
+ </usage>
27
+ <type_definition>
28
+ ```
29
+ Method: bookings.bookings.onBookingCanceled(handler)
30
+ Description: Triggered when a booking is canceled.
31
+ Method parameters:
32
+ param name: handler | type: OnBookingCanceledHandler | description: none
33
+ - name: event | type: BookingCanceledEnvelope | description: none
34
+ - name: data | type: BookingCanceled | description: none
35
+ - name: booking | type: Booking | description: The canceled booking object.
36
+ - name: bookedAddOns | type: Array<BookedAddOn> | description: List of [add-ons](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/add-ons/introduction) associated with the booking.
37
+ - name: _id | type: string | description: The GUID of the add-on.
38
+ - name: groupId | type: string | description: The GUID of the add-on group.
39
+ - name: quantity | type: number | description: The quantity of booked add-ons.
40
+ - name: bookedEntity | type: BookedEntity | description: An object describing the bookable entity - either a specific time slot or a recurring schedule. The structure depends on the type of service being booked: __For appointment services__: Use `slot` to book a specific time slot with a service provider. Appointments are typically one-time sessions at a specific date and time. __For class services__: Use `slot` to book a specific class session. Classes are individual sessions that can have multiple participants. __For course services__: Use `schedule` to book an entire course consisting of multiple sessions over time. Courses are recurring, multi-session offerings. Choose the appropriate field based on your service type and booking requirements.
41
+ - name: tags | type: Array<string> | description: List of tags for the booking. - "INDIVIDUAL": For bookings of appointment-based services. Including when the appointment is for a group of participants. - "GROUP": For bookings of individual class sessions. - "COURSE": For course bookings.
42
+ - ONE-OF:
43
+ - name: schedule | type: BookedSchedule | description: [Booked schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/introduction). Specify `schedule` when creating bookings for: - __Course services__: Multi-session offerings spanning weeks or months (educational courses, training programs). Wix Bookings enrolls participants in all sessions defined by the course schedule.
44
+ - name: scheduleId | type: string | description: [Schedule GUID](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/introduction).
45
+ - name: serviceId | type: string | description: Booked service GUID.
46
+ - name: timezone | type: string | description: Time zone in [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database). For example, `America/New_York` or `UTC`. This is the time zone in which the schedule was shown to the customer at the time of booking. Wix Bookings ensures that the schedule is always displayed in this same time zone to the customer, including when they view or edit their booking in the future.
47
+ - name: slot | type: BookedSlot | description: [Booked slot](https://dev.wix.com/docs/rest/business-solutions/bookings/bookings-and-time-slots/time-slots/availability-calendar/query-availability). Specify `slot` when creating bookings for: - __Appointment-based services__: Individual sessions with service providers (consultations, treatments). Wix Bookings creates a new session when the booking is confirmed. - __Class services__: Group sessions at specific times (fitness classes, workshops). Wix Bookings links the booking to an existing scheduled session. For course services, specify `schedule` instead of `slot`.
48
+ - name: endDate | type: string | description: The end time of this slot in `YYYY-MM-DDThh:mm:ss`, `YYYY-MM-DDThh:mm:ss:SSS`, or `YYYY-MM-DDThh:mm:ss:SSSZZ` [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601). For example, `2026-01-30T13:30:00`, `2026-01-30T13:30:00:000`, or `2026-01-30T13:30:00:000-05:00`.
49
+ - name: eventId | type: string | description: GUID of the corresponding [event](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/introduction). Available for both appointment and class bookings, not available for course bookings. For appointment-based services, Wix Bookings automatically populates `eventId` when the booking `status` changes to `CONFIRMED`. For class bookings, Wix Bookings automatically populates `eventId` upon booking creation.
50
+ - name: location | type: Location | description: Location where the session takes place.
51
+ - name: _id | type: string | description: Business location GUID. Available only for locations that are business locations, meaning the `location_type` is `"OWNER_BUSINESS"`.
52
+ - name: formattedAddress | type: string | description: The full address of this location.
53
+ - name: formattedAddressTranslated | type: string | description: The full translated address of this location.
54
+ - name: locationType | type: LocationType | description: Location type. - `"OWNER_BUSINESS"`: The business address, as set in the site’s general settings. - `"OWNER_CUSTOM"`: The address as set when creating the service. - `"CUSTOM"`: The address as set for the individual session.
55
+ enum: CUSTOM, OWNER_BUSINESS, OWNER_CUSTOM, UNDEFINED
56
+ - name: name | type: string | description: Location name.
57
+ - name: resource | type: BookedResource | description: [Primary resource](https://dev.wix.com/docs/rest/business-solutions/bookings/resources/resources-v2/introduction) for the booking. For example, the [staff member](https://dev.wix.com/docs/rest/business-solutions/bookings/staff-members/introduction) providing the service.
58
+ - name: _id | type: string | description: GUID of the booking's primary resource.
59
+ - name: email | type: string | description: Resource's email at the time of booking.
60
+ - name: name | type: string | description: Resource's name at the time of booking.
61
+ - name: scheduleId | type: string | description: GUID of the schedule belonging to the booking's primary resource.
62
+ - name: scheduleId | type: string | description: Schedule GUID.
63
+ - name: serviceId | type: string | description: Service GUID.
64
+ - name: startDate | type: string | description: The start time of this slot in `YYYY-MM-DDThh:mm:ss`, `YYYY-MM-DDThh:mm:ss:SSS`, or `YYYY-MM-DDThh:mm:ss:SSSZZ` [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601). For example, `2026-01-30T13:30:00`, `2026-01-30T13:30:00:000`, or `2026-01-30T13:30:00:000-05:00`.
65
+ - name: timezone | type: string | description: Time zone in [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database). For example, `America/New_York` or `UTC`. This is the time zone in which the slot was shown to the customer at the time of booking. Wix Bookings ensures that the slot is always displayed in this same time zone to the customer, including when they view or edit their booking in the future.
66
+ - name: contactDetails | type: ContactDetails | description: Contact details of the site visitor or [member](https://dev.wix.com/docs/api-reference/crm/members-contacts/members/members/introduction)) making the booking.
67
+ - name: contactId | type: string | description: Contact GUID.
68
+ - name: countryCode | type: string | description: Contact's country in [ISO 3166-1 alpha-2 code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format.
69
+ - name: email | type: string | description: Contact's email. If no [contact](https://dev.wix.com/docs/rest/crm/members-contacts/contacts/contacts/contact-v4/contact-object) with this email exist, a new contact is created. Used to validate coupon usage limitations per contact. If not specified, the coupon usage limitation will not be enforced. (Coupon usage limitation validation is not supported yet).
70
+ - name: firstName | type: string | description: Contact's first name. When populated from a standard booking form, this property corresponds to the `name` field.
71
+ - name: fullAddress | type: Address | description: Contact's full address.
72
+ - name: addressLine2 | type: string | description: Free text providing more detailed address info. Usually contains Apt, Suite, and Floor.
73
+ - name: city | type: string | description: City name.
74
+ - name: country | type: string | description: Country code.
75
+ - name: countryFullname | type: string | description: Country full name.
76
+ - name: formattedAddress | type: string | description: A string containing the full address of this location.
77
+ - name: geocode | type: AddressLocation | description: Coordinates of the physical address.
78
+ - name: latitude | type: number | description: Address latitude.
79
+ - name: longitude | type: number | description: Address longitude.
80
+ - name: hint | type: string | description: Free text to help find the address.
81
+ - name: postalCode | type: string | description: Zip/postal code.
82
+ - name: subdivision | type: string | description: Subdivision. Usually state, region, prefecture or province code, according to [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2).
83
+ - name: subdivisions | type: Array<Subdivision> | description: Multi-level subdivisions from top to bottom.
84
+ - name: code | type: string | description: Subdivision code. Usually state, region, prefecture or province code, according to [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2).
85
+ - name: name | type: string | description: Subdivision full name.
86
+ - ONE-OF:
87
+ - name: addressLine | type: string | description: Main address line, usually street and number, as free text.
88
+ - name: streetAddress | type: StreetAddress | description: Street name, number and apartment number.
89
+ - name: apt | type: string | description: Apartment number.
90
+ - name: name | type: string | description: Street name.
91
+ - name: number | type: string | description: Street number.
92
+ - name: lastName | type: string | description: Contact's last name.
93
+ - name: phone | type: string | description: Contact's phone number.
94
+ - name: extendedFields | type: ExtendedFields | description: Custom field data for this object. Extended fields must be configured in the app dashboard before they can be accessed with API calls.
95
+ - name: namespaces | type: Record<string, undefined> | description: Extended field data. Each key corresponds to the namespace of the app that created the extended fields. The value of each key is structured according to the schema defined when the extended fields were configured. You can only access fields for which you have the appropriate permissions. Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).
96
+ - name: externalUserId | type: string | description: External user GUID that you can provide.
97
+ - name: formSubmissionId | type: string | description: GUID of the [form submission](https://dev.wix.com/docs/rest/crm/forms/form-submissions/introduction) associated with this booking.
98
+ - name: paymentStatus | type: PaymentStatus | description: The payment status of the booking. This field automatically syncs with the `paymentStatus` of the corresponding [eCommerce order](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/orders/introduction) when customers use Wix eCommerce checkout. ### Integration patterns __When using Wix eCommerce checkout__: Wix Bookings automatically syncs the payment status based on the eCommerce order's payment status. Do not manually update this field. __When using custom payment flows__: You can manually update the payment status with [Confirm Booking or Decline Booking](https://dev.wix.com/docs/api-reference/business-solutions/bookings/bookings/bookings-writer-v2/confirm-or-decline-booking) to reflect the customer's payment state. __For membership/pricing plan payments__: Wix Bookings automatically manages the payment status when customers pay with an active [pricing plan](https://dev.wix.com/docs/api-reference/business-solutions/pricing-plans/pricing-plans/introduction) subscription. All payment statuses are supported for every booking `status`.
99
+ enum:
100
+ EXEMPT: The booking is free of charge.
101
+ NOT_PAID: The booking isn't paid.
102
+ PAID: The booking is fully paid.
103
+ PARTIALLY_PAID: The booking is partially paid.
104
+ REFUNDED: The booking is refunded.
105
+ UNDEFINED: Undefined payment status.
106
+ - name: revision | type: string | description: Revision number to be used when updating, rescheduling, or cancelling the booking. Increments by 1 each time the booking is updated, rescheduled, or canceled. To prevent conflicting changes, the current revision must be specified when updating the booking.
107
+ - name: selectedPaymentOption | type: SelectedPaymentOption | description: Payment option selected by the customer. If the customer hasn't completed their checkout, they may still change the payment method. Must be one of the payment options offered by the [service](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/services-v2/introduction), unless `skipSelectedPaymentOptionValidation` is `true`. When the customer pays with a [Wix eCommerce checkout](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/checkout/introduction), this field is required. Otherwise, the Create Booking call fails. For custom checkouts, you don't have to specify this field.
108
+ enum:
109
+ MEMBERSHIP: Payment using a Wix Pricing Plan.
110
+ MEMBERSHIP_OFFLINE: Customers can pay only in person with a Wix Pricing Plan, while the Wix user must manually redeem the pricing plan in the dashboard.
111
+ OFFLINE: Offline payment.
112
+ ONLINE: Online payment.
113
+ UNDEFINED: Undefined payment option.
114
+ - name: status | type: BookingStatus | description: Booking status. A booking is automatically confirmed if the service allows it and an eCommerce order is created. It is automatically declined if there is a double booking and the customer hasn't paid or is eligible for an automatic refund. Currently, only payments with pricing plans are automatically refundable.
115
+ enum:
116
+ CANCELED: The customer has canceled the booking. Depending on the relevant service's [policy snapshot](https://dev.wix.com/docs/rest/business-solutions/bookings/policies/booking-policy-snapshots/introduction) they may have to pay a [cancellation fee](https://dev.wix.com/docs/rest/business-solutions/bookings/pricing/booking-fees/introduction).
117
+ CONFIRMED: The merchant has confirmed the booking and it appears in the business calendar. Merchants can set up their [services](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/introduction) to automatically confirm all `PENDING` bookings.
118
+ CREATED: The booking was created, but the customer hasn't completed the related eCommerce order yet.
119
+ DECLINED: The merchant has declined the booking before the customer was charged.
120
+ PENDING: The merchant must manually confirm the booking before it appears in the business calendar.
121
+ WAITING_LIST: Currently, you can't call [Register to Waitlist](https://dev.wix.com/docs/rest/business-solutions/bookings/bookings/waitlist/register-to-waitlist) for course or appointment bookings, even though this is supported in live sites.
122
+ - ONE-OF:
123
+ - name: participantsChoices | type: ParticipantChoices | description: Information about the booked service choices and participant count for each choice. When creating a booking, use this field only if the booking includes multiple [service variants](https://dev.wix.com/docs/rest/business-solutions/bookings/services/service-options-and-variants/introduction). For example, use this for a spa package booking that includes different service levels: - 2 participants chose "Standard Package". - 1 participant chose "VIP Package".
124
+ - name: serviceChoices | type: Array<ServiceChoices> | description: Information about the booked service choices. Includes the number of participants.
125
+ - name: choices | type: Array<ServiceChoice> | description: Service choices for these participants.
126
+ - name: optionId | type: string | description: GUID of the corresponding option for the choice. For example, the choice `child` could correspond to the option `ageGroup`. In this case, `optionId` is the GUID for the `ageGroup` option.
127
+ - ONE-OF:
128
+ - name: custom | type: string | description: Value for one of the choices in the [`CustomServiceOption.choices`](https://example.com) list. Choices are specific values for an option the customer can choose to book. For example, the option `ageGroup` may have these choices: `child`, `student`, `adult`, and `senior`. Each choice may have a different price.
129
+ - name: duration | type: Duration | description: none
130
+ - name: minutes | type: number | description: Duration of the service in minutes. Min: 1 minute, Max: 30 days, 23 hours, and 59 minutes
131
+ - name: name | type: string | description: Name of the duration option. Defaults to the formatted duration e.g. "1 hour, 30 minutes".
132
+ - name: numberOfParticipants | type: number | description: Number of participants for this [variant](https://dev.wix.com/docs/rest/business-solutions/bookings/services/service-options-and-variants/introduction).
133
+ - name: totalParticipants | type: number | description: Total number of participants. When creating a booking, use this field only if the relevant service has fixed pricing and doesn't offer [variants and options](https://dev.wix.com/docs/rest/business-solutions/bookings/services/service-options-and-variants/introduction).
134
+ - name: flowControlSettings | type: CancelBookingFlowControlSettings | description: Information about whether specific procedures of the standard Wix Bookings cancellation flow are changed. For example, whether you can cancel a booking even though the cancellation policy doesn't allow it or whether to issue a refund.
135
+ - name: ignoreCancellationPolicy | type: boolean | description: Whether the cancellation policy applies when canceling the booking. When passing `false`, you can only cancel a booking if the cancellation policy allows it. Default: `false`.
136
+ - name: waiveCancellationFee | type: boolean | description: Whether to waive the cancellation fee when canceling the booking. - `true`: The customer doesn't have to pay a cancellation fee. - `false`: The customer must pay the cancellation fee that's defined in the service's [policy](https://dev.wix.com/docs/api-reference/business-solutions/bookings/policies/booking-policies/introduction). Default: `false`.
137
+ - name: withRefund | type: boolean | description: Whether to issue a refund when canceling the booking. The refund will be issued only if the booking is refundable. Currently, a booking is considered refundable when it was paid by membership. If you specify `true`, the booking flow control settings is set to include a refund. If `false` is specified or the field remains empty, the booking flow control settings are set without refund. Default: `false`.
138
+ - name: initiatedBy | type: IdentificationData | description: GUID of the cancellation initiator.
139
+ - ONE-OF:
140
+ - name: anonymousVisitorId | type: string | description: GUID of a site visitor that has not logged in to the site.
141
+ - name: appId | type: string | description: GUID of an app.
142
+ - name: memberId | type: string | description: GUID of a site visitor that has logged in to the site.
143
+ - name: wixUserId | type: string | description: GUID of a Wix user (site owner, contributor, etc.).
144
+ - name: participantNotification | type: ParticipantNotification | description: Information about whether to notify the customer about the cancellation and the message to send.
145
+ - name: message | type: string | description: Custom message to send to the participants about the changes to the booking.
146
+ - name: notifyParticipants | type: boolean | description: Whether to send a message about the changes to the customer. Default: `false`
147
+ - name: previousStatus | type: BookingStatus | description: The previous status of the booking.
148
+ - name: metadata | type: EventMetadata | description: none
149
+ - name: _id | type: string | description: Event GUID. With this GUID you can easily spot duplicated events and ignore them.
150
+ - name: entityEventSequence | type: string | description: A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number. You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
151
+ - name: entityFqdn | type: string | description: Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities. For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
152
+ - name: entityId | type: string | description: GUID of the entity associated with the event.
153
+ - name: eventTime | type: Date | description: Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`.
154
+ - name: eventType | type: string | description: Event type.
155
+ - name: identity | type: WebhooksIdentificationData | description: The identification type and identity data.
156
+ - ONE-OF:
157
+ - name: anonymousVisitorId | type: string | description: GUID of a site visitor that has not logged in to the site.
158
+ - name: appId | type: string | description: GUID of an app.
159
+ - name: memberId | type: string | description: GUID of a site visitor that has logged in to the site.
160
+ - name: wixUserId | type: string | description: GUID of a Wix user (site owner, contributor, etc.).
161
+ - name: instanceId | type: string | description: App instance GUID.
162
+ - name: originatedFrom | type: string | description: If present, indicates the action that triggered the event.
163
+ - name: slug | type: string | description: Event action name, placed at the top level to make it easier for users to dispatch messages. For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
164
+ - name: triggeredByAnonymizeRequest | type: boolean | description: Whether the event was triggered as a result of a privacy regulation application (for example, GDPR).
165
+ Return type: PRIMITIVE<void>
166
+
167
+ ```
168
+ </type_definition>
169
+ </bookings_bookings_onBookingCanceled>
@@ -0,0 +1,154 @@
1
+ <bookings_bookings_onBookingCreated>
2
+ <description>
3
+ # This is a Webhook method
4
+
5
+ # Method name:
6
+
7
+ bookings.bookings.onBookingCreated(handler: OnBookingCreatedHandler)
8
+
9
+ # Method Link:
10
+
11
+ https://dev.wix.com/docs/sdk/backend-modules/bookings/bookings/on-booking-created
12
+
13
+ # Method Description:
14
+
15
+ Triggered when a booking is created.
16
+
17
+
18
+ </description>
19
+ <usage>
20
+ import { bookings } from "@wix/bookings";
21
+
22
+ bookings.onBookingCreated((event) => {
23
+ // handle your event here
24
+ });
25
+
26
+ </usage>
27
+ <type_definition>
28
+ ```
29
+ Method: bookings.bookings.onBookingCreated(handler)
30
+ Description: Triggered when a booking is created.
31
+ Method parameters:
32
+ param name: handler | type: OnBookingCreatedHandler | description: none
33
+ - name: event | type: BookingCreatedEnvelope | description: none
34
+ - name: entity | type: Booking | description: none
35
+ - name: bookedAddOns | type: Array<BookedAddOn> | description: List of [add-ons](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/add-ons/introduction) associated with the booking.
36
+ - name: _id | type: string | description: The GUID of the add-on.
37
+ - name: groupId | type: string | description: The GUID of the add-on group.
38
+ - name: quantity | type: number | description: The quantity of booked add-ons.
39
+ - name: bookedEntity | type: BookedEntity | description: An object describing the bookable entity - either a specific time slot or a recurring schedule. The structure depends on the type of service being booked: __For appointment services__: Use `slot` to book a specific time slot with a service provider. Appointments are typically one-time sessions at a specific date and time. __For class services__: Use `slot` to book a specific class session. Classes are individual sessions that can have multiple participants. __For course services__: Use `schedule` to book an entire course consisting of multiple sessions over time. Courses are recurring, multi-session offerings. Choose the appropriate field based on your service type and booking requirements.
40
+ - name: tags | type: Array<string> | description: List of tags for the booking. - "INDIVIDUAL": For bookings of appointment-based services. Including when the appointment is for a group of participants. - "GROUP": For bookings of individual class sessions. - "COURSE": For course bookings.
41
+ - ONE-OF:
42
+ - name: schedule | type: BookedSchedule | description: [Booked schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/introduction). Specify `schedule` when creating bookings for: - __Course services__: Multi-session offerings spanning weeks or months (educational courses, training programs). Wix Bookings enrolls participants in all sessions defined by the course schedule.
43
+ - name: scheduleId | type: string | description: [Schedule GUID](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/introduction).
44
+ - name: serviceId | type: string | description: Booked service GUID.
45
+ - name: timezone | type: string | description: Time zone in [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database). For example, `America/New_York` or `UTC`. This is the time zone in which the schedule was shown to the customer at the time of booking. Wix Bookings ensures that the schedule is always displayed in this same time zone to the customer, including when they view or edit their booking in the future.
46
+ - name: slot | type: BookedSlot | description: [Booked slot](https://dev.wix.com/docs/rest/business-solutions/bookings/bookings-and-time-slots/time-slots/availability-calendar/query-availability). Specify `slot` when creating bookings for: - __Appointment-based services__: Individual sessions with service providers (consultations, treatments). Wix Bookings creates a new session when the booking is confirmed. - __Class services__: Group sessions at specific times (fitness classes, workshops). Wix Bookings links the booking to an existing scheduled session. For course services, specify `schedule` instead of `slot`.
47
+ - name: endDate | type: string | description: The end time of this slot in `YYYY-MM-DDThh:mm:ss`, `YYYY-MM-DDThh:mm:ss:SSS`, or `YYYY-MM-DDThh:mm:ss:SSSZZ` [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601). For example, `2026-01-30T13:30:00`, `2026-01-30T13:30:00:000`, or `2026-01-30T13:30:00:000-05:00`.
48
+ - name: eventId | type: string | description: GUID of the corresponding [event](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/introduction). Available for both appointment and class bookings, not available for course bookings. For appointment-based services, Wix Bookings automatically populates `eventId` when the booking `status` changes to `CONFIRMED`. For class bookings, Wix Bookings automatically populates `eventId` upon booking creation.
49
+ - name: location | type: Location | description: Location where the session takes place.
50
+ - name: _id | type: string | description: Business location GUID. Available only for locations that are business locations, meaning the `location_type` is `"OWNER_BUSINESS"`.
51
+ - name: formattedAddress | type: string | description: The full address of this location.
52
+ - name: formattedAddressTranslated | type: string | description: The full translated address of this location.
53
+ - name: locationType | type: LocationType | description: Location type. - `"OWNER_BUSINESS"`: The business address, as set in the site’s general settings. - `"OWNER_CUSTOM"`: The address as set when creating the service. - `"CUSTOM"`: The address as set for the individual session.
54
+ enum: CUSTOM, OWNER_BUSINESS, OWNER_CUSTOM, UNDEFINED
55
+ - name: name | type: string | description: Location name.
56
+ - name: resource | type: BookedResource | description: [Primary resource](https://dev.wix.com/docs/rest/business-solutions/bookings/resources/resources-v2/introduction) for the booking. For example, the [staff member](https://dev.wix.com/docs/rest/business-solutions/bookings/staff-members/introduction) providing the service.
57
+ - name: _id | type: string | description: GUID of the booking's primary resource.
58
+ - name: email | type: string | description: Resource's email at the time of booking.
59
+ - name: name | type: string | description: Resource's name at the time of booking.
60
+ - name: scheduleId | type: string | description: GUID of the schedule belonging to the booking's primary resource.
61
+ - name: scheduleId | type: string | description: Schedule GUID.
62
+ - name: serviceId | type: string | description: Service GUID.
63
+ - name: startDate | type: string | description: The start time of this slot in `YYYY-MM-DDThh:mm:ss`, `YYYY-MM-DDThh:mm:ss:SSS`, or `YYYY-MM-DDThh:mm:ss:SSSZZ` [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601). For example, `2026-01-30T13:30:00`, `2026-01-30T13:30:00:000`, or `2026-01-30T13:30:00:000-05:00`.
64
+ - name: timezone | type: string | description: Time zone in [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database). For example, `America/New_York` or `UTC`. This is the time zone in which the slot was shown to the customer at the time of booking. Wix Bookings ensures that the slot is always displayed in this same time zone to the customer, including when they view or edit their booking in the future.
65
+ - name: contactDetails | type: ContactDetails | description: Contact details of the site visitor or [member](https://dev.wix.com/docs/api-reference/crm/members-contacts/members/members/introduction)) making the booking.
66
+ - name: contactId | type: string | description: Contact GUID.
67
+ - name: countryCode | type: string | description: Contact's country in [ISO 3166-1 alpha-2 code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format.
68
+ - name: email | type: string | description: Contact's email. If no [contact](https://dev.wix.com/docs/rest/crm/members-contacts/contacts/contacts/contact-v4/contact-object) with this email exist, a new contact is created. Used to validate coupon usage limitations per contact. If not specified, the coupon usage limitation will not be enforced. (Coupon usage limitation validation is not supported yet).
69
+ - name: firstName | type: string | description: Contact's first name. When populated from a standard booking form, this property corresponds to the `name` field.
70
+ - name: fullAddress | type: Address | description: Contact's full address.
71
+ - name: addressLine2 | type: string | description: Free text providing more detailed address info. Usually contains Apt, Suite, and Floor.
72
+ - name: city | type: string | description: City name.
73
+ - name: country | type: string | description: Country code.
74
+ - name: countryFullname | type: string | description: Country full name.
75
+ - name: formattedAddress | type: string | description: A string containing the full address of this location.
76
+ - name: geocode | type: AddressLocation | description: Coordinates of the physical address.
77
+ - name: latitude | type: number | description: Address latitude.
78
+ - name: longitude | type: number | description: Address longitude.
79
+ - name: hint | type: string | description: Free text to help find the address.
80
+ - name: postalCode | type: string | description: Zip/postal code.
81
+ - name: subdivision | type: string | description: Subdivision. Usually state, region, prefecture or province code, according to [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2).
82
+ - name: subdivisions | type: Array<Subdivision> | description: Multi-level subdivisions from top to bottom.
83
+ - name: code | type: string | description: Subdivision code. Usually state, region, prefecture or province code, according to [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2).
84
+ - name: name | type: string | description: Subdivision full name.
85
+ - ONE-OF:
86
+ - name: addressLine | type: string | description: Main address line, usually street and number, as free text.
87
+ - name: streetAddress | type: StreetAddress | description: Street name, number and apartment number.
88
+ - name: apt | type: string | description: Apartment number.
89
+ - name: name | type: string | description: Street name.
90
+ - name: number | type: string | description: Street number.
91
+ - name: lastName | type: string | description: Contact's last name.
92
+ - name: phone | type: string | description: Contact's phone number.
93
+ - name: extendedFields | type: ExtendedFields | description: Custom field data for this object. Extended fields must be configured in the app dashboard before they can be accessed with API calls.
94
+ - name: namespaces | type: Record<string, undefined> | description: Extended field data. Each key corresponds to the namespace of the app that created the extended fields. The value of each key is structured according to the schema defined when the extended fields were configured. You can only access fields for which you have the appropriate permissions. Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).
95
+ - name: externalUserId | type: string | description: External user GUID that you can provide.
96
+ - name: formSubmissionId | type: string | description: GUID of the [form submission](https://dev.wix.com/docs/rest/crm/forms/form-submissions/introduction) associated with this booking.
97
+ - name: paymentStatus | type: PaymentStatus | description: The payment status of the booking. This field automatically syncs with the `paymentStatus` of the corresponding [eCommerce order](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/orders/introduction) when customers use Wix eCommerce checkout. ### Integration patterns __When using Wix eCommerce checkout__: Wix Bookings automatically syncs the payment status based on the eCommerce order's payment status. Do not manually update this field. __When using custom payment flows__: You can manually update the payment status with [Confirm Booking or Decline Booking](https://dev.wix.com/docs/api-reference/business-solutions/bookings/bookings/bookings-writer-v2/confirm-or-decline-booking) to reflect the customer's payment state. __For membership/pricing plan payments__: Wix Bookings automatically manages the payment status when customers pay with an active [pricing plan](https://dev.wix.com/docs/api-reference/business-solutions/pricing-plans/pricing-plans/introduction) subscription. All payment statuses are supported for every booking `status`.
98
+ enum:
99
+ EXEMPT: The booking is free of charge.
100
+ NOT_PAID: The booking isn't paid.
101
+ PAID: The booking is fully paid.
102
+ PARTIALLY_PAID: The booking is partially paid.
103
+ REFUNDED: The booking is refunded.
104
+ UNDEFINED: Undefined payment status.
105
+ - name: revision | type: string | description: Revision number to be used when updating, rescheduling, or cancelling the booking. Increments by 1 each time the booking is updated, rescheduled, or canceled. To prevent conflicting changes, the current revision must be specified when updating the booking.
106
+ - name: selectedPaymentOption | type: SelectedPaymentOption | description: Payment option selected by the customer. If the customer hasn't completed their checkout, they may still change the payment method. Must be one of the payment options offered by the [service](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/services-v2/introduction), unless `skipSelectedPaymentOptionValidation` is `true`. When the customer pays with a [Wix eCommerce checkout](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/checkout/introduction), this field is required. Otherwise, the Create Booking call fails. For custom checkouts, you don't have to specify this field.
107
+ enum:
108
+ MEMBERSHIP: Payment using a Wix Pricing Plan.
109
+ MEMBERSHIP_OFFLINE: Customers can pay only in person with a Wix Pricing Plan, while the Wix user must manually redeem the pricing plan in the dashboard.
110
+ OFFLINE: Offline payment.
111
+ ONLINE: Online payment.
112
+ UNDEFINED: Undefined payment option.
113
+ - name: status | type: BookingStatus | description: Booking status. A booking is automatically confirmed if the service allows it and an eCommerce order is created. It is automatically declined if there is a double booking and the customer hasn't paid or is eligible for an automatic refund. Currently, only payments with pricing plans are automatically refundable.
114
+ enum:
115
+ CANCELED: The customer has canceled the booking. Depending on the relevant service's [policy snapshot](https://dev.wix.com/docs/rest/business-solutions/bookings/policies/booking-policy-snapshots/introduction) they may have to pay a [cancellation fee](https://dev.wix.com/docs/rest/business-solutions/bookings/pricing/booking-fees/introduction).
116
+ CONFIRMED: The merchant has confirmed the booking and it appears in the business calendar. Merchants can set up their [services](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/introduction) to automatically confirm all `PENDING` bookings.
117
+ CREATED: The booking was created, but the customer hasn't completed the related eCommerce order yet.
118
+ DECLINED: The merchant has declined the booking before the customer was charged.
119
+ PENDING: The merchant must manually confirm the booking before it appears in the business calendar.
120
+ WAITING_LIST: Currently, you can't call [Register to Waitlist](https://dev.wix.com/docs/rest/business-solutions/bookings/bookings/waitlist/register-to-waitlist) for course or appointment bookings, even though this is supported in live sites.
121
+ - ONE-OF:
122
+ - name: participantsChoices | type: ParticipantChoices | description: Information about the booked service choices and participant count for each choice. When creating a booking, use this field only if the booking includes multiple [service variants](https://dev.wix.com/docs/rest/business-solutions/bookings/services/service-options-and-variants/introduction). For example, use this for a spa package booking that includes different service levels: - 2 participants chose "Standard Package". - 1 participant chose "VIP Package".
123
+ - name: serviceChoices | type: Array<ServiceChoices> | description: Information about the booked service choices. Includes the number of participants.
124
+ - name: choices | type: Array<ServiceChoice> | description: Service choices for these participants.
125
+ - name: optionId | type: string | description: GUID of the corresponding option for the choice. For example, the choice `child` could correspond to the option `ageGroup`. In this case, `optionId` is the GUID for the `ageGroup` option.
126
+ - ONE-OF:
127
+ - name: custom | type: string | description: Value for one of the choices in the [`CustomServiceOption.choices`](https://example.com) list. Choices are specific values for an option the customer can choose to book. For example, the option `ageGroup` may have these choices: `child`, `student`, `adult`, and `senior`. Each choice may have a different price.
128
+ - name: duration | type: Duration | description: none
129
+ - name: minutes | type: number | description: Duration of the service in minutes. Min: 1 minute, Max: 30 days, 23 hours, and 59 minutes
130
+ - name: name | type: string | description: Name of the duration option. Defaults to the formatted duration e.g. "1 hour, 30 minutes".
131
+ - name: numberOfParticipants | type: number | description: Number of participants for this [variant](https://dev.wix.com/docs/rest/business-solutions/bookings/services/service-options-and-variants/introduction).
132
+ - name: totalParticipants | type: number | description: Total number of participants. When creating a booking, use this field only if the relevant service has fixed pricing and doesn't offer [variants and options](https://dev.wix.com/docs/rest/business-solutions/bookings/services/service-options-and-variants/introduction).
133
+ - name: metadata | type: EventMetadata | description: none
134
+ - name: _id | type: string | description: Event GUID. With this GUID you can easily spot duplicated events and ignore them.
135
+ - name: entityEventSequence | type: string | description: A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number. You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
136
+ - name: entityFqdn | type: string | description: Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities. For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
137
+ - name: entityId | type: string | description: GUID of the entity associated with the event.
138
+ - name: eventTime | type: Date | description: Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`.
139
+ - name: eventType | type: string | description: Event type.
140
+ - name: identity | type: WebhooksIdentificationData | description: The identification type and identity data.
141
+ - ONE-OF:
142
+ - name: anonymousVisitorId | type: string | description: GUID of a site visitor that has not logged in to the site.
143
+ - name: appId | type: string | description: GUID of an app.
144
+ - name: memberId | type: string | description: GUID of a site visitor that has logged in to the site.
145
+ - name: wixUserId | type: string | description: GUID of a Wix user (site owner, contributor, etc.).
146
+ - name: instanceId | type: string | description: App instance GUID.
147
+ - name: originatedFrom | type: string | description: If present, indicates the action that triggered the event.
148
+ - name: slug | type: string | description: Event action name, placed at the top level to make it easier for users to dispatch messages. For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
149
+ - name: triggeredByAnonymizeRequest | type: boolean | description: Whether the event was triggered as a result of a privacy regulation application (for example, GDPR).
150
+ Return type: PRIMITIVE<void>
151
+
152
+ ```
153
+ </type_definition>
154
+ </bookings_bookings_onBookingCreated>