> 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: catalogV3

# Namespace: promotionsV3

# Webhook link: https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/promotions-v3/promotion-updated.md

## Introduction

Triggered when a promotion is updated.

---

## REST API

### Schema

```
Webhook: Promotion Updated
Description: Triggered when a promotion 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: Promotion | description: The entity after the update.
        - name: id | type: string | description: Promotion GUID.
        - name: revision | type: string | description: Revision number, which increments by 1 each time the promotion is updated. To prevent conflicting changes, the current revision must be passed when updating the promotion.
        - name: createdDate | type: string | description: Date and time the promotion was created.
        - name: updatedDate | type: string | description: Date and time the promotion was last updated.
        - name: name | type: string | description: Promotion name.
        - name: media | type: PromotionMedia | description: Promotion media.
           - ONE-OF:
              - name: id | type: string | description: Set media by GUID of an existing file in Wix Media Manager.
              - name: url | type: string | description: Set media using an external media URL.  When provided, Wix Media Manager imports the media asynchronously. During import: - `image` is empty. - The promotion is saved as disabled regardless of the requested `enabled` value.  Once the import completes successfully, the promotion's `image` is populated and `enabled` is set to the originally requested value. If the import fails, the promotion's entire `media` object is cleared and the promotion stays disabled. To retry, set new media.
           - name: altText | type: string | description: Image alt text.
           - name: displayName | type: string | description: Media display name.  Overrides the default media name. Can be passed only when the media is set by a URL in this item's `url` field.
           - name: mediaType | type: MediaType | description: Media type.
               - enum:
               -     IMAGE: Image media type.
           - name: uploadId | type: string | description: GUID of the asynchronous media import that Wix Media Manager runs when media is set with a `url`.
        - name: destinationUrl | type: string | description: URL the promotion redirects to when a customer clicks the banner.
        - name: categories | type: array<CategoryAssignment> | description: Categories the promotion is directly assigned to. A promotion may also appear in subcategories when `appliedToSubcategories` is `true` for a directly assigned category.
           - name: id | type: string | description: Category GUID.
           - name: position | type: integer | description: Position of the promotion within the category, starting from 1.  Must be provided for each category assignment — omitting it fails validation, because positions start from 1.
           - name: appliedToSubcategories | type: boolean | description: Whether the promotion also appears in this category's subcategories. When inherited by a subcategory, the promotion keeps the same position.  Default: `false`
        - name: enabled | type: boolean | description: Whether the promotion is enabled.  When creating or updating with `media.url`, this value takes effect only after the media import completes successfully. See `media.url` for details.  Default: `false`
        - name: extendedFields | type: ExtendedFields | description: Custom field data for the promotion object.  [Extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields.md) must be configured in the app dashboard before they can be accessed with API calls.
           - 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 for organizing and filtering promotions.
           - 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<string> | description: List of tag GUIDs.
           - name: publicTags | 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<string,Value> | description: Fields that were updated and their values before the update.

```

### Examples


```curl
{
  "id": "79e98f2a-d8b4-4a3b-a62f-7393757bab84",
  "entityFqdn": "wix.stores.catalog.v3.promotion",
  "slug": "updated",
  "entityId": "8046df3c-7575-4098-a5ab-c91ad8f33c47",
  "updatedEvent": {
    "currentEntityAsJson": {
      "id": "8046df3c-7575-4098-a5ab-c91ad8f33c47",
      "revision": "2",
      "createdDate": "2026-07-08T19:30:59.898Z",
      "updatedDate": "2026-07-08T19:31:34.338Z",
      "name": "Summer Sale - Final Days",
      "media": {
        "id": "a27d24_8a3c5e8a724f4b8a9065b0c6f4a2e7~mv2.png",
        "altText": "Summer sale banner with 50% off",
        "image": {
          "id": "a27d24_8a3c5e8a724f4b8a9065b0c6f4a2e7~mv2.png",
          "url": "https://static.wixstatic.com/media/a27d24_8a3c5e8a724f4b8a9065b0c6f4a2e7~mv2.png",
          "height": 184,
          "width": 544,
          "altText": "Summer sale banner with 50% off",
          "filename": "summer-sale-banner.png",
          "sizeInBytes": "7108"
        },
        "displayName": "summer-sale-banner.png",
        "mediaType": "IMAGE"
      },
      "destinationUrl": "https://www.example.com/summer-sale-final",
      "categories": [
        {
          "id": "f6c2e4a1-8b3d-4e5f-9a1b-2c3d4e5f6a7b",
          "position": 1,
          "appliedToSubcategories": true
        }
      ],
      "enabled": true
    },
    "modifiedFields": {
      "revision": "1",
      "updatedDate": "2026-07-08T19:30:59.898Z",
      "name": "Summer Sale",
      "destinationUrl": "https://www.example.com/summer-sale"
    }
  },
  "eventTime": "2026-07-08T19:31:34.512276841Z",
  "triggeredByAnonymizeRequest": false,
  "entityEventSequence": "2"
}

```

---

## JavaScript SDK

### Schema

```
Webhook: onPromotionUpdated
Description: Triggered when a promotion is updated.
Payload: PromotionUpdatedEnvelope
  - name: entity | type: Promotion | description: none
     - name: _id | type: string | description: Promotion GUID.
     - name: revision | type: string | description: Revision number, which increments by 1 each time the promotion is updated. To prevent conflicting changes, the current revision must be passed when updating the promotion.
     - name: _createdDate | type: Date | description: Date and time the promotion was created.
     - name: _updatedDate | type: Date | description: Date and time the promotion was last updated.
     - name: name | type: string | description: Promotion name.
     - name: media | type: PromotionMedia | description: Promotion media.
        - ONE-OF:
           - name: _id | type: string | description: Set media by GUID of an existing file in Wix Media Manager.
           - name: url | type: string | description: Set media using an external media URL.  When provided, Wix Media Manager imports the media asynchronously. During import: - `image` is empty. - The promotion is saved as disabled regardless of the requested `enabled` value.  Once the import completes successfully, the promotion's `image` is populated and `enabled` is set to the originally requested value. If the import fails, the promotion's entire `media` object is cleared and the promotion stays disabled. To retry, set new media.
        - name: altText | type: string | description: Image alt text.
        - name: displayName | type: string | description: Media display name.  Overrides the default media name. Can be passed only when the media is set by a URL in this item's `url` field.
        - name: mediaType | type: MediaType | description: Media type.
             - enum:
             -     IMAGE: Image media type.
        - name: uploadId | type: string | description: GUID of the asynchronous media import that Wix Media Manager runs when media is set with a `url`.
     - name: destinationUrl | type: string | description: URL the promotion redirects to when a customer clicks the banner.
     - name: categories | type: array<CategoryAssignment> | description: Categories the promotion is directly assigned to. A promotion may also appear in subcategories when `appliedToSubcategories` is `true` for a directly assigned category.
        - name: _id | type: string | description: Category GUID.
        - name: position | type: integer | description: Position of the promotion within the category, starting from 1.  Must be provided for each category assignment — omitting it fails validation, because positions start from 1.
        - name: appliedToSubcategories | type: boolean | description: Whether the promotion also appears in this category's subcategories. When inherited by a subcategory, the promotion keeps the same position.  Default: `false`
     - name: enabled | type: boolean | description: Whether the promotion is enabled.  When creating or updating with `media.url`, this value takes effect only after the media import completes successfully. See `media.url` for details.  Default: `false`
     - name: extendedFields | type: ExtendedFields | description: Custom field data for the promotion object.  [Extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields.md) must be configured in the app dashboard before they can be accessed with API calls.
        - 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 for organizing and filtering promotions.
        - 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<string> | description: List of tag GUIDs.
        - name: publicTags | 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<string,Value> | 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<Value> | 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 { promotionsV3 } from '@wix/stores';

promotionsV3.onPromotionUpdated((event) => {
    // handle your event here
});
```


```javascript
import { createClient, AppStrategy } from '@wix/sdk';
import { promotionsV3 } from '@wix/stores';

const wixClient = createClient({
  auth: AppStrategy({
    appId: 'MY-APP-ID',
    publicKey: 'YOUR_APP_PUBLIC_KEY',
  }),
  modules: {
      promotionsV3,
    },
});

wixClient.promotionsV3.onPromotionUpdated((event) => {
    // handle your event here
});
```

---