Extension Config

To configure and customize your service plugin, you need to provide important details in the plugin.json configuration file.

Note

If you created your service plugin extension with the CLI, required fields are automatically populated for you.

Configuration Params
deploymentUristring

Required. Base URI where the endpoints are called. Wix appends the endpoint path to the base URI. For example, to call the Get Eligible Triggers endpoint at https://my-discount-app.com/v1/getEligibleTriggers, the base URI you provide here is https://my-discount-app.com/.


Was this helpful?
Yes
No

listTriggers( )

Important: This is a handler function. Implement it only as part of the service plugin.


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.

Method Declaration
Copy
Method Parameters
payloadListTriggersEnvelope
Returns
Return Type:ListTriggersResponse | Promise<ListTriggersResponse>
Was this helpful?
Yes
No