This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Lists all custom triggers provided by your service plugin integration.
This method is automatically called by Wix eCommerce to populate the custom minimum requirements section of an automatic discount.
Custom triggers.
The data payload will include the following object as an encoded JWT. For the purposes of this example, we show the request and response objects decoded.
curl -X POST https://provider.example.com/v1/listTriggers \
-H 'user-agent: Wix' \
-H 'accept-encoding: gzip, deflate' \
-H 'content-type: text/plain; charset=utf-8'
{
"customTriggers": [
{
"id": "my-happy-hour-trigger",
"name": "Happy Hour 16:00-18:00"
},
{
"id": "my-digital-sale-trigger",
"name": "Digital products discount"
}
]
}