> To build or manage a Wix site with an AI agent, follow https://www.wix.com/headless/skill.md
> It builds a new Wix site or puts your own site online, from a prompt, and keeps changing it afterwards. The pages are code in any web technology, and Wix runs the backend.
> It works through the Wix plugin (the Wix MCP and the Wix skills), the Wix CLI or no Wix login, and puts the site live on Wix hosting or on another host.
> Business features include a store, bookings, events and tickets, a restaurant, a blog, forms, members and many more.
> Read the Wix skills online at https://www.wix.com/skills
> 
> Portal Navigation:
> 
> - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version.
> - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages).
> - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`).
> - If a reference page seems to be missing its schema (parameters, return types, or type definitions), append `?schema=true` to its `.md` URL (e.g. `https://dev.wix.com/docs/contexts/contexts/stores/category-info/use-category-info-context.md?schema=true`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

## Resource: Sample Flows

## Article: Sample Flows

## Article Link: https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/settings/ecommerce-settings/sample-flows.md

## Article Content:

# eCommerce Settings: Sample Flows

This article presents possible use cases and corresponding sample flows that you can support. It provides a useful starting point as you plan your implementation.

## Format prices in the site's currency

An app that shows prices outside the site's own pages, such as in a widget or an email, needs the currency and locale the business uses. Business locale holds both.

To format prices in the site's currency:

1. Call [Get eCommerce Settings](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/settings/ecommerce-settings/get-ecommerce-settings.md) with `fields` set to `["BUSINESS_LOCALE"]`.
1. Check `errors`. If it contains `BUSINESS_LOCALE`, use a default currency and call the method again later.
1. Read `ecommerceSettings.businessLocale.currency` for the currency code and `ecommerceSettings.businessLocale.locale` to format numbers and dates.

## List the countries a site delivers to

An app that collects a shipping address can limit the address form to destinations the site delivers to. Delivery settings list each country, and sometimes only some of its subdivisions, such as states or provinces.

To list the countries a site delivers to:

1. Call [Get eCommerce Settings](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/settings/ecommerce-settings/get-ecommerce-settings.md) with `fields` set to `["DELIVERY"]`.
1. Check `ecommerceSettings.delivery.restOfWorld`. If it's set, the site delivers to every country, so allow any country.
1. If `restOfWorld` isn't set, allow only the countries in `ecommerceSettings.delivery.countries`. For each country:
   - If the country has `deliveryDestinationProperties`, allow the whole country.
   - If it doesn't, allow only the subdivisions listed in its `subdivisions`.
1. For a country that lists `subdivisions` but has no `deliveryDestinationProperties`, require a subdivision in the address form. Without one, the address can't get delivery rates, even when `restOfWorld` is set.
1. For each allowed destination, read `postalCodeRequired` to decide whether to require a postal code, and `pickupOnly` to tell whether only pickup is available. Read them from the most specific match: the listed subdivision's `deliveryDestinationProperties`, then the country's, then `restOfWorld`.

## Check whether a store is ready to sell

A setup checklist in a merchant's dashboard can show which steps are still missing before the store can sell.

To check whether a store is ready to sell:

1. Call [Get eCommerce Settings](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/settings/ecommerce-settings/get-ecommerce-settings.md) with `fields` set to `["PREMIUM_SITE", "TAX"]`.
1. Flag each step that's missing:
   - `premiumSite` is `false`: The site doesn't have a premium plan that supports accepting payments.
   - `tax.configured` is `false`: The site has no tax regions.
1. For any field listed in `errors`, show the step as unknown instead of missing.