Extension Config


The JSON object below defines the configuration for this service plugin extension. How you supply values depends on the framework you’re using:

  • Self-hosted apps: After adding a service plugin extension to your app in the app dashboard, provide configuration details in your extension's page. Learn more about how to add and configure a self-hosted service plugin extension with REST or the SDK.
  • CLI apps: Customize the configuration in your extension's <extension-name>.extension.ts file.
Note

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

Configuration Params
allItemsDiscountAllItemsDiscountConfig

Configuration details for discounts applied to all items in the catalog.


deploymentUristring

Base URI which Wix eCommerce will call to access Catalog service plugin endpoints. For example, to call the Get Catalog Items endpoint at https://my-external-catalog.com/get-catalog-items, the base URI you provide here is https://my-external-catalog.com.


specificItemsDiscountSpecificItemsDiscountConfig

Configuration details for discounts applied to specific items in the catalog.


supportedPurchaseTypesArray <string>beta

The purchase types this catalog's items support (one-time and/or subscription). Used by the discount-rule editor to offer only the purchase-type options relevant to this catalog. An empty list means no restriction is declared and all purchase types are offered.

Did this help?