POST

List Triggers


Developer Preview

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.

Endpoint
POST
{DEPLOYMENT-URI}/v1/list-triggers
Request
This endpoint does not take any parameters.
Response Object
customTriggersArray <CustomTrigger>

Custom triggers.

List custom triggers - decoded JWT

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.

Request
cURL
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'
Response
JSON
{ "customTriggers": [ { "id": "my-happy-hour-trigger", "name": "Happy Hour 16:00-18:00" }, { "id": "my-digital-sale-trigger", "name": "Digital products discount" } ] }
Did this help?