> 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: wix-pricing-plans-frontend

## Namespace: checkout

## Article: Introduction

## Article Link: https://dev.wix.com/docs/velo/apis/wix-pricing-plans-frontend/checkout/introduction.md

## Article Content:

# Introduction
Use the Pricing Plans Checkout API to create online orders for [pricing plans](https://support.wix.com/en/article/pricing-plans-an-overview) from page code.


 ### Setup pricing plans

 To use APIs for checking out orders, first set up a site to:

 + Accept payments as described in [About Accepting Payments](https://support.wix.com/en/article/about-accepting-payments).
 + Offer membership plans as described in [About Pricing Plans](https://support.wix.com/en/article/about-pricing-plans). When setting up a site to accept pricing plans,
   define the plans you want to offer [using a Wix user's dashboard](https://support.wix.com/en/article/creating-a-plan-in-pricing-plans) or
   [using the Pricing Plan APIs](https://dev.wix.com/docs/velo/apis/wix-pricing-plans-backend/create-plan.md).


 ### Check out pricing plans

 Use the Checkout APIs to create orders and facilitate payment.

 The Checkout API allows you to:
 + Create online orders and facilitate their payment.
 + Create your own customized ordering process.

 Updating the properties of a pricing plan doesn't affect any current orders of the plan by site members.
 The existing orders retain their existing terms and pricing.

 Site members can order pricing plans in 2 ways:

 + **Online**. Site members order and pay for their plans on a site without manual intervention. This can also be done
   in [backend code](https://dev.wix.com/docs/velo/apis/wix-pricing-plans-backend/checkout/create-online-order.md).
 + **Offline**. Site members place their order by phone, text, or email. This can only be done
   in [backend code](https://dev.wix.com/docs/velo/apis/wix-pricing-plans-backend/checkout/create-offline-order.md).

 ### Drafts

 Orders created online are considered drafts until they're paid for. Drafts aren't listed in the Subscriptions
 dashboard page and aren't saved in the `Orders` collection.

 Offline orders are never considered drafts even if they're not yet paid for. Unlike online orders,
 offline orders are immediately listed in the Subscriptions dashboard page and saved in the `Orders` collection.


 ### Orders and subscriptions

 Actions related to basic pricing plan management are available from the [Pricing Plans](https://www.wix.com/my-account/site-selector/?buttonText=Select%20Site&title=Select%20a%20Site&autoSelectOnSingleSite=true&actionUrl=https:%2F%2Fwww.wix.com%2Fdashboard%2F%7B%7BmetaSiteId%7D%7D%2Fmembership%3FreferralInfo%3Dvelo-docs)
 page in a Wix user's dashboard. These actions correspond to the methods available in the Pricing Plans API.

 Every pricing plan order corresponds to a Wix subscription, including orders for single payment plans. You can see all orders from a site's
 [Subscriptions](https://www.wix.com/my-account/site-selector/?buttonText=Select%20Site&title=Select%20a%20Site&autoSelectOnSingleSite=true&actionUrl=https:%2F%2Fwww.wix.com%2Fdashboard%2F%7B%7BmetaSiteId%7D%7D%2Fsubscriptions%3FreferralInfo%3Dvelo-docs)
 page in a Wix user's dashboard. Actions available on this page correspond to the methods available in the [Orders APIs](https://dev.wix.com/docs/velo/apis/wix-pricing-plans-frontend/orders/introduction.md) and the [Checkout APIs](https://dev.wix.com/docs/velo/apis/wix-pricing-plans-frontend/checkout/introduction.md).

 > **Notes**:
 >
 > + Wix pricing plans are 1 type of Wix subscriptions available from the Subscriptions page. For example, the Subscriptions page also includes Wix Stores subscriptions and Wix Invoice subscriptions.
 >
 > + Pricing plans can be 1 of 3 different pricing models: `singlePaymentForDuration`, `singlePaymentUnlimited`, and `subscription`. Orders for all pricing plan models are displayed
     on the Subscriptions page, not just `subscription` type models. See Pricing Models ([SDK](https://dev.wix.com/docs/sdk/backend-modules/pricing-plans/introduction.md#pricing-models) | [Velo](https://dev.wix.com/docs/velo/apis/wix-pricing-plans-backend/introduction.md#apis_wix-pricing-plans-backend_pricing-models)) to learn more.

 ### Roles and permissions

 You need "Manage Pricing Plans" [permissions](https://support.wix.com/en/article/roles-permissions-accessing-roles-permissions) to perform pricing
 plan checkout methods.


 ### Import the APIs

 To use the Checkout API, import `checkout` from the `wix-pricing-plans-frontend` module.

   ```javascript
   import {checkout} from 'wix-pricing-plans-frontend';
   ```