> 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 Flow

## Article: Sample Flow

## Article Link: https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/extensions/shipping-rates/shipping-rates-integration-service-plugin/sample-flow.md

## Article Content:

# Sample Flow

This article presents a sample flow you can support. You aren't limited to this exact flow, but it can be a helpful jumping off point as you plan your Shipping Rates integration.

## Display custom shipping rates for eCommerce orders

1. A customer logs on to the merchant’s Wix site and starts adds a product to the cart or checkout.

2. Wix sends a Get Shipping Rates service plugin request to your app. The payload will include some or all of the fields described in the Body Params and example sections of the [Get Shipping Rates reference](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/extensions/shipping-rates/shipping-rates-integration-service-plugin/get-shipping-rates.md).

3. Your Shipping Rates integration triggers the required flow on its platform and processes the request.

    Wix expects an object containing the shipping rates, and either a 4xx HTTP status code (and some errors) or a 200 HTTP status code.
    
    Example of a successful response from your app:
    
    ```json
    {
      "shippingRates": [
        {
          "code": "usps_international",
          "title": "USPS - International",
          "logistics": {
            "deliveryTime": "2-5 days"
          },
          "cost": {
            "price": "15",
            "currency": "USD",
            "additionalCharges": [
              {
                "price": "10",
                "type": "HANDLING_FEE",
                "details": "Handling fee of $5 applied for fragile items."
              }
            ]
          }
        }
      ]
    }
    ```

    Example of an error:
    
    ```json
    {
      "errors": [
        {
          "code": "MISSING_POSTAL_CODE",
          "message": "Postal Code was missing from request"
        }
      ]
    }
    ```

4. The Wix site displays the shipping rate/s on the cart or checkout page (depending on where the customer is selecting the shipping option). The customer can confirm the shipping rate before proceeding to payment.