The Shipping Rates service plugin (formerly SPI) provides functionality for connecting your site to shipping rates providers not currently supported by Wix. You can also implement custom or external shipping rate options that don't come natively with Wix in your eCommerce purchase flows. These rates are displayed on your store's cart and checkout pages. For example, you're not limited to how Wix apps, such as Wix Stores and Wix Bookings, define the number of shipping providers to choose from.
Wix eCommerce calls the service plugin endpoint getShippingRates()
to retrieve the relevant shipping rates.
Learn more:
getConfig()
function in the -config.js file that is added to your site during step 1.getShippingRates()
function in the .js file that is added to your site during step 1.