Webhook Support for Offers
About this task
Webhook applies for offer and offer variants.
Existing Webhook can be disabled, re-enabled, edited and deleted.
Add Webhook
Procedure
-
From the Unica Platform home page, select
.The Webhook Definitions page appears.
-
Select Add Webhook
The Add webhook page appears
-
Provide appropriate values for the following fields:
- Name - Mandatory field
- Description
- Select event - Select events from the dropdown. Options available
are:
- Select All
- Offer Created
- Offer Updated
- Offer Deleted
- Offer state changed
- Execution scope - Select from All Offers and Offers from selected templates. If user select All Offers then Webhook will be executed for all the Offers irrespective of template. This also includes the Offers created without template. If user select Offers from selected templates, then Webhook will be executed for all the Offers created using selected templates. Select template from the field dropdown.
- Webhook Post URl - Mandatory field
- Authentication mode - Three modes available:
- Basic
- Bearer token
- Unica manager (loggedin user)
- Username of datasource - Mandatory field
- Name of datasource - Mandatory field
Note: For Basic and Bearer Token Authentication mode, fields Username of datasource and Name of datasource are mandatory fields.Note: On saving Webhook with authentication mode as Unica Manager, Username of datasource and Name of datasource fields are hidden on Webhook summary screen. -
Click Save & Enabled
Once a Webhook is saved it is available on Webhook Listing page.Note:
- Once a Webhook is created, it will get executed and send data from Centralized Offer Management System to other systems. Webhook will be executed only when the configured event is triggered.
- Offers created/updated through autosync will execute Webhook.
- Offers implicitly deleted as a result of folder delete will execute Webhook.
- Offer when edited and added new attribute will execute Webhook only if all offers is selected. [and not for the old template of the offer before adding attribute].
- If template is edited and new attribute is added to the template which was used for offer creation- no Webhooks are executed.