> Portal Navigation: > > - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version. > - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages). > - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`). > - Top-level index of all portals: https://dev.wix.com/docs/llms.txt > - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt # Package: ticketing # Namespace: ticketReservations # Webhook link: https://dev.wix.com/docs/api-reference/business-solutions/events/registration/ticketing/ticket-reservations/ticket-reservation-updated.md ## Introduction Triggered when a ticket reservation is updated. --- ## REST API ### Schema ``` Webhook: Ticket Reservation Updated Description: Triggered when a ticket reservation is updated. Event body: - name: id | type: string | description: Unique event ID. Allows clients to ignore duplicate events. - name: entityFqdn | type: string | description: Fully qualified domain name of the entity associated with the event. - name: slug | type: string | description: Event name. - name: entityId | type: string | description: ID of the entity associated with the event. - name: eventTime | type: string (date-time) | description: Event timestamp. - name: triggeredByAnonymizeRequest | type: boolean | description: Whether the event was triggered as a result of a privacy regulation application such as GDPR. - name: originatedFrom | type: string | description: If present, indicates the action that triggered the event. - name: updatedEvent | type: object | description: Updated event details. - name: currentEntity | type: TicketReservation | description: The entity after the update. - name: id | type: string | description: Ticket reservation GUID. - name: revision | type: string | description: Revision number, which increments by 1 each time the ticket reservation is updated. To prevent conflicting changes, the current revision must be passed when updating the ticket reservation. - name: createdDate | type: string | description: Date and time the ticket reservation was created. - name: updatedDate | type: string | description: Date and time the ticket reservation was updated. - name: expirationDate | type: string | description: Date and time when a `PENDING` ticket reservation will automatically expire if not confirmed. When a reservation expires, tickets are released back to the available inventory. Expiration time is calculated based on the event's reservation duration settings. To set the reservation duration, call [Create Event](https://dev.wix.com/docs/api-reference/business-solutions/events/events-v3/create-event.md) API. **Note:** This field only applies to `PENDING` reservations. - name: status | type: ReservationStatus | description: Reservation status. - enum: - PENDING: Initial state when tickets are reserved. Will automatically expire after the expiration time if not confirmed. - CONFIRMED: Reservation is confirmed and tickets are secured. No expiration time applies. - CANCELED: Reservation was cancelled due to payment failure or system timeout, and tickets were released back to inventory. - CANCELED_MANUALLY: Reservation was manually cancelled by the site owner, and tickets were released back to inventory. - EXPIRED: Reservation exceeded its expiration time and tickets were released back to inventory. - name: memberId | type: string | description: GUID of the site member who created this reservation. Only returned when the reservation was created by a logged-in site member. Learn more about [identities](https://dev.wix.com/docs/api-reference/articles/get-started/about-identities.md). - name: visitorId | type: string | description: GUID of the site visitor who created this reservation. Returned for both logged-in members and anonymous visitors. Learn more about [identities](https://dev.wix.com/docs/api-reference/articles/get-started/about-identities.md). - name: tickets | type: array | description: List of ticket line items included in this reservation. Each line item represents tickets of the same type, pricing option, and seating arrangement. Multiple line items are created when reserving different ticket types or seating sections. - name: ticketLineItemId | type: string | description: Ticket line item GUID. - name: eventId | type: string | description: GUID of the event these tickets are for. - name: ticketDefinitionId | type: string | description: GUID of the [ticket definition](https://dev.wix.com/docs/api-reference/business-solutions/events/ticket-definitions-v3/introduction.md) being reserved. - name: quantity | type: integer | description: Number of tickets to reserve for this line item. - name: ticketInfo | type: TicketInfo | description: Detailed information about the tickets in this line item. - name: seatId | type: string | description: Unique identifier for the assigned seat at the event venue. Required for events with assigned seating. Each ticket in the line item can have a different seat assignment within the same section or area. - name: seatInfo | type: SeatInfo | description: Detailed seat location information. Includes section, row, seat number, and other venue-specific identifiers to help customers locate their assigned seats. - name: sectionLabel | type: string | description: High-level division of the venue, where the place is located, such as `Orchestra`, `Balcony`, or `VIP Section`. - name: areaLabel | type: string | description: General admission or general seating area label. - name: tableLabel | type: string | description: Table label for events with table seating. - name: rowLabel | type: string | description: Row label within a section. - name: seatLabel | type: string | description: Individual seat label within a row or at a table. - name: configurationId | type: string | description: Seating plan GUID from the Wix Events & Tickets app. - name: guestPrice | type: string | description: The guest enters the ticket price. This pricing method is applied to donation. - name: pricingOptionId | type: string | description: GUID of the pricing option selected for this ticket. - name: pricingOptionName | type: string | description: Display name of the selected pricing option. - name: pricingPlan | type: PricingPlan | description: Pricing plan benefits applied to this ticket. Contains information about subscription plan discounts or benefits that affect the ticket pricing for this customer. - name: orderId | type: string | description: Order GUID of the pricing plan purchase. References the specific order through which the customer acquired their subscription plan benefits. - name: planId | type: string | description: Unique identifier of the pricing plan. References the specific subscription plan that grants pricing benefits or discounts for this ticket reservation. - name: priceOverride | type: string | description: Override price that replaces the standard ticket price. Used for promotional pricing, staff discounts, or other special pricing that differs from the standard ticket definition price. - name: eventSettingsSnapshot | type: EventSettingsSnapshot | description: Snapshot of event configuration at the time of reservation creation. Preserves settings like reservation duration and ticket limits to ensure consistent behavior even if event settings change after reservation creation. EMPTY-OBJECT {} - name: removedQuantity | type: integer | description: Number of tickets that are removed from this line item after manually updating reservation in the dashboard. - name: policy | type: string | description: Terms and conditions that apply to this ticket type. - name: ticketName | type: string | description: Display name of the ticket type for this line item. - name: price | type: Money | description: Price per individual ticket in this line item. Represents the base price for one ticket before any quantity calculations. This price includes any pricing option discounts but excludes service fees. - name: value | type: string | description: Monetary amount. Decimal string with a period as a decimal separator (for example, 3.99). Optionally, a single (-), to indicate that the amount is negative. - name: currency | type: string | description: Currency code. Must be a valid [ISO 4217](https://www.iso.org/iso-4217-currency-codes.html) currency code (for example, USD). - name: subTotal | type: Money | description: Total price for all tickets in this line item. Calculated as `price` multiplied by `quantity`. This represents the subtotal for this line item before taxes and service fees are applied. - name: additionalReservationSettings | type: AdditionalReservationSettings | description: Advanced configuration options that modify default reservation behavior. Use these settings to override standard validation rules, such as availability limits or hidden ticket restrictions. - name: disableTicketLimitValidation | type: boolean | description: Whether to bypass ticket availability limits when creating the reservation. When `true`, allows creating reservations even if tickets appear sold out. Use with caution as this can lead to overselling. Typically used for admin purposes or special circumstances. - name: enableHiddenTicketReservation | type: boolean | description: Whether to allow reservations for tickets marked as hidden. Hidden tickets are not displayed in the standard ticket selection on the site. Enable this to allow reservations for hidden tickets through direct API calls. - name: extendedFields | type: ExtendedFields | description: Extended fields allow you to add custom properties beyond the standard reservation data. Learn more about [extended fields](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/schema-plugins/about-schema-plugin-extensions.md). - name: namespaces | type: object | 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.md). - name: tags | type: Tags | description: Tags allow you to classify ticket reservations. Learn more about [tags](https://dev.wix.com/docs/rest/business-management/tags/introduction.md). - name: privateTags | type: TagList | description: Tags that require an additional permission in order to access them, normally not given to site members or visitors. - name: tagIds | type: array | description: List of tag GUIDs. - name: tags | type: TagList | description: Tags that are exposed to anyone who has access to the labeled entity itself, including site members and visitors. - name: modifiedFields | type: Map | description: Fields that were updated and their values before the update. ``` ### Examples ```curl { "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890", "entityFqdn": "wix.events.v1.ticket_reservation", "slug": "updated", "entityId": "8046df3c-7575-4098-a5ab-c91ad8f33c47", "updatedEvent": { "currentEntity": { "id": "8046df3c-7575-4098-a5ab-c91ad8f33c47", "revision": 2, "createdDate": "2019-10-30T17:22:10.299Z", "updatedDate": "2019-10-30T17:25:15.456Z", "expirationDate": "2019-10-30T18:22:10.299Z", "status": "CONFIRMED", "memberId": "f47ac10b-58cc-4372-a567-0e02b2c3d479", "visitorId": "550e8400-e29b-41d4-a716-446655440000", "tickets": [ { "ticketLineItemId": "123e4567-e89b-12d3-a456-426614174000", "eventId": "987fcdeb-51a2-43d1-9c45-123456789abc", "ticketDefinitionId": "456e7890-a12b-34c5-d678-901234567def", "quantity": 3, "ticketInfo": { "pricingOptionId": "789abcde-f012-3456-7890-abcdef123456", "pricingOptionName": "Early Bird", "pricingType": "STANDARD" }, "ticketName": "General Admission", "price": { "value": "25.00", "currency": "USD" }, "subTotal": { "value": "75.00", "currency": "USD" } } ], "tags": { "tags": { "tagIds": ["vip", "confirmed"] } } }, "modifiedFields": { "status": "CONFIRMED", "cancelable": false, "revision": 2, "updatedDate": "2019-10-30T17:25:15.456Z", "tickets.0.quantity": 3, "tickets.0.subTotal.value": "75.00", "tags.tags.tagIds": ["vip", "confirmed"] } }, "eventTime": "2019-10-30T17:25:15.456Z", "triggeredByAnonymizeRequest": false, "entityEventSequence": 2 } ``` --- ## JavaScript SDK ### Schema ``` Webhook: onTicketReservationUpdated Description: Triggered when a ticket reservation is updated. Payload: TicketReservationUpdatedEnvelope - name: entity | type: TicketReservation | description: none - name: _id | type: string | description: Ticket reservation GUID. - name: revision | type: string | description: Revision number, which increments by 1 each time the ticket reservation is updated. To prevent conflicting changes, the current revision must be passed when updating the ticket reservation. - name: _createdDate | type: Date | description: Date and time the ticket reservation was created. - name: _updatedDate | type: Date | description: Date and time the ticket reservation was updated. - name: expirationDate | type: Date | description: Date and time when a `PENDING` ticket reservation will automatically expire if not confirmed. When a reservation expires, tickets are released back to the available inventory. Expiration time is calculated based on the event's reservation duration settings. To set the reservation duration, call [Create Event](https://dev.wix.com/docs/api-reference/business-solutions/events/events-v3/create-event.md) API. **Note:** This field only applies to `PENDING` reservations. - name: status | type: ReservationStatus | description: Reservation status. - enum: - PENDING: Initial state when tickets are reserved. Will automatically expire after the expiration time if not confirmed. - CONFIRMED: Reservation is confirmed and tickets are secured. No expiration time applies. - CANCELED: Reservation was cancelled due to payment failure or system timeout, and tickets were released back to inventory. - CANCELED_MANUALLY: Reservation was manually cancelled by the site owner, and tickets were released back to inventory. - EXPIRED: Reservation exceeded its expiration time and tickets were released back to inventory. - name: memberId | type: string | description: GUID of the site member who created this reservation. Only returned when the reservation was created by a logged-in site member. Learn more about [identities](https://dev.wix.com/docs/api-reference/articles/get-started/about-identities.md). - name: visitorId | type: string | description: GUID of the site visitor who created this reservation. Returned for both logged-in members and anonymous visitors. Learn more about [identities](https://dev.wix.com/docs/api-reference/articles/get-started/about-identities.md). - name: tickets | type: array | description: List of ticket line items included in this reservation. Each line item represents tickets of the same type, pricing option, and seating arrangement. Multiple line items are created when reserving different ticket types or seating sections. - name: ticketLineItemId | type: string | description: Ticket line item GUID. - name: eventId | type: string | description: GUID of the event these tickets are for. - name: ticketDefinitionId | type: string | description: GUID of the [ticket definition](https://dev.wix.com/docs/api-reference/business-solutions/events/ticket-definitions-v3/introduction.md) being reserved. - name: quantity | type: integer | description: Number of tickets to reserve for this line item. - name: ticketInfo | type: TicketInfo | description: Detailed information about the tickets in this line item. - name: seatId | type: string | description: Unique identifier for the assigned seat at the event venue. Required for events with assigned seating. Each ticket in the line item can have a different seat assignment within the same section or area. - name: seatInfo | type: SeatInfo | description: Detailed seat location information. Includes section, row, seat number, and other venue-specific identifiers to help customers locate their assigned seats. - name: sectionLabel | type: string | description: High-level division of the venue, where the place is located, such as `Orchestra`, `Balcony`, or `VIP Section`. - name: areaLabel | type: string | description: General admission or general seating area label. - name: tableLabel | type: string | description: Table label for events with table seating. - name: rowLabel | type: string | description: Row label within a section. - name: seatLabel | type: string | description: Individual seat label within a row or at a table. - name: configurationId | type: string | description: Seating plan GUID from the Wix Events & Tickets app. - name: guestPrice | type: string | description: The guest enters the ticket price. This pricing method is applied to donation. - name: pricingOptionId | type: string | description: GUID of the pricing option selected for this ticket. - name: pricingOptionName | type: string | description: Display name of the selected pricing option. - name: pricingPlan | type: PricingPlan | description: Pricing plan benefits applied to this ticket. Contains information about subscription plan discounts or benefits that affect the ticket pricing for this customer. - name: orderId | type: string | description: Order GUID of the pricing plan purchase. References the specific order through which the customer acquired their subscription plan benefits. - name: planId | type: string | description: Unique identifier of the pricing plan. References the specific subscription plan that grants pricing benefits or discounts for this ticket reservation. - name: priceOverride | type: string | description: Override price that replaces the standard ticket price. Used for promotional pricing, staff discounts, or other special pricing that differs from the standard ticket definition price. - name: removedQuantity | type: integer | description: Number of tickets that are removed from this line item after manually updating reservation in the dashboard. - name: policy | type: string | description: Terms and conditions that apply to this ticket type. - name: ticketName | type: string | description: Display name of the ticket type for this line item. - name: price | type: Money | description: Price per individual ticket in this line item. Represents the base price for one ticket before any quantity calculations. This price includes any pricing option discounts but excludes service fees. - name: value | type: string | description: Monetary amount. Decimal string with a period as a decimal separator (for example, 3.99). Optionally, a single (-), to indicate that the amount is negative. - name: currency | type: string | description: Currency code. Must be a valid [ISO 4217](https://www.iso.org/iso-4217-currency-codes.html) currency code (for example, USD). - name: subTotal | type: Money | description: Total price for all tickets in this line item. Calculated as `price` multiplied by `quantity`. This represents the subtotal for this line item before taxes and service fees are applied. - name: additionalReservationSettings | type: AdditionalReservationSettings | description: Advanced configuration options that modify default reservation behavior. Use these settings to override standard validation rules, such as availability limits or hidden ticket restrictions. - name: disableTicketLimitValidation | type: boolean | description: Whether to bypass ticket availability limits when creating the reservation. When `true`, allows creating reservations even if tickets appear sold out. Use with caution as this can lead to overselling. Typically used for admin purposes or special circumstances. - name: enableHiddenTicketReservation | type: boolean | description: Whether to allow reservations for tickets marked as hidden. Hidden tickets are not displayed in the standard ticket selection on the site. Enable this to allow reservations for hidden tickets through direct API calls. - name: extendedFields | type: ExtendedFields | description: Extended fields allow you to add custom properties beyond the standard reservation data. Learn more about [extended fields](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/schema-plugins/about-schema-plugin-extensions.md). - name: namespaces | type: object | 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.md). - name: tags | type: Tags | description: Tags allow you to classify ticket reservations. Learn more about [tags](https://dev.wix.com/docs/rest/business-management/tags/introduction.md). - name: privateTags | type: TagList | description: Tags that require an additional permission in order to access them, normally not given to site members or visitors. - name: tagIds | type: array | description: List of tag GUIDs. - name: tags | type: TagList | description: Tags that are exposed to anyone who has access to the labeled entity itself, including site members and visitors. - name: modifiedFields | type: Map | description: Fields that were updated and their values before the update. - ONE-OF: - name: nullValue | type: | description: - name: numberValue | type: number | description: - name: stringValue | type: string | description: - name: boolValue | type: boolean | description: - name: structValue | type: object | description: - name: listValue | type: ListValue | description: - name: values | type: array | description: - name: metadata | type: EventMetadata | description: none - name: instanceId | type: string | description: App instance GUID. - name: eventType | type: string | description: Event type. - name: identity | type: IdentificationData | description: The identification type and identity data. - ONE-OF: - name: anonymousVisitorId | type: string | description: GUID of a site visitor that has not logged in to the site. - name: memberId | type: string | description: GUID of a site visitor that has logged in to the site. - name: wixUserId | type: string | description: GUID of a Wix user (site owner, contributor, etc.). - name: appId | type: string | description: GUID of an app. - name: identityType | type: WebhookIdentityType | description: - enum: UNKNOWN, ANONYMOUS_VISITOR, MEMBER, WIX_USER, APP - name: accountInfo | type: AccountInfo | description: Details related to the account - name: accountId | type: string | description: GUID of the Wix account associated with the event. - name: parentAccountId | type: string | description: GUID of the parent Wix account. Only included when accountId belongs to a child account. - name: siteId | type: string | description: GUID of the Wix site associated with the event. Only included when the event is tied to a specific site. - name: _id | type: string | description: Event GUID. With this GUID you can easily spot duplicated events and ignore them. - 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`. - 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`. - name: entityId | type: string | description: GUID of the entity associated with the event. - 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`. - name: triggeredByAnonymizeRequest | type: boolean | description: Whether the event was triggered as a result of a privacy regulation application (for example, GDPR). - name: originatedFrom | type: string | description: If present, indicates the action that triggered the event. - 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. ``` ### Examples ```javascript import { ticketReservations } from '@wix/events'; ticketReservations.onTicketReservationUpdated((event) => { // handle your event here }); ``` ```javascript import { createClient, AppStrategy } from '@wix/sdk'; import { ticketReservations } from '@wix/events'; const wixClient = createClient({ auth: AppStrategy({ appId: 'MY-APP-ID', publicKey: 'YOUR_APP_PUBLIC_KEY', }), modules: { ticketReservations, }, }); wixClient.ticketReservations.onTicketReservationUpdated((event) => { // handle your event here }); ``` ---