> 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

> **Deprecated.** This method is deprecated. Replaced by Cart V2 Update Current Cart. Replacement: https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/purchase-flow/cart-v2/update-current-cart.md Planned removal date: 2027-02-01.

# UpdateCurrentCart

# Package: purchaseFlow

# Namespace: CurrentCartService

# Method link: https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/purchase-flow/cart/update-current-cart.md

## Permission Scopes:
Manage eCommerce - all permissions: SCOPE.DC-ECOM-MEGA.MANAGE-ECOM

## Introduction

Updates the current site visitor's cart.

>**Notes:**
>+ When adding catalog line items, the `lineItems.catalogReference.appId` and `lineItems.catalogReference.catalogItemId` fields are required.
>+ This method requires [visitor or member authentication](https://dev.wix.com/docs/api-reference/articles/authentication/about-identities.md).
>+ After a cart is updated, call [Refresh Cart](https://dev.wix.com/docs/sdk/frontend-modules/ecom/refresh-cart.md) to update the cart's UI elements and trigger the Cart Updated event.

---

## REST API

### Schema

```
 Method: updateCurrentCart
 Description: Updates the current site visitor's cart.  >**Notes:** >+ When adding catalog line items, the `lineItems.catalogReference.appId` and `lineItems.catalogReference.catalogItemId` fields are required. >+ This method requires [visitor or member authentication](https://dev.wix.com/docs/api-reference/articles/authentication/about-identities.md). >+ After a cart is updated, call [Refresh Cart](https://dev.wix.com/docs/sdk/frontend-modules/ecom/refresh-cart.md) to update the cart's UI elements and trigger the Cart Updated event.
 URL: https://www.wixapis.com/ecom/v1/carts/current
 Method: PATCH
 # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present.
 Required parameters:  lineItems.catalogReference
 Method parameters: 
   param name: cartInfo | type: Cart | description: A shopping cart that holds items a buyer intends to purchase. Carts are converted to checkouts when the buyer proceeds to payment.  
        - name: buyerNote | type: string | description: [Buyer note](https://support.wix.com/en/article/collecting-and-viewing-buyer-notes) left by the customer.  | validation: maxLength 1000
        - name: buyerInfo | type: BuyerInfo | description: Buyer information.  
           - name: contactId | type: string | description: Contact GUID. For more information, see the Contacts API.  | validation: format GUID
           - name: email | type: string | description: Buyer email address.  | validation: format EMAIL
        - name: contactInfo | type: AddressWithContact | description: Contact info.  
           - name: address | type: Address | description: Address.  
              - name: country | type: string | description: Two-letter country code in [ISO-3166 alpha-2](https://www.iso.org/obp/ui/#search/code/) format.  | validation: format COUNTRY
              - name: subdivision | type: string | description: Code for a subdivision (such as state, prefecture, or province) in [ISO 3166-2](https://www.iso.org/standard/72483.html) format.  | validation: maxLength 50
              - name: city | type: string | description: City name.  | validation: maxLength 50
              - name: postalCode | type: string | description: Postal or zip code.  | validation: maxLength 50
              - name: streetAddress | type: StreetAddress | description: Street address.  
                 - name: number | type: string | description: Street number.  
                 - name: name | type: string | description: Street name.  
              - name: addressLine | type: string | description: Main address line (usually street name and number).  | validation: maxLength 150
              - name: addressLine2 | type: string | description: Free text providing more detailed address info. Usually contains apt, suite, floor.  | validation: maxLength 100
              - name: geocode | type: AddressLocation | description: Geocode object containing latitude and longitude coordinates.  
                 - name: latitude | type: number | description: Address latitude.  | validation: format double
                 - name: longitude | type: number | description: Address longitude.  | validation: format double
           - name: contactDetails | type: FullAddressContactDetails | description: Contact details.  
              - name: firstName | type: string | description: First name.  | validation: maxLength 100
              - name: lastName | type: string | description: Last name.  | validation: maxLength 100
              - name: phone | type: string | description: Phone number.  | validation: format PHONE
              - name: company | type: string | description: Company name.  | validation: maxLength 1000
              - name: vatId | type: VatId | description: Tax information (for Brazil only). If GUID is provided, `vatId.type` must also be set, `UNSPECIFIED` is not allowed.  
                 - name: id | type: string | description: Customer's tax GUID.  
                 - name: type | type: VatType | description: Tax type.  Supported values: + `CPF`: for individual tax payers + `CNPJ`: for corporations  
                         - enum:
                         -     UNSPECIFIED: 
                         -     CPF: CPF - for individual tax payers.
                         -     CNPJ: CNPJ - for corporations
        - name: overrideCheckoutUrl | type: string | description: `overrideCheckoutUrl` allows the flexibility to redirect customers to a customized checkout page.  This field overrides the `checkoutUrl` in a cart or checkout. `checkoutUrl` is used in the Abandoned Checkout API to send customers back to their checkouts. By default, a `checkoutUrl` generates for a checkout and directs to a standard Wix checkout page. When `overrideCheckoutUrl` has a value, it will replace and set the value of `checkoutUrl`.  | validation: maxLength 1000
        - name: selectedShippingOption | type: SelectedShippingOption | description: Selected shipping option.  
           - name: carrierId | type: string | description: Carrier GUID.  | validation: format GUID
           - name: code | type: string | description: Selected shipping option code. For example, "usps_std_overnight".  | validation: minLength 1, maxLength 100
        - name: extendedFields | type: ExtendedFields | description: Fields extended by data extensions  
           - name: namespaces | type: object | description: Extended field data. Each key corresponds to the namespace of the app that created the extended fields. The value of each key is structured according to the schema defined when the extended fields were configured.  You can only access fields for which you have the appropriate permissions.  Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields.md).  | validation: format map
        - name: businessLocationId | type: string | description: The business location GUID associated with the cart.  To learn more, see the Locations API.  | validation: format GUID
   param name: couponCode | type: couponCode | description: Coupon code. For more information, see the Coupons API.  
   param name: customLineItems | type: array<customLineItems> | description: Custom line items. Custom line items don't trigger the Catalog service plugin.  To access and manage custom line items, your app must have the permission scope named "Manage eCommerce - Admin Permissions". Learn more about [permission scopes](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/about-permissions.md).  | validation: maxItems 300
              - name: quantity | type: integer | description: Custom line item quantity.  Min: `1` Max: `100000`  | validation: minimum 1, maximum 100000
              - name: price | type: string | description: Custom line item price.  Must be a number or a decimal without symbols.  | validation: format DECIMAL_VALUE, decimalValue {"gte":"0","lte":"1000000000000000"}
              - name: priceDescription | type: PriceDescription | description: Additional description for the price. For example, when price is 0 but additional details about the actual price are needed - "Starts at $67".  
                 - name: original | type: string | description: __Required.__ Price description in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions.md#request-envelope).  | validation: minLength 1, maxLength 100
                 - name: translated | type: string | description: Price description translated into the buyer's language.  Default: Same as `original`.  | validation: minLength 1, maxLength 100
              - name: descriptionLines | type: array<DescriptionLine> | description: Custom line item description lines. Used for display purposes for the cart, checkout and order.  | validation: maxItems 10
                 - ONE-OF: 
                    - name: plainText | type: PlainTextValue | description: Description line plain text value.  
                       - name: original | type: string | description: Description line plain text value in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions.md#request-envelope).  | validation: maxLength 600
                       - name: translated | type: string | description: Description line plain text value translated into the buyer's language.  Default: Same as `original`.  | validation: maxLength 600
                    - name: colorInfo | type: Color | description: Description line color value.  
                       - name: original | type: string | description: Description line color name in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions.md#request-envelope).  | validation: maxLength 500
                       - name: translated | type: string | description: Description line color name translated into the buyer's language.  Default: Same as `original`.  | validation: maxLength 500
                       - name: code | type: string | description: HEX or RGB color code for display.  
                 - name: name | type: DescriptionLineName | description: Description line name.  
                    - name: original | type: string | description: Description line name in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions.md#request-envelope).  | validation: maxLength 100
                    - name: translated | type: string | description: Description line name translated into the buyer's language.  Default: Same as `original`.  | validation: maxLength 200
              - name: media | type: Image | description: Custom line item's media.  
                 - name: id | type: string | description: WixMedia image GUID.  
                 - name: height | type: integer | description: Original image height.  
                 - name: width | type: integer | description: Original image width.  
                 - name: altText | type: string | description: Image alt text. Optional.  
                 - name: filename | type: string | description: Image filename. Optional.  
              - name: taxGroupId | type: string | description: Tax group GUID for this custom line item.  | validation: format GUID
              - name: productName | type: ProductName | description: Name of the item or product.  
                 - name: original | type: string | description: __Required.__ Item name in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions.md#request-envelope).  Min: 1 character. Max: 200 characters.  | validation: minLength 1, maxLength 200
                 - name: translated | type: string | description: Item name translated into the buyer's language.  Min: 1 character. Max: 400 characters. Default: Same as `original`.  | validation: minLength 1, maxLength 400
              - name: url | type: PageUrlV2 | description: URL to the item's page on the site. When not provided, the link back from the cart page to the relevant product page will not work.  
                 - name: relativePath | type: string | description: The relative path for the page within the site. For example, `/product-page/a-product`.  
                 - name: url | type: string | description: The page's full URL. For example, `https://mysite.com/product-page/a-product`.  
              - name: itemType | type: ItemType | description: Item type. Either a preset type or custom.  
                 - ONE-OF: 
                    - name: preset | type: ItemTypePreset | description: Preset item type.  
                             - enum: UNRECOGNISED, PHYSICAL, DIGITAL, GIFT_CARD, SERVICE
                    - name: custom | type: string | description: Custom item type. When none of the preset types are suitable, specifies the custom type.  
              - name: fullPrice | type: string | description: Item price **before** catalog-defined discount. Defaults to `price` when not provided.  | validation: format DECIMAL_VALUE
              - name: quantityAvailable | type: integer | description: Item quantity available for purchase. Only return this if inventory is managed. Not returning this field means that the buyer can "infinitely" tick up the number of items in the cart.  | validation: minimum 0, maximum 100000, format int32
              - name: physicalProperties | type: PhysicalProperties | description: Physical properties of the item.  
                 - name: weight | type: number | description: Line item weight. Measurement unit matches the weight unit specified in `weightUnit` in the request.  | validation: format double
                 - name: sku | type: string | description: Stock-keeping unit. Learn more about [SKUs](https://www.wix.com/encyclopedia/definition/stock-keeping-unit-sku).  | validation: maxLength 40
                 - name: shippable | type: boolean | description: Whether this line item is shippable.  
                 - name: productDimensions | type: Dimensions | description: Product dimensions (length, width, height of the physical product).  
                    - name: length | type: string | description: Length. Measurement unit is handled at the system level (metric/imperial).  | validation: decimalValue {"gte":"0","lte":"999999999","maxScale":6}
                    - name: width | type: string | description: Width. Measurement unit is handled at the system level (metric/imperial).  | validation: decimalValue {"gte":"0","lte":"999999999","maxScale":6}
                    - name: height | type: string | description: Height. Measurement unit is handled at the system level (metric/imperial).  | validation: decimalValue {"gte":"0","lte":"999999999","maxScale":6}
                    - name: unit | type: DimensionsUnit | description: Unit of measurement for dimensions (length, width, height).  
                             - enum:
                             -     UNKNOWN_DIMENSIONS_UNIT: 
                             -     MM: Millimeters.
                             -     CM: Centimeters.
                             -     M: Meters.
                             -     IN: Inches.
                             -     FT: Feet.
                             -     YD: Yards.
                 - name: packageDimensions | type: Dimensions | description: Package dimensions (length, width, height of the shipping package).  
              - name: paymentOption | type: PaymentOptionType | description: Type of selected payment option for current item. Defaults to `FULL_PAYMENT_ONLINE`.  + `FULL_PAYMENT_ONLINE` - Entire payment for this item happens as part of the checkout. + `FULL_PAYMENT_OFFLINE` - Entire payment for this item happens after the checkout. For example, when using cash, check, or other offline payment methods. + `MEMBERSHIP` - Payment for this item is done by charging a membership. When this option is used, `lineItem.price.amount` is 0. + `DEPOSIT_ONLINE` -  Partial payment for the given item to be paid upfront during the checkout. Amount to be paid is defined by deposit_amount field.  
                     - enum:
                     -     FULL_PAYMENT_ONLINE: The entire payment for this item happens as part of the checkout.
                     -     FULL_PAYMENT_OFFLINE: The entire payment for this item happens after checkout. For example, when using cash, check, or other offline payment methods.
                     -     MEMBERSHIP: Payment for this item is done by charging a membership. Any remaining amount not covered by the membership, such as item modifiers, is paid online.
                     -     DEPOSIT_ONLINE: Partial payment to be paid upfront during checkout. The initial amount to be paid for each line item is specified in `depositAmount`.
                     -     MEMBERSHIP_OFFLINE: Payment for this item can only be done by charging a membership and must be manually redeemed in the dashboard by the site admin. When selected, `price` is `0`.
                     -     MEMBERSHIP_ONLINE_WITH_OFFLINE_REMAINDER: Item price is charged to online membership. Any remaining amount not covered by the membership, such as item modifiers, is paid offline.
              - name: serviceProperties | type: ServiceProperties | description: Service properties. When relevant, this contains information such as date and number of participants. Used, among other things, when checking for valid memberships.  
                 - name: scheduledDate | type: string | description: Date and time the service is to be provided, in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format. For example, the start time of a class.  | validation: format date-time
                 - name: numberOfParticipants | type: integer | description: The number of people participating in the service. For example, the number of people attending a class or the number of people per hotel room.  | validation: minimum 1, maximum 10000, format int32
              - name: rootCatalogItemId | type: string | description: In cases where `catalogReference.catalogItemId` is NOT the actual catalog item GUID, this field will return the true item's GUID.  + For example, for Wix Bookings, `catalogReference.catalogItemId` is the booking GUID. Therefore this value is set to the service GUID. + In most cases, this field is the same as `catalogReference.catalogItemId`. + Used in membership validation.  | validation: minLength 1, maxLength 36
              - name: depositAmount | type: string | description: Partial payment for the given item to be paid upfront during the checkout.  Eligible for catalog items with type `DEPOSIT_ONLINE`. When omitted, the item's price will not be split and is expected to be paid in a single installment.  | validation: format DECIMAL_VALUE
              - name: deliveryProfileId | type: string | description: Delivery profile GUID.  | validation: format GUID
              - name: catalogReference | type: CatalogReference | description: Catalog and item reference. Includes GUIDs for the item and the catalog it came from, as well as further optional info. Optional for custom line items, which don't trigger the Catalog service plugin.  
                 - name: catalogItemId | type: string | description: GUID of the item within the catalog it belongs to.  | validation: minLength 1, maxLength 36
                 - name: appId | type: string | description: GUID of the app providing the catalog.  You can get your app's GUID from its page in the [app dashboard](https://dev.wix.com/dc3/my-apps/).  For items from Wix catalogs, the following values always apply: + Wix Stores: `"215238eb-22a5-4c36-9e7b-e7c08025e04e"` + Wix Bookings: `"13d21c63-b5ec-5912-8397-c3a5ddb27a97"` + Wix Restaurants: `"9a5d83fd-8570-482e-81ab-cfa88942ee60"`  | validation: minLength 1
                 - name: options | type: object | description: Additional item details in `key:value` pairs.  Use this optional field for more specificity with item selection. The values of the `options` field differ depending on which catalog is providing the items.  For Wix Stores products, learn more about integrating with [Catalog V3](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/e-commerce-integration.md) or [Catalog V1](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v1/catalog/e-commerce-integration.md), depending on [the version the site uses](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-versioning/introduction.md).  
              - name: priceUndetermined | type: boolean | description: Whether the price is not yet defined, and will be updated after the order is created.  Default: `false`  
              - name: fixedQuantity | type: boolean | description: Whether the line item quantity is fixed and cannot be changed.  Default: `false`  
              - name: policies | type: array<Policy> | description: Policies to be displayed to the customer on the checkout page.  | validation: maxItems 5
                 - name: title | type: string | description: Policy title - should be translated  | validation: minLength 1, maxLength 29
                 - name: content | type: string | description: Policy content - should be translated  | validation: minLength 1, maxLength 3000
              - name: membersOnly | type: boolean | description: Whether the item can only be purchased by site members.  Default: `false`  
              - name: taxableAddress | type: TaxableAddress | description: Address to use for tax calculation purposes.  
                 - ONE-OF: 
                    - name: addressType | type: TaxableAddressType | description: taxable address type. if this field is selected, the address is automatically resolved, and the tax is calculated accordingly.  
                             - enum: BUSINESS, BILLING, SHIPPING
              - name: modifierGroups | type: array<ModifierGroup> | description: Modifier groups that were added to the item.  | validation: maxItems 25
                 - name: id | type: string | description: Modifier group GUID.  | validation: minLength 1, maxLength 36
                 - name: name | type: TranslatableString | description: Modifier group name.  
                    - name: original | type: string | description: __Required.__ String in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions.md#request-envelope).  Min: 1 character. Max: 200 characters.  | validation: minLength 1, maxLength 200
                    - name: translated | type: string | description: String translated into the buyer's language.  Min: 1 character. Max: 400 characters. Default: Same as `original`.  | validation: minLength 1, maxLength 400
                 - name: modifiers | type: array<ItemModifier> | description: List of modifiers in this group.  | validation: minItems 1, maxItems 25
                    - name: id | type: string | description: Modifier GUID.  | validation: minLength 1, maxLength 36
                    - name: quantity | type: integer | description: The quantity of this modifier.  | validation: minimum 1, maximum 100000, format int32
                    - name: label | type: TranslatableString | description: Primary display label for the modifier.  
                    - name: details | type: TranslatableString | description: Additional details.  
                    - name: price | type: string | description: The price of the modifier.  | validation: decimalValue {"gte":"0","lte":"1000000000000000","maxScale":3}
   param name: lineItems | type: array<lineItems> | description: Catalog line items.  | validation: maxItems 300
              - name: quantity | type: integer | description: Item quantity.  | validation: minimum 1, maximum 100000
              - name: catalogReference | type: CatalogReference | description: Catalog and item reference. Holds GUIDs for the item and the catalog it came from, as well as further optional info. Optional for custom line items, which don't trigger the Catalog service plugin. | required: true 
              - name: selectedMembership | type: SelectedMembership | description: Selected membership to be used as payment for this item. Must be used with `lineItem.paymentOption` set to `MEMBERSHIP` or `MEMBERSHIP_OFFLINE`. This field can be empty when `lineItem.paymentOption` is set to `MEMBERSHIP_OFFLINE`.  
                 - name: id | type: string | description: Membership GUID.  | validation: minLength 1, maxLength 100
                 - name: appId | type: string | description: GUID of the app providing this payment option.  | validation: format GUID
              - name: catalogOverrideFields | type: CatalogOverrideFields | description: Overriding values for catalog item properties.  To override catalog fields, your app must have the permission scope named "Manage eCommerce - Admin Permissions". Learn more about [permission scopes](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/about-permissions.md).  
                 - name: productName | type: ProductName | description: Item name.  
                 - name: price | type: string | description: Item price **after** discounts.  | validation: decimalValue {"gte":"0","lte":"999999999","maxScale":3}
                 - name: fullPrice | type: string | description: Item price **before** discounts.  | validation: decimalValue {"gte":"0","lte":"999999999","maxScale":3}
                 - name: descriptionLines | type: array<DescriptionLine> | description: Item description lines. Used when displaying the line item to customers.  | validation: minItems 0, maxItems 20
                 - name: physicalProperties | type: PhysicalProperties | description: Physical properties of the item.  
                 - name: image | type: Image | description: Item image.  
                 - name: paymentOption | type: PaymentOption | description: Payment method selected for the item.  
                    - name: value | type: PaymentOptionType | description: Type of selected payment option for current item.  Default: `FULL_PAYMENT_ONLINE`  
                 - name: depositAmount | type: string | description: Only eligible for catalog items with `lineItem.paymentOption.value` type of `DEPOSIT_ONLINE`.  | validation: format DECIMAL_VALUE, decimalValue {"gt":"0","lte":"999999999","maxScale":3}
                 - name: savePaymentMethod | type: boolean | description: Whether to save the payment method on the order.  Default: `false`  
                 - name: inventoryAppId | type: string | description: GUID of the app managing the inventory.  | validation: format GUID
                 - name: fixedQuantity | type: boolean | description: Whether the line item quantity is fixed and can't be changed. When not set, falls back to the value from the catalog.  
              - name: taxableAddress | type: TaxableAddress | description: Address to use for tax calculation purposes.  
              - name: extendedFields | type: ExtendedFields | description: Custom extended fields for the line item object.  [Extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields.md) must be configured using the 'Checkout & Orders - Line Items Schema Plugin' in the app dashboard before they can be accessed with API calls.  
 Return type: UpdateCartResponse
  - name: cart | type: Cart | description: Updated Cart.  
     - name: id | type: string | description: Cart GUID.  | read-only: true | validation: format GUID
     - name: lineItems | type: array<LineItem> | description: Line items.  | read-only: true | validation: minItems 1, maxItems 300
        - name: id | type: string | description: Line item GUID.  | read-only: true | validation: format GUID
        - name: quantity | type: integer | description: Item quantity.  | validation: minimum 1, maximum 100000
        - name: catalogReference | type: CatalogReference | description: Catalog and item reference. Holds GUIDs for the item and the catalog it came from, as well as further optional info. Optional for custom line items, which don't trigger the Catalog service plugin.  
           - name: catalogItemId | type: string | description: GUID of the item within the catalog it belongs to.  | validation: minLength 1, maxLength 36
           - name: appId | type: string | description: GUID of the app providing the catalog.  You can get your app's GUID from its page in the [app dashboard](https://dev.wix.com/dc3/my-apps/).  For items from Wix catalogs, the following values always apply: + Wix Stores: `"215238eb-22a5-4c36-9e7b-e7c08025e04e"` + Wix Bookings: `"13d21c63-b5ec-5912-8397-c3a5ddb27a97"` + Wix Restaurants: `"9a5d83fd-8570-482e-81ab-cfa88942ee60"`  | validation: minLength 1
           - name: options | type: object | description: Additional item details in `key:value` pairs.  Use this optional field for more specificity with item selection. The values of the `options` field differ depending on which catalog is providing the items.  For Wix Stores products, learn more about integrating with [Catalog V3](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/e-commerce-integration.md) or [Catalog V1](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v1/catalog/e-commerce-integration.md), depending on [the version the site uses](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-versioning/introduction.md).  
        - name: productName | type: ProductName | description: Item name. + Stores - `product.name` + Bookings - `service.info.name` + Events - `ticket.name`  | read-only: true 
           - name: original | type: string | description: __Required.__ Item name in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions.md#request-envelope).  Min: 1 character. Max: 200 characters.  | validation: minLength 1, maxLength 200
           - name: translated | type: string | description: Item name translated into the buyer's language.  Min: 1 character. Max: 400 characters. Default: Same as `original`.  | validation: minLength 1, maxLength 400
        - name: url | type: PageUrlV2 | description: URL to the item's page on the site.  | read-only: true 
           - name: relativePath | type: string | description: The relative path for the page within the site. For example, `/product-page/a-product`.  
           - name: url | type: string | description: The page's full URL. For example, `https://mysite.com/product-page/a-product`.  
        - name: price | type: MultiCurrencyPrice | description: Item price **after** catalog-defined discount and line item discounts.  | read-only: true 
           - name: amount | type: string | description: Amount.  | validation: decimalValue {"gte":"0","lte":"1000000000000000"}
           - name: convertedAmount | type: string | description: Converted amount.  | read-only: true | validation: decimalValue {"gte":"0","lte":"1000000000000000"}
           - name: formattedAmount | type: string | description: Amount formatted with currency symbol.  | read-only: true 
           - name: formattedConvertedAmount | type: string | description: Converted amount formatted with currency symbol.  | read-only: true 
        - name: fullPrice | type: MultiCurrencyPrice | description: Item price **before** catalog-defined discount. Defaults to `price` when not provided.  | read-only: true 
        - name: priceBeforeDiscounts | type: MultiCurrencyPrice | description: Item price **before** line item discounts and **after** catalog-defined discount. Defaults to `price` when not provided.  | read-only: true 
        - name: lineItemPrice | type: MultiCurrencyPrice | description: Total price **after** catalog-defined discount and line item discounts.  | read-only: true 
        - name: descriptionLines | type: array<DescriptionLine> | description: Line item description lines. Used for displaying the cart, checkout and order.  | read-only: true 
           - ONE-OF: 
              - name: plainText | type: PlainTextValue | description: Description line plain text value.  
                 - name: original | type: string | description: Description line plain text value in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions.md#request-envelope).  | validation: maxLength 600
                 - name: translated | type: string | description: Description line plain text value translated into the buyer's language.  Default: Same as `original`.  | validation: maxLength 600
              - name: colorInfo | type: Color | description: Description line color value.  
                 - name: original | type: string | description: Description line color name in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions.md#request-envelope).  | validation: maxLength 500
                 - name: translated | type: string | description: Description line color name translated into the buyer's language.  Default: Same as `original`.  | validation: maxLength 500
                 - name: code | type: string | description: HEX or RGB color code for display.  
           - name: name | type: DescriptionLineName | description: Description line name.  
              - name: original | type: string | description: Description line name in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions.md#request-envelope).  | validation: maxLength 100
              - name: translated | type: string | description: Description line name translated into the buyer's language.  Default: Same as `original`.  | validation: maxLength 200
        - name: image | type: Image | description: Line item image details.  | read-only: true 
           - name: id | type: string | description: WixMedia image GUID.  
           - name: url | type: string | description: Image URL.  
           - name: height | type: integer | description: Original image height.  | read-only: true 
           - name: width | type: integer | description: Original image width.  | read-only: true 
           - name: altText | type: string | description: Image alt text.  
           - name: filename | type: string | description: Image filename.  | read-only: true 
        - name: availability | type: ItemAvailabilityInfo | description: Item availability details.  | read-only: true 
           - name: status | type: ItemAvailabilityStatus | description: Item availability status.  
                 - enum:
                 -     AVAILABLE: 
                 -     NOT_FOUND: Item does not exist.
                 -     NOT_AVAILABLE: Item is not in stock.
                 -     PARTIALLY_AVAILABLE: Available quantity is less than requested.
           - name: quantityAvailable | type: integer | description: Quantity available.  | validation: format int32
        - name: physicalProperties | type: PhysicalProperties | description: Physical properties of the item. When relevant, contains information such as SKU, item weight, and shippability.  | read-only: true 
           - name: weight | type: number | description: Line item weight. Measurement unit matches the weight unit specified in `weightUnit` in the request.  | validation: format double
           - name: sku | type: string | description: Stock-keeping unit. Learn more about [SKUs](https://www.wix.com/encyclopedia/definition/stock-keeping-unit-sku).  | validation: maxLength 40
           - name: shippable | type: boolean | description: Whether this line item is shippable.  
           - name: productDimensions | type: Dimensions | description: Product dimensions (length, width, height of the physical product).  
              - name: length | type: string | description: Length. Measurement unit is handled at the system level (metric/imperial).  | validation: decimalValue {"gte":"0","lte":"999999999","maxScale":6}
              - name: width | type: string | description: Width. Measurement unit is handled at the system level (metric/imperial).  | validation: decimalValue {"gte":"0","lte":"999999999","maxScale":6}
              - name: height | type: string | description: Height. Measurement unit is handled at the system level (metric/imperial).  | validation: decimalValue {"gte":"0","lte":"999999999","maxScale":6}
              - name: unit | type: DimensionsUnit | description: Unit of measurement for dimensions (length, width, height).  
                     - enum:
                     -     UNKNOWN_DIMENSIONS_UNIT: 
                     -     MM: Millimeters.
                     -     CM: Centimeters.
                     -     M: Meters.
                     -     IN: Inches.
                     -     FT: Feet.
                     -     YD: Yards.
           - name: packageDimensions | type: Dimensions | description: Package dimensions (length, width, height of the shipping package).  
        - name: itemType | type: ItemType | description: Item type. Either a preset type or custom.  | read-only: true 
           - ONE-OF: 
              - name: preset | type: ItemTypePreset | description: Preset item type.  
                     - enum: UNRECOGNISED, PHYSICAL, DIGITAL, GIFT_CARD, SERVICE
              - name: custom | type: string | description: Custom item type. When none of the preset types are suitable, specifies the custom type.  
        - name: subscriptionOptionInfo | type: SubscriptionOptionInfo | description: Subscription option information.  | read-only: true 
           - name: subscriptionSettings | type: SubscriptionSettings | description: Subscription option settings.  
              - name: frequency | type: SubscriptionFrequency | description: Frequency of recurring payment.  
                     - enum: UNDEFINED, DAY, WEEK, MONTH, YEAR
              - name: interval | type: integer | description: Interval of recurring payment.  Default: `1`. If SubscriptionFrequency is Day the minimum interval is 7  | validation: minimum 1, maximum 3650, format int32
              - name: autoRenewal | type: boolean | description: Whether subscription is renewed automatically at the end of each period.  
              - name: billingCycles | type: integer | description: Number of billing cycles before subscription ends. Ignored if `autoRenewal` is `true`.  | validation: minimum 1, format int32
              - name: enableCustomerCancellation | type: boolean | description: Whether to allow the customer to cancel the subscription.  
              - name: freeTrialPeriod | type: FreeTrialPeriod | description: Period until first cycle starts. If applied payNow will be 0 If None => no free trial  
                 - name: frequency | type: SubscriptionFrequency | description: Frequency of period. Values: DAY, WEEK, MONTH, YEAR  
                 - name: interval | type: integer | description: Number of frequency units in the free trial period. For example, frequency `MONTH` with interval `3` means a 3-month free trial.  | validation: minimum 1, maximum 999
              - name: startDate | type: string | description: Date and time the subscription starts.  The first charge happens when the order is placed. When `freeTrialPeriod` is set, the first charge happens when the free trial ends.  | validation: format date-time
              - name: billingSettings | type: BillingSettings | description: Billing configuration for recurring charges.  
                 - name: anchorDay | type: integer | description: Day of the month that recurring charges fall on. For example, `15` to charge on the 15th of each month.  Used only when the subscription's `frequency` is `MONTH` and `interval` is `1`.  | validation: minimum 1, maximum 28, format int32
              - name: cyclePriceOverrides | type: array<CyclePriceOverride> | description: Unit prices for specified billing cycles of the subscription. Cycles that no entry covers are charged the item's `price`.  When `billingCycles` is set, every entry must end on or before the last billing cycle.  | validation: maxItems 1
                 - name: cycleFrom | type: integer | description: __Required.__ First billing cycle the price applies to. The first paid cycle of the subscription is `1`. A free trial period, if any, is cycle `0`.  | validation: minimum 1, maximum 1
                 - name: numberOfCycles | type: integer | description: __Required.__ Number of consecutive billing cycles the price applies to, starting at `cycleFrom`.  | validation: minimum 1, maximum 1, format int32
                 - name: price | type: string | description: __Required.__ Unit price for the cycles this entry covers, in the item's currency. Can be higher than, lower than, or equal to the item's `price`.  | validation: decimalValue {"gte":"0","lte":"1000000000000000","maxScale":4}
           - name: title | type: Title | description: Subscription option title.  
              - name: original | type: string | description: Subscription option name in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions.md#request-envelope).  | validation: minLength 1, maxLength 150
              - name: translated | type: string | description: Subscription option name translated into the buyer's language.  Default: Same as `original`.  | validation: minLength 1, maxLength 150
           - name: description | type: Description | description: Subscription option description.  
              - name: original | type: string | description: Subscription option description.  | validation: maxLength 500
              - name: translated | type: string | description: Translated subscription option description.  | validation: maxLength 500
        - name: paymentOption | type: PaymentOptionType | description: Type of selected payment option for current item.  Default: `FULL_PAYMENT_ONLINE`  | read-only: true 
             - enum:
             -     FULL_PAYMENT_ONLINE: The entire payment for this item happens as part of the checkout.
             -     FULL_PAYMENT_OFFLINE: The entire payment for this item happens after checkout. For example, when using cash, check, or other offline payment methods.
             -     MEMBERSHIP: Payment for this item is done by charging a membership. Any remaining amount not covered by the membership, such as item modifiers, is paid online.
             -     DEPOSIT_ONLINE: Partial payment to be paid upfront during checkout. The initial amount to be paid for each line item is specified in `depositAmount`.
             -     MEMBERSHIP_OFFLINE: Payment for this item can only be done by charging a membership and must be manually redeemed in the dashboard by the site admin. When selected, `price` is `0`.
             -     MEMBERSHIP_ONLINE_WITH_OFFLINE_REMAINDER: Item price is charged to online membership. Any remaining amount not covered by the membership, such as item modifiers, is paid offline.
        - name: serviceProperties | type: ServiceProperties | description: Service properties. When relevant, this contains information such as date and number of participants.  | read-only: true 
           - name: scheduledDate | type: string | description: Date and time the service is to be provided, in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format. For example, the start time of a class.  | validation: format date-time
           - name: numberOfParticipants | type: integer | description: The number of people participating in the service. For example, the number of people attending a class or the number of people per hotel room.  | validation: minimum 1, maximum 10000, format int32
        - name: rootCatalogItemId | type: string | description: In cases where `catalogReference.catalogItemId` is NOT the actual catalog item GUID, this field will return the true item's GUID. + For example, for Wix Bookings, `catalogReference.catalogItemId` is the booking GUID. Therefore this value is set to the service GUID. + in most cases, this field is the same as `catalogReference.catalogItemId`. + Used in membership validation.  | read-only: true | validation: minLength 1, maxLength 36
        - name: priceDescription | type: PriceDescription | description: Additional description for the price. For example, when price is 0 but additional details about the actual price are needed - "Starts at $67".  | read-only: true 
           - name: original | type: string | description: __Required.__ Price description in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions.md#request-envelope).  | validation: minLength 1, maxLength 100
           - name: translated | type: string | description: Price description translated into the buyer's language.  Default: Same as `original`.  | validation: minLength 1, maxLength 100
        - name: depositAmount | type: MultiCurrencyPrice | description: Partial payment to be paid upfront during the checkout. Eligible for catalog items with `lineItem.paymentOption` type `DEPOSIT_ONLINE` only.  | read-only: true 
        - name: selectedMembership | type: SelectedMembership | description: Selected membership to be used as payment for this item. Must be used with `lineItem.paymentOption` set to `MEMBERSHIP` or `MEMBERSHIP_OFFLINE`. This field can be empty when `lineItem.paymentOption` is set to `MEMBERSHIP_OFFLINE`.  
           - name: id | type: string | description: Membership GUID.  | validation: minLength 1, maxLength 100
           - name: appId | type: string | description: GUID of the app providing this payment option.  | validation: format GUID
        - name: deliveryProfileId | type: string | description: Delivery profile GUID.  | read-only: true | validation: format GUID
        - name: taxGroupId | type: string | description: Tax group GUID for this line item.  | read-only: true | validation: format GUID
        - name: customLineItem | type: boolean | description: Whether the line item is a custom line item. Custom line items don't trigger the Catalog service plugin.  | read-only: true 
        - name: consentRequiredPaymentPolicy | type: string | description: Item payment policy that requires customer consent to complete purchase. The payment policy will be displayed on the checkout page.  | read-only: true | validation: minLength 1, maxLength 2500
        - name: priceUndetermined | type: boolean | description: Whether the price is not yet defined, and will be updated after the order is created.  | read-only: true 
        - name: fixedQuantity | type: boolean | description: Whether the line item quantity is fixed and cannot be changed.  | read-only: true 
        - name: catalogOverrideFields | type: CatalogOverrideFields | description: Overriding values for catalog item properties.  To override catalog fields, your app must have the permission scope named "Manage eCommerce - Admin Permissions". Learn more about [permission scopes](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/about-permissions.md).  
           - name: productName | type: ProductName | description: Item name.  
           - name: price | type: string | description: Item price **after** discounts.  | validation: decimalValue {"gte":"0","lte":"999999999","maxScale":3}
           - name: fullPrice | type: string | description: Item price **before** discounts.  | validation: decimalValue {"gte":"0","lte":"999999999","maxScale":3}
           - name: descriptionLines | type: array<DescriptionLine> | description: Item description lines. Used when displaying the line item to customers.  | validation: minItems 0, maxItems 20
           - name: physicalProperties | type: PhysicalProperties | description: Physical properties of the item.  
           - name: image | type: Image | description: Item image.  
              - name: id | type: string | description: WixMedia image GUID.  
              - name: height | type: integer | description: Original image height.  
              - name: width | type: integer | description: Original image width.  
              - name: altText | type: string | description: Image alt text. Optional.  
              - name: filename | type: string | description: Image filename. Optional.  
           - name: paymentOption | type: PaymentOption | description: Payment method selected for the item.  
              - name: value | type: PaymentOptionType | description: Type of selected payment option for current item.  Default: `FULL_PAYMENT_ONLINE`  
           - name: depositAmount | type: string | description: Only eligible for catalog items with `lineItem.paymentOption.value` type of `DEPOSIT_ONLINE`.  | validation: format DECIMAL_VALUE, decimalValue {"gt":"0","lte":"999999999","maxScale":3}
           - name: savePaymentMethod | type: boolean | description: Whether to save the payment method on the order.  Default: `false`  
           - name: inventoryAppId | type: string | description: GUID of the app managing the inventory.  | validation: format GUID
           - name: fixedQuantity | type: boolean | description: Whether the line item quantity is fixed and can't be changed. When not set, falls back to the value from the catalog.  
        - name: savePaymentMethod | type: boolean | description: Whether to save the payment method on the order.  Default: `false`  | read-only: true 
        - name: taxableAddress | type: TaxableAddress | description: Address to use for tax calculation purposes.  
           - ONE-OF: 
              - name: addressType | type: TaxableAddressType | description: taxable address type. if this field is selected, the address is automatically resolved, and the tax is calculated accordingly.  
                     - enum: BUSINESS, BILLING, SHIPPING
        - name: extendedFields | type: ExtendedFields | description: Custom extended fields for the line item object.  [Extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields.md) must be configured using the 'Checkout & Orders - Line Items Schema Plugin' in the app dashboard before they can be accessed with API calls.  
           - name: namespaces | type: object | description: Extended field data. Each key corresponds to the namespace of the app that created the extended fields. The value of each key is structured according to the schema defined when the extended fields were configured.  You can only access fields for which you have the appropriate permissions.  Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields.md).  | validation: format map
        - name: policies | type: array<Policy> | description: Policies to be displayed to the customer on the checkout page.  | read-only: true | validation: maxItems 5
           - name: title | type: string | description: Policy title - should be translated  | validation: minLength 1, maxLength 29
           - name: content | type: string | description: Policy content - should be translated  | validation: minLength 1, maxLength 3000
        - name: membersOnly | type: boolean | description: Whether the item can only be purchased by site members.  Default: `false`  | read-only: true 
        - name: modifierGroups | type: array<ModifierGroup> | description: Modifier groups that were added to the item.  | read-only: true | validation: maxItems 25
           - name: id | type: string | description: Modifier group GUID.  | validation: minLength 1, maxLength 36
           - name: name | type: TranslatableString | description: Modifier group name.  
              - name: original | type: string | description: __Required.__ String in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions.md#request-envelope).  Min: 1 character. Max: 200 characters.  | validation: minLength 1, maxLength 200
              - name: translated | type: string | description: String translated into the buyer's language.  Min: 1 character. Max: 400 characters. Default: Same as `original`.  | validation: minLength 1, maxLength 400
           - name: modifiers | type: array<ItemModifier> | description: List of modifiers in this group.  | validation: minItems 1, maxItems 25
              - name: id | type: string | description: Modifier GUID.  | validation: minLength 1, maxLength 36
              - name: quantity | type: integer | description: The quantity of this modifier.  | validation: minimum 1, maximum 100000, format int32
              - name: label | type: TranslatableString | description: Primary display label for the modifier.  
              - name: details | type: TranslatableString | description: Additional details.  
              - name: price | type: MultiCurrencyPrice | description: The price of the modifier.  
        - name: modifiersTotalPrice | type: MultiCurrencyPrice | description: Total price of all item modifiers. Included in the item price.  | read-only: true 
     - name: buyerNote | type: string | description: [Buyer note](https://support.wix.com/en/article/collecting-and-viewing-buyer-notes) left by the customer.  | validation: maxLength 1000
     - name: buyerInfo | type: BuyerInfo | description: Buyer information.  
        - ONE-OF: 
           - name: visitorId | type: string | description: Visitor GUID. If the buyer is **not** a site member.  | read-only: true | validation: format GUID
           - name: memberId | type: string | description: Member GUID. If the buyer is a site member.  | read-only: true | validation: format GUID
           - name: userId | type: string | description: User GUID. If the buyer, or cart owner, is a Wix user.  | read-only: true | validation: format GUID
        - name: contactId | type: string | description: Contact GUID. For more information, see the Contacts API.  | validation: format GUID
        - name: email | type: string | description: Buyer email address.  | validation: format EMAIL
     - name: currency | type: string | description: The site’s default currency, in three-letter [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format. This represents the base currency configured for the site and remains constant regardless of the customer’s currency selection.  | read-only: true | validation: format CURRENCY
     - name: conversionCurrency | type: string | description: The currency [selected by the customer](https://support.wix.com/en/article/multicurrency-an-overview) during the purchase flow, in three-letter [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.  This reflects the customer’s preferred display currency and may differ from the site’s default currency. When no specific currency is selected by the customer, this matches the `currency` property.  | read-only: true | validation: format CURRENCY
     - name: buyerLanguage | type: string | description: Language for communication with the buyer. Defaults to the site language.  For a site that supports multiple languages, this is the language the buyer selected.  | read-only: true 
     - name: siteLanguage | type: string | description: Site language in which original values are displayed.  | read-only: true 
     - name: taxIncludedInPrices | type: boolean | description: Whether tax is included in line item prices.  | read-only: true 
     - name: weightUnit | type: WeightUnit | description: Weight measurement unit - defaults to site's weight unit.  | read-only: true 
         - enum:
         -     UNSPECIFIED_WEIGHT_UNIT: Weight unit can't be classified due to an error.
         -     KG: Kilograms.
         -     LB: Pounds.
     - name: checkoutId | type: string | description: GUID of the checkout that originated from this cart.  | read-only: true | validation: format GUID
     - name: appliedDiscounts | type: array<CartDiscount> | description: Cart discounts.  | read-only: true 
        - ONE-OF: 
           - name: coupon | type: Coupon | description: Coupon details.  
              - name: id | type: string | description: Coupon GUID.  
              - name: code | type: string | description: Coupon code.  
           - name: merchantDiscount | type: MerchantDiscount | description: Merchant discount.  
              - name: amount | type: MultiCurrencyPrice | description: Discount value.  
     - name: createdDate | type: string | description: Date and time the cart was created.  | read-only: true | validation: format date-time
     - name: updatedDate | type: string | description: Date and time the cart was updated.  | read-only: true | validation: format date-time
     - name: contactInfo | type: AddressWithContact | description: Contact info.  
        - name: address | type: Address | description: Address.  
           - name: country | type: string | description: Two-letter country code in [ISO-3166 alpha-2](https://www.iso.org/obp/ui/#search/code/) format.  | validation: format COUNTRY
           - name: subdivision | type: string | description: Code for a subdivision (such as state, prefecture, or province) in [ISO 3166-2](https://www.iso.org/standard/72483.html) format.  | validation: maxLength 50
           - name: city | type: string | description: City name.  | validation: maxLength 50
           - name: postalCode | type: string | description: Postal or zip code.  | validation: maxLength 50
           - name: streetAddress | type: StreetAddress | description: Street address.  
              - name: number | type: string | description: Street number.  
              - name: name | type: string | description: Street name.  
           - name: addressLine | type: string | description: Main address line (usually street name and number).  | validation: maxLength 150
           - name: addressLine2 | type: string | description: Free text providing more detailed address info. Usually contains apt, suite, floor.  | validation: maxLength 100
           - name: geocode | type: AddressLocation | description: Geocode object containing latitude and longitude coordinates.  
              - name: latitude | type: number | description: Address latitude.  | validation: format double
              - name: longitude | type: number | description: Address longitude.  | validation: format double
           - name: countryFullname | type: string | description: Country's full name.  | read-only: true 
           - name: subdivisionFullname | type: string | description: Subdivision full-name.  | read-only: true 
        - name: contactDetails | type: FullAddressContactDetails | description: Contact details.  
           - name: firstName | type: string | description: First name.  | validation: maxLength 100
           - name: lastName | type: string | description: Last name.  | validation: maxLength 100
           - name: phone | type: string | description: Phone number.  | validation: format PHONE
           - name: company | type: string | description: Company name.  | validation: maxLength 1000
           - name: vatId | type: VatId | description: Tax information (for Brazil only). If GUID is provided, `vatId.type` must also be set, `UNSPECIFIED` is not allowed.  
              - name: id | type: string | description: Customer's tax GUID.  
              - name: type | type: VatType | description: Tax type.  Supported values: + `CPF`: for individual tax payers + `CNPJ`: for corporations  
                     - enum:
                     -     UNSPECIFIED: 
                     -     CPF: CPF - for individual tax payers.
                     -     CNPJ: CNPJ - for corporations
     - name: overrideCheckoutUrl | type: string | description: `overrideCheckoutUrl` allows the flexibility to redirect customers to a customized checkout page.  This field overrides the `checkoutUrl` in a cart or checkout. `checkoutUrl` is used in the Abandoned Checkout API to send customers back to their checkouts. By default, a `checkoutUrl` generates for a checkout and directs to a standard Wix checkout page. When `overrideCheckoutUrl` has a value, it will replace and set the value of `checkoutUrl`.  | validation: maxLength 1000
     - name: purchaseFlowId | type: string | description: Persistent GUID that correlates between the various eCommerce elements: cart, checkout, and order.  | read-only: true | validation: format GUID
     - name: selectedShippingOption | type: SelectedShippingOption | description: Selected shipping option.  
        - name: carrierId | type: string | description: Carrier GUID.  | validation: format GUID
        - name: code | type: string | description: Selected shipping option code. For example, "usps_std_overnight".  | validation: minLength 1, maxLength 100
     - name: extendedFields | type: ExtendedFields | description: Fields extended by data extensions  
     - name: businessLocationId | type: string | description: The business location GUID associated with the cart.  To learn more, see the Locations API.  | validation: format GUID
     - name: paymentCurrency | type: string | description: The currency used for payment, in three-letter [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.  This is determined by the [customer's selected currency](https://support.wix.com/en/article/multicurrency-an-overview) and the site’s supported payment currencies. If the customer’s selected currency is supported for payment, this matches the `conversionCurrency` property. If not supported, this falls back to the `currency` property.  | read-only: true | validation: format CURRENCY
     - name: revision | type: string | description: Revision number, which increments by 1 each time the Cart is updated.  | read-only: true | validation: format int64


```

### Examples

### Update the current site visitor's cart
Apply a coupon to the current cart.

```curl
curl -X PATCH \
  'https://www.wixapis.com/ecom/v1/carts/current' \
  -H 'Authorization: <AUTH>' \
  -H 'Content-Type: application/json' \
  -d '{
    "couponCode": "SUMMERSALE10"
  }'
```

---

## JavaScript SDK

### Schema

```
 Method: wixClientAdmin.ecom.currentCart.updateCurrentCart(options)
 Description: Updates the current site visitor's cart.  >**Notes:** >+ When adding catalog line items, the `lineItems.catalogReference.appId` and `lineItems.catalogReference.catalogItemId` fields are required. >+ This method requires [visitor or member authentication](https://dev.wix.com/docs/api-reference/articles/authentication/about-identities.md). >+ After a cart is updated, call [Refresh Cart](https://dev.wix.com/docs/sdk/frontend-modules/ecom/refresh-cart.md) to update the cart's UI elements and trigger the Cart Updated event.
 # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present.
 Required parameters:  options.lineItems.catalogReference
 Method parameters: 
   param name: options | type: UpdateCurrentCartOptions  none  
        - name: cartInfo | type: Cart | description: Cart info.  
           - name: buyerNote | type: string | description: [Buyer note](https://support.wix.com/en/article/collecting-and-viewing-buyer-notes) left by the customer.  | validation: maxLength 1000
           - name: buyerInfo | type: BuyerInfo | description: Buyer information.  
              - name: contactId | type: string | description: Contact GUID. For more information, see the Contacts API.  | validation: format GUID
              - name: email | type: string | description: Buyer email address.  | validation: format EMAIL
           - name: contactInfo | type: AddressWithContact | description: Contact info.  
              - name: address | type: Address | description: Address.  
                 - name: streetAddress | type: StreetAddress | description: none  
                    - name: name | type: string | description: none  
                    - name: number | type: string | description: none  
                 - name: city | type: string | description: none  
                 - name: subdivision | type: string | description: none  
                 - name: country | type: string | description: none  
                 - name: postalCode | type: string | description: none  
                 - name: addressLine2 | type: string | description: none  
              - name: contactDetails | type: FullAddressContactDetails | description: Contact details.  
                 - name: firstName | type: string | description: First name.  | validation: maxLength 100
                 - name: lastName | type: string | description: Last name.  | validation: maxLength 100
                 - name: phone | type: string | description: Phone number.  | validation: format PHONE
                 - name: company | type: string | description: Company name.  | validation: maxLength 1000
                 - name: vatId | type: VatId | description: Tax information (for Brazil only). If GUID is provided, `vatId.type` must also be set, `UNSPECIFIED` is not allowed.  
                    - name: _id | type: string | description: Customer's tax GUID.  
                    - name: type | type: VatType | description: Tax type.  Supported values: + `CPF`: for individual tax payers + `CNPJ`: for corporations  
                             - enum:
                             -     UNSPECIFIED: 
                             -     CPF: CPF - for individual tax payers.
                             -     CNPJ: CNPJ - for corporations
           - name: overrideCheckoutUrl | type: string | description: `overrideCheckoutUrl` allows the flexibility to redirect customers to a customized checkout page.  This field overrides the `checkoutUrl` in a cart or checkout. `checkoutUrl` is used in the Abandoned Checkout API to send customers back to their checkouts. By default, a `checkoutUrl` generates for a checkout and directs to a standard Wix checkout page. When `overrideCheckoutUrl` has a value, it will replace and set the value of `checkoutUrl`.  | validation: maxLength 1000
           - name: selectedShippingOption | type: SelectedShippingOption | description: Selected shipping option.  
              - name: carrierId | type: string | description: Carrier GUID.  | validation: format GUID
              - name: code | type: string | description: Selected shipping option code. For example, "usps_std_overnight".  | validation: minLength 1, maxLength 100
           - name: extendedFields | type: ExtendedFields | description: Fields extended by data extensions  
              - name: namespaces | type: object | description: Extended field data. Each key corresponds to the namespace of the app that created the extended fields. The value of each key is structured according to the schema defined when the extended fields were configured.  You can only access fields for which you have the appropriate permissions.  Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields.md).  | validation: format map
           - name: businessLocationId | type: string | description: The business location GUID associated with the cart.  To learn more, see the Locations API.  | validation: format GUID
        - name: couponCode | type: string | description: Coupon code. For more information, see the Coupons API.  
        - name: lineItems | type: array<LineItem> | description: Catalog line items.  | validation: maxItems 300
           - name: quantity | type: integer | description: Item quantity.  | validation: minimum 1, maximum 100000
           - name: catalogReference | type: CatalogReference | description: Catalog and item reference. Holds GUIDs for the item and the catalog it came from, as well as further optional info. Optional for custom line items, which don't trigger the Catalog service plugin.  
              - name: catalogItemId | type: string | description: GUID of the item within the catalog it belongs to.  | validation: minLength 1, maxLength 36
              - name: appId | type: string | description: GUID of the app providing the catalog.  You can get your app's GUID from its page in the [app dashboard](https://dev.wix.com/dc3/my-apps/).  For items from Wix catalogs, the following values always apply: + Wix Stores: `"215238eb-22a5-4c36-9e7b-e7c08025e04e"` + Wix Bookings: `"13d21c63-b5ec-5912-8397-c3a5ddb27a97"` + Wix Restaurants: `"9a5d83fd-8570-482e-81ab-cfa88942ee60"`  | validation: minLength 1
              - name: options | type: object | description: Additional item details in `key:value` pairs.  Use this optional field for more specificity with item selection. The values of the `options` field differ depending on which catalog is providing the items.  For Wix Stores products, learn more about integrating with [Catalog V3](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/e-commerce-integration.md) or [Catalog V1](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v1/catalog/e-commerce-integration.md), depending on [the version the site uses](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-versioning/introduction.md).  
           - name: selectedMembership | type: SelectedMembership | description: Selected membership to be used as payment for this item. Must be used with `lineItem.paymentOption` set to `MEMBERSHIP` or `MEMBERSHIP_OFFLINE`. This field can be empty when `lineItem.paymentOption` is set to `MEMBERSHIP_OFFLINE`.  
              - name: _id | type: string | description: Membership GUID.  | validation: minLength 1, maxLength 100
              - name: appId | type: string | description: GUID of the app providing this payment option.  | validation: format GUID
           - name: catalogOverrideFields | type: CatalogOverrideFields | description: Overriding values for catalog item properties.  To override catalog fields, your app must have the permission scope named "Manage eCommerce - Admin Permissions". Learn more about [permission scopes](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/about-permissions.md).  
              - name: productName | type: ProductName | description: Item name.  
                 - name: original | type: string | description: __Required.__ Item name in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions.md#request-envelope).  Min: 1 character. Max: 200 characters.  | validation: minLength 1, maxLength 200
                 - name: translated | type: string | description: Item name translated into the buyer's language.  Min: 1 character. Max: 400 characters. Default: Same as `original`.  | validation: minLength 1, maxLength 400
              - name: price | type: string | description: Item price **after** discounts.  | validation: decimalValue {"gte":"0","lte":"999999999","maxScale":3}
              - name: fullPrice | type: string | description: Item price **before** discounts.  | validation: decimalValue {"gte":"0","lte":"999999999","maxScale":3}
              - name: descriptionLines | type: array<DescriptionLine> | description: Item description lines. Used when displaying the line item to customers.  | validation: minItems 0, maxItems 20
                 - ONE-OF: 
                    - name: plainText | type: PlainTextValue | description: Description line plain text value.  
                       - name: original | type: string | description: Description line plain text value in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions.md#request-envelope).  | validation: maxLength 600
                       - name: translated | type: string | description: Description line plain text value translated into the buyer's language.  Default: Same as `original`.  | validation: maxLength 600
                    - name: colorInfo | type: Color | description: Description line color value.  
                       - name: original | type: string | description: Description line color name in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions.md#request-envelope).  | validation: maxLength 500
                       - name: translated | type: string | description: Description line color name translated into the buyer's language.  Default: Same as `original`.  | validation: maxLength 500
                       - name: code | type: string | description: HEX or RGB color code for display.  
                 - name: name | type: DescriptionLineName | description: Description line name.  
                    - name: original | type: string | description: Description line name in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions.md#request-envelope).  | validation: maxLength 100
                    - name: translated | type: string | description: Description line name translated into the buyer's language.  Default: Same as `original`.  | validation: maxLength 200
              - name: physicalProperties | type: PhysicalProperties | description: Physical properties of the item.  
                 - name: weight | type: number | description: Line item weight. Measurement unit matches the weight unit specified in `weightUnit` in the request.  
                 - name: sku | type: string | description: Stock-keeping unit. Learn more about [SKUs](https://www.wix.com/encyclopedia/definition/stock-keeping-unit-sku).  | validation: maxLength 40
                 - name: shippable | type: boolean | description: Whether this line item is shippable.  
                 - name: productDimensions | type: Dimensions | description: Product dimensions (length, width, height of the physical product).  
                    - name: length | type: string | description: Length. Measurement unit is handled at the system level (metric/imperial).  | validation: decimalValue {"gte":"0","lte":"999999999","maxScale":6}
                    - name: width | type: string | description: Width. Measurement unit is handled at the system level (metric/imperial).  | validation: decimalValue {"gte":"0","lte":"999999999","maxScale":6}
                    - name: height | type: string | description: Height. Measurement unit is handled at the system level (metric/imperial).  | validation: decimalValue {"gte":"0","lte":"999999999","maxScale":6}
                    - name: unit | type: DimensionsUnit | description: Unit of measurement for dimensions (length, width, height).  
                             - enum:
                             -     UNKNOWN_DIMENSIONS_UNIT: 
                             -     MM: Millimeters.
                             -     CM: Centimeters.
                             -     M: Meters.
                             -     IN: Inches.
                             -     FT: Feet.
                             -     YD: Yards.
                 - name: packageDimensions | type: Dimensions | description: Package dimensions (length, width, height of the shipping package).  
              - name: image | type: string | description: Item image.  
              - name: paymentOption | type: PaymentOption | description: Payment method selected for the item.  
                 - name: value | type: PaymentOptionType | description: Type of selected payment option for current item.  Default: `FULL_PAYMENT_ONLINE`  
                         - enum:
                         -     FULL_PAYMENT_ONLINE: The entire payment for this item happens as part of the checkout.
                         -     FULL_PAYMENT_OFFLINE: The entire payment for this item happens after checkout. For example, when using cash, check, or other offline payment methods.
                         -     MEMBERSHIP: Payment for this item is done by charging a membership. Any remaining amount not covered by the membership, such as item modifiers, is paid online.
                         -     DEPOSIT_ONLINE: Partial payment to be paid upfront during checkout. The initial amount to be paid for each line item is specified in `depositAmount`.
                         -     MEMBERSHIP_OFFLINE: Payment for this item can only be done by charging a membership and must be manually redeemed in the dashboard by the site admin. When selected, `price` is `0`.
                         -     MEMBERSHIP_ONLINE_WITH_OFFLINE_REMAINDER: Item price is charged to online membership. Any remaining amount not covered by the membership, such as item modifiers, is paid offline.
              - name: depositAmount | type: string | description: Only eligible for catalog items with `lineItem.paymentOption.value` type of `DEPOSIT_ONLINE`.  | validation: format DECIMAL_VALUE, decimalValue {"gt":"0","lte":"999999999","maxScale":3}
              - name: savePaymentMethod | type: boolean | description: Whether to save the payment method on the order.  Default: `false`  
              - name: inventoryAppId | type: string | description: GUID of the app managing the inventory.  | validation: format GUID
              - name: fixedQuantity | type: boolean | description: Whether the line item quantity is fixed and can't be changed. When not set, falls back to the value from the catalog.  
           - name: taxableAddress | type: TaxableAddress | description: Address to use for tax calculation purposes.  
              - ONE-OF: 
                 - name: addressType | type: TaxableAddressType | description: taxable address type. if this field is selected, the address is automatically resolved, and the tax is calculated accordingly.  
                         - enum: BUSINESS, BILLING, SHIPPING
           - name: extendedFields | type: ExtendedFields | description: Custom extended fields for the line item object.  [Extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields.md) must be configured using the 'Checkout & Orders - Line Items Schema Plugin' in the app dashboard before they can be accessed with API calls.  
        - name: customLineItems | type: array<CustomLineItem> | description: Custom line items. Custom line items don't trigger the Catalog service plugin.  To access and manage custom line items, your app must have the permission scope named "Manage eCommerce - Admin Permissions". Learn more about [permission scopes](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/about-permissions.md).  | validation: maxItems 300
           - name: quantity | type: integer | description: Custom line item quantity.  Min: `1` Max: `100000`  | validation: minimum 1, maximum 100000
           - name: price | type: string | description: Custom line item price.  Must be a number or a decimal without symbols.  | validation: format DECIMAL_VALUE, decimalValue {"gte":"0","lte":"1000000000000000"}
           - name: priceDescription | type: PriceDescription | description: Additional description for the price. For example, when price is 0 but additional details about the actual price are needed - "Starts at $67".  
              - name: original | type: string | description: __Required.__ Price description in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions.md#request-envelope).  | validation: minLength 1, maxLength 100
              - name: translated | type: string | description: Price description translated into the buyer's language.  Default: Same as `original`.  | validation: minLength 1, maxLength 100
           - name: descriptionLines | type: array<DescriptionLine> | description: Custom line item description lines. Used for display purposes for the cart, checkout and order.  | validation: maxItems 10
           - name: media | type: string | description: Custom line item's media.  
           - name: taxGroupId | type: string | description: Tax group GUID for this custom line item.  | validation: format GUID
           - name: productName | type: ProductName | description: Name of the item or product.  
           - name: url | type: string | description: URL to the item's page on the site. When not provided, the link back from the cart page to the relevant product page will not work.  
           - name: itemType | type: ItemType | description: Item type. Either a preset type or custom.  
              - ONE-OF: 
                 - name: preset | type: ItemTypePreset | description: Preset item type.  
                         - enum: UNRECOGNISED, PHYSICAL, DIGITAL, GIFT_CARD, SERVICE
                 - name: custom | type: string | description: Custom item type. When none of the preset types are suitable, specifies the custom type.  
           - name: fullPrice | type: string | description: Item price **before** catalog-defined discount. Defaults to `price` when not provided.  | validation: format DECIMAL_VALUE
           - name: quantityAvailable | type: integer | description: Item quantity available for purchase. Only return this if inventory is managed. Not returning this field means that the buyer can "infinitely" tick up the number of items in the cart.  | validation: minimum 0, maximum 100000, format int32
           - name: physicalProperties | type: PhysicalProperties | description: Physical properties of the item.  
           - name: paymentOption | type: PaymentOptionType | description: Type of selected payment option for current item. Defaults to `FULL_PAYMENT_ONLINE`.  + `FULL_PAYMENT_ONLINE` - Entire payment for this item happens as part of the checkout. + `FULL_PAYMENT_OFFLINE` - Entire payment for this item happens after the checkout. For example, when using cash, check, or other offline payment methods. + `MEMBERSHIP` - Payment for this item is done by charging a membership. When this option is used, `lineItem.price.amount` is 0. + `DEPOSIT_ONLINE` -  Partial payment for the given item to be paid upfront during the checkout. Amount to be paid is defined by deposit_amount field.  
           - name: serviceProperties | type: ServiceProperties | description: Service properties. When relevant, this contains information such as date and number of participants. Used, among other things, when checking for valid memberships.  
              - name: scheduledDate | type: Date | description: Date and time the service is to be provided, in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format. For example, the start time of a class.  
              - name: numberOfParticipants | type: integer | description: The number of people participating in the service. For example, the number of people attending a class or the number of people per hotel room.  | validation: minimum 1, maximum 10000, format int32
           - name: rootCatalogItemId | type: string | description: In cases where `catalogReference.catalogItemId` is NOT the actual catalog item GUID, this field will return the true item's GUID.  + For example, for Wix Bookings, `catalogReference.catalogItemId` is the booking GUID. Therefore this value is set to the service GUID. + In most cases, this field is the same as `catalogReference.catalogItemId`. + Used in membership validation.  | validation: minLength 1, maxLength 36
           - name: depositAmount | type: string | description: Partial payment for the given item to be paid upfront during the checkout.  Eligible for catalog items with type `DEPOSIT_ONLINE`. When omitted, the item's price will not be split and is expected to be paid in a single installment.  | validation: format DECIMAL_VALUE
           - name: deliveryProfileId | type: string | description: Delivery profile GUID.  | validation: format GUID
           - name: catalogReference | type: CatalogReference | description: Catalog and item reference. Includes GUIDs for the item and the catalog it came from, as well as further optional info. Optional for custom line items, which don't trigger the Catalog service plugin.  
           - name: priceUndetermined | type: boolean | description: Whether the price is not yet defined, and will be updated after the order is created.  Default: `false`  
           - name: fixedQuantity | type: boolean | description: Whether the line item quantity is fixed and cannot be changed.  Default: `false`  
           - name: policies | type: array<Policy> | description: Policies to be displayed to the customer on the checkout page.  | validation: maxItems 5
              - name: title | type: string | description: Policy title - should be translated  | validation: minLength 1, maxLength 29
              - name: content | type: string | description: Policy content - should be translated  | validation: minLength 1, maxLength 3000
           - name: membersOnly | type: boolean | description: Whether the item can only be purchased by site members.  Default: `false`  
           - name: taxableAddress | type: TaxableAddress | description: Address to use for tax calculation purposes.  
           - name: modifierGroups | type: array<ModifierGroup> | description: Modifier groups that were added to the item.  | validation: maxItems 25
              - name: _id | type: string | description: Modifier group GUID.  | validation: minLength 1, maxLength 36
              - name: name | type: TranslatableString | description: Modifier group name.  
                 - name: original | type: string | description: __Required.__ String in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions.md#request-envelope).  Min: 1 character. Max: 200 characters.  | validation: minLength 1, maxLength 200
                 - name: translated | type: string | description: String translated into the buyer's language.  Min: 1 character. Max: 400 characters. Default: Same as `original`.  | validation: minLength 1, maxLength 400
              - name: modifiers | type: array<ItemModifier> | description: List of modifiers in this group.  | validation: minItems 1, maxItems 25
                 - name: _id | type: string | description: Modifier GUID.  | validation: minLength 1, maxLength 36
                 - name: quantity | type: integer | description: The quantity of this modifier.  | validation: minimum 1, maximum 100000, format int32
                 - name: label | type: TranslatableString | description: Primary display label for the modifier.  
                 - name: details | type: TranslatableString | description: Additional details.  
                 - name: price | type: string | description: The price of the modifier.  | validation: decimalValue {"gte":"0","lte":"1000000000000000","maxScale":3}
 Return type: PROMISE<Cart>
  - name: _id | type: string | description: Cart GUID.  | read-only: true | validation: format GUID
  - name: lineItems | type: array<LineItem> | description: Line items.  | read-only: true | validation: minItems 1, maxItems 300
     - name: _id | type: string | description: Line item GUID.  | read-only: true | validation: format GUID
     - name: quantity | type: integer | description: Item quantity.  | validation: minimum 1, maximum 100000
     - name: catalogReference | type: CatalogReference | description: Catalog and item reference. Holds GUIDs for the item and the catalog it came from, as well as further optional info. Optional for custom line items, which don't trigger the Catalog service plugin.  
        - name: catalogItemId | type: string | description: GUID of the item within the catalog it belongs to.  | validation: minLength 1, maxLength 36
        - name: appId | type: string | description: GUID of the app providing the catalog.  You can get your app's GUID from its page in the [app dashboard](https://dev.wix.com/dc3/my-apps/).  For items from Wix catalogs, the following values always apply: + Wix Stores: `"215238eb-22a5-4c36-9e7b-e7c08025e04e"` + Wix Bookings: `"13d21c63-b5ec-5912-8397-c3a5ddb27a97"` + Wix Restaurants: `"9a5d83fd-8570-482e-81ab-cfa88942ee60"`  | validation: minLength 1
        - name: options | type: object | description: Additional item details in `key:value` pairs.  Use this optional field for more specificity with item selection. The values of the `options` field differ depending on which catalog is providing the items.  For Wix Stores products, learn more about integrating with [Catalog V3](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/e-commerce-integration.md) or [Catalog V1](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v1/catalog/e-commerce-integration.md), depending on [the version the site uses](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-versioning/introduction.md).  
     - name: productName | type: ProductName | description: Item name. + Stores - `product.name` + Bookings - `service.info.name` + Events - `ticket.name`  | read-only: true 
        - name: original | type: string | description: __Required.__ Item name in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions.md#request-envelope).  Min: 1 character. Max: 200 characters.  | validation: minLength 1, maxLength 200
        - name: translated | type: string | description: Item name translated into the buyer's language.  Min: 1 character. Max: 400 characters. Default: Same as `original`.  | validation: minLength 1, maxLength 400
     - name: url | type: string | description: URL to the item's page on the site.  | read-only: true 
     - name: price | type: MultiCurrencyPrice | description: Item price **after** catalog-defined discount and line item discounts.  | read-only: true 
        - name: amount | type: string | description: Amount.  | validation: decimalValue {"gte":"0","lte":"1000000000000000"}
        - name: convertedAmount | type: string | description: Converted amount.  | read-only: true | validation: decimalValue {"gte":"0","lte":"1000000000000000"}
        - name: formattedAmount | type: string | description: Amount formatted with currency symbol.  | read-only: true 
        - name: formattedConvertedAmount | type: string | description: Converted amount formatted with currency symbol.  | read-only: true 
     - name: fullPrice | type: MultiCurrencyPrice | description: Item price **before** catalog-defined discount. Defaults to `price` when not provided.  | read-only: true 
     - name: priceBeforeDiscounts | type: MultiCurrencyPrice | description: Item price **before** line item discounts and **after** catalog-defined discount. Defaults to `price` when not provided.  | read-only: true 
     - name: lineItemPrice | type: MultiCurrencyPrice | description: Total price **after** catalog-defined discount and line item discounts.  | read-only: true 
     - name: descriptionLines | type: array<DescriptionLine> | description: Line item description lines. Used for displaying the cart, checkout and order.  | read-only: true 
        - ONE-OF: 
           - name: plainText | type: PlainTextValue | description: Description line plain text value.  
              - name: original | type: string | description: Description line plain text value in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions.md#request-envelope).  | validation: maxLength 600
              - name: translated | type: string | description: Description line plain text value translated into the buyer's language.  Default: Same as `original`.  | validation: maxLength 600
           - name: colorInfo | type: Color | description: Description line color value.  
              - name: original | type: string | description: Description line color name in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions.md#request-envelope).  | validation: maxLength 500
              - name: translated | type: string | description: Description line color name translated into the buyer's language.  Default: Same as `original`.  | validation: maxLength 500
              - name: code | type: string | description: HEX or RGB color code for display.  
        - name: name | type: DescriptionLineName | description: Description line name.  
           - name: original | type: string | description: Description line name in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions.md#request-envelope).  | validation: maxLength 100
           - name: translated | type: string | description: Description line name translated into the buyer's language.  Default: Same as `original`.  | validation: maxLength 200
     - name: image | type: string | description: Line item image details.  | read-only: true 
     - name: availability | type: ItemAvailabilityInfo | description: Item availability details.  | read-only: true 
        - name: status | type: ItemAvailabilityStatus | description: Item availability status.  
             - enum:
             -     AVAILABLE: 
             -     NOT_FOUND: Item does not exist.
             -     NOT_AVAILABLE: Item is not in stock.
             -     PARTIALLY_AVAILABLE: Available quantity is less than requested.
        - name: quantityAvailable | type: integer | description: Quantity available.  | validation: format int32
     - name: physicalProperties | type: PhysicalProperties | description: Physical properties of the item. When relevant, contains information such as SKU, item weight, and shippability.  | read-only: true 
        - name: weight | type: number | description: Line item weight. Measurement unit matches the weight unit specified in `weightUnit` in the request.  
        - name: sku | type: string | description: Stock-keeping unit. Learn more about [SKUs](https://www.wix.com/encyclopedia/definition/stock-keeping-unit-sku).  | validation: maxLength 40
        - name: shippable | type: boolean | description: Whether this line item is shippable.  
        - name: productDimensions | type: Dimensions | description: Product dimensions (length, width, height of the physical product).  
           - name: length | type: string | description: Length. Measurement unit is handled at the system level (metric/imperial).  | validation: decimalValue {"gte":"0","lte":"999999999","maxScale":6}
           - name: width | type: string | description: Width. Measurement unit is handled at the system level (metric/imperial).  | validation: decimalValue {"gte":"0","lte":"999999999","maxScale":6}
           - name: height | type: string | description: Height. Measurement unit is handled at the system level (metric/imperial).  | validation: decimalValue {"gte":"0","lte":"999999999","maxScale":6}
           - name: unit | type: DimensionsUnit | description: Unit of measurement for dimensions (length, width, height).  
                 - enum:
                 -     UNKNOWN_DIMENSIONS_UNIT: 
                 -     MM: Millimeters.
                 -     CM: Centimeters.
                 -     M: Meters.
                 -     IN: Inches.
                 -     FT: Feet.
                 -     YD: Yards.
        - name: packageDimensions | type: Dimensions | description: Package dimensions (length, width, height of the shipping package).  
     - name: itemType | type: ItemType | description: Item type. Either a preset type or custom.  | read-only: true 
        - ONE-OF: 
           - name: preset | type: ItemTypePreset | description: Preset item type.  
                 - enum: UNRECOGNISED, PHYSICAL, DIGITAL, GIFT_CARD, SERVICE
           - name: custom | type: string | description: Custom item type. When none of the preset types are suitable, specifies the custom type.  
     - name: subscriptionOptionInfo | type: SubscriptionOptionInfo | description: Subscription option information.  | read-only: true 
        - name: subscriptionSettings | type: SubscriptionSettings | description: Subscription option settings.  
           - name: frequency | type: SubscriptionFrequency | description: Frequency of recurring payment.  
                 - enum: UNDEFINED, DAY, WEEK, MONTH, YEAR
           - name: interval | type: integer | description: Interval of recurring payment.  Default: `1`. If SubscriptionFrequency is Day the minimum interval is 7  | validation: minimum 1, maximum 3650, format int32
           - name: autoRenewal | type: boolean | description: Whether subscription is renewed automatically at the end of each period.  
           - name: billingCycles | type: integer | description: Number of billing cycles before subscription ends. Ignored if `autoRenewal` is `true`.  | validation: minimum 1, format int32
           - name: enableCustomerCancellation | type: boolean | description: Whether to allow the customer to cancel the subscription.  
           - name: freeTrialPeriod | type: FreeTrialPeriod | description: Period until first cycle starts. If applied payNow will be 0 If None => no free trial  
              - name: frequency | type: SubscriptionFrequency | description: Frequency of period. Values: DAY, WEEK, MONTH, YEAR  
              - name: interval | type: integer | description: Number of frequency units in the free trial period. For example, frequency `MONTH` with interval `3` means a 3-month free trial.  | validation: minimum 1, maximum 999
           - name: startDate | type: Date | description: Date and time the subscription starts.  The first charge happens when the order is placed. When `freeTrialPeriod` is set, the first charge happens when the free trial ends.  
           - name: billingSettings | type: BillingSettings | description: Billing configuration for recurring charges.  
              - name: anchorDay | type: integer | description: Day of the month that recurring charges fall on. For example, `15` to charge on the 15th of each month.  Used only when the subscription's `frequency` is `MONTH` and `interval` is `1`.  | validation: minimum 1, maximum 28, format int32
           - name: cyclePriceOverrides | type: array<CyclePriceOverride> | description: Unit prices for specified billing cycles of the subscription. Cycles that no entry covers are charged the item's `price`.  When `billingCycles` is set, every entry must end on or before the last billing cycle.  | validation: maxItems 1
              - name: cycleFrom | type: integer | description: __Required.__ First billing cycle the price applies to. The first paid cycle of the subscription is `1`. A free trial period, if any, is cycle `0`.  | validation: minimum 1, maximum 1
              - name: numberOfCycles | type: integer | description: __Required.__ Number of consecutive billing cycles the price applies to, starting at `cycleFrom`.  | validation: minimum 1, maximum 1, format int32
              - name: price | type: string | description: __Required.__ Unit price for the cycles this entry covers, in the item's currency. Can be higher than, lower than, or equal to the item's `price`.  | validation: decimalValue {"gte":"0","lte":"1000000000000000","maxScale":4}
        - name: title | type: Title | description: Subscription option title.  
           - name: original | type: string | description: Subscription option name in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions.md#request-envelope).  | validation: minLength 1, maxLength 150
           - name: translated | type: string | description: Subscription option name translated into the buyer's language.  Default: Same as `original`.  | validation: minLength 1, maxLength 150
        - name: description | type: Description | description: Subscription option description.  
           - name: original | type: string | description: Subscription option description.  | validation: maxLength 500
           - name: translated | type: string | description: Translated subscription option description.  | validation: maxLength 500
     - name: paymentOption | type: PaymentOptionType | description: Type of selected payment option for current item.  Default: `FULL_PAYMENT_ONLINE`  | read-only: true 
         - enum:
         -     FULL_PAYMENT_ONLINE: The entire payment for this item happens as part of the checkout.
         -     FULL_PAYMENT_OFFLINE: The entire payment for this item happens after checkout. For example, when using cash, check, or other offline payment methods.
         -     MEMBERSHIP: Payment for this item is done by charging a membership. Any remaining amount not covered by the membership, such as item modifiers, is paid online.
         -     DEPOSIT_ONLINE: Partial payment to be paid upfront during checkout. The initial amount to be paid for each line item is specified in `depositAmount`.
         -     MEMBERSHIP_OFFLINE: Payment for this item can only be done by charging a membership and must be manually redeemed in the dashboard by the site admin. When selected, `price` is `0`.
         -     MEMBERSHIP_ONLINE_WITH_OFFLINE_REMAINDER: Item price is charged to online membership. Any remaining amount not covered by the membership, such as item modifiers, is paid offline.
     - name: serviceProperties | type: ServiceProperties | description: Service properties. When relevant, this contains information such as date and number of participants.  | read-only: true 
        - name: scheduledDate | type: Date | description: Date and time the service is to be provided, in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format. For example, the start time of a class.  
        - name: numberOfParticipants | type: integer | description: The number of people participating in the service. For example, the number of people attending a class or the number of people per hotel room.  | validation: minimum 1, maximum 10000, format int32
     - name: rootCatalogItemId | type: string | description: In cases where `catalogReference.catalogItemId` is NOT the actual catalog item GUID, this field will return the true item's GUID. + For example, for Wix Bookings, `catalogReference.catalogItemId` is the booking GUID. Therefore this value is set to the service GUID. + in most cases, this field is the same as `catalogReference.catalogItemId`. + Used in membership validation.  | read-only: true | validation: minLength 1, maxLength 36
     - name: priceDescription | type: PriceDescription | description: Additional description for the price. For example, when price is 0 but additional details about the actual price are needed - "Starts at $67".  | read-only: true 
        - name: original | type: string | description: __Required.__ Price description in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions.md#request-envelope).  | validation: minLength 1, maxLength 100
        - name: translated | type: string | description: Price description translated into the buyer's language.  Default: Same as `original`.  | validation: minLength 1, maxLength 100
     - name: depositAmount | type: MultiCurrencyPrice | description: Partial payment to be paid upfront during the checkout. Eligible for catalog items with `lineItem.paymentOption` type `DEPOSIT_ONLINE` only.  | read-only: true 
     - name: selectedMembership | type: SelectedMembership | description: Selected membership to be used as payment for this item. Must be used with `lineItem.paymentOption` set to `MEMBERSHIP` or `MEMBERSHIP_OFFLINE`. This field can be empty when `lineItem.paymentOption` is set to `MEMBERSHIP_OFFLINE`.  
        - name: _id | type: string | description: Membership GUID.  | validation: minLength 1, maxLength 100
        - name: appId | type: string | description: GUID of the app providing this payment option.  | validation: format GUID
     - name: deliveryProfileId | type: string | description: Delivery profile GUID.  | read-only: true | validation: format GUID
     - name: taxGroupId | type: string | description: Tax group GUID for this line item.  | read-only: true | validation: format GUID
     - name: customLineItem | type: boolean | description: Whether the line item is a custom line item. Custom line items don't trigger the Catalog service plugin.  | read-only: true 
     - name: consentRequiredPaymentPolicy | type: string | description: Item payment policy that requires customer consent to complete purchase. The payment policy will be displayed on the checkout page.  | read-only: true | validation: minLength 1, maxLength 2500
     - name: priceUndetermined | type: boolean | description: Whether the price is not yet defined, and will be updated after the order is created.  | read-only: true 
     - name: fixedQuantity | type: boolean | description: Whether the line item quantity is fixed and cannot be changed.  | read-only: true 
     - name: catalogOverrideFields | type: CatalogOverrideFields | description: Overriding values for catalog item properties.  To override catalog fields, your app must have the permission scope named "Manage eCommerce - Admin Permissions". Learn more about [permission scopes](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/about-permissions.md).  
        - name: productName | type: ProductName | description: Item name.  
        - name: price | type: string | description: Item price **after** discounts.  | validation: decimalValue {"gte":"0","lte":"999999999","maxScale":3}
        - name: fullPrice | type: string | description: Item price **before** discounts.  | validation: decimalValue {"gte":"0","lte":"999999999","maxScale":3}
        - name: descriptionLines | type: array<DescriptionLine> | description: Item description lines. Used when displaying the line item to customers.  | validation: minItems 0, maxItems 20
        - name: physicalProperties | type: PhysicalProperties | description: Physical properties of the item.  
        - name: image | type: string | description: Item image.  
        - name: paymentOption | type: PaymentOption | description: Payment method selected for the item.  
           - name: value | type: PaymentOptionType | description: Type of selected payment option for current item.  Default: `FULL_PAYMENT_ONLINE`  
        - name: depositAmount | type: string | description: Only eligible for catalog items with `lineItem.paymentOption.value` type of `DEPOSIT_ONLINE`.  | validation: format DECIMAL_VALUE, decimalValue {"gt":"0","lte":"999999999","maxScale":3}
        - name: savePaymentMethod | type: boolean | description: Whether to save the payment method on the order.  Default: `false`  
        - name: inventoryAppId | type: string | description: GUID of the app managing the inventory.  | validation: format GUID
        - name: fixedQuantity | type: boolean | description: Whether the line item quantity is fixed and can't be changed. When not set, falls back to the value from the catalog.  
     - name: savePaymentMethod | type: boolean | description: Whether to save the payment method on the order.  Default: `false`  | read-only: true 
     - name: taxableAddress | type: TaxableAddress | description: Address to use for tax calculation purposes.  
        - ONE-OF: 
           - name: addressType | type: TaxableAddressType | description: taxable address type. if this field is selected, the address is automatically resolved, and the tax is calculated accordingly.  
                 - enum: BUSINESS, BILLING, SHIPPING
     - name: extendedFields | type: ExtendedFields | description: Custom extended fields for the line item object.  [Extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields.md) must be configured using the 'Checkout & Orders - Line Items Schema Plugin' in the app dashboard before they can be accessed with API calls.  
        - name: namespaces | type: object | description: Extended field data. Each key corresponds to the namespace of the app that created the extended fields. The value of each key is structured according to the schema defined when the extended fields were configured.  You can only access fields for which you have the appropriate permissions.  Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields.md).  | validation: format map
     - name: policies | type: array<Policy> | description: Policies to be displayed to the customer on the checkout page.  | read-only: true | validation: maxItems 5
        - name: title | type: string | description: Policy title - should be translated  | validation: minLength 1, maxLength 29
        - name: content | type: string | description: Policy content - should be translated  | validation: minLength 1, maxLength 3000
     - name: membersOnly | type: boolean | description: Whether the item can only be purchased by site members.  Default: `false`  | read-only: true 
     - name: modifierGroups | type: array<ModifierGroup> | description: Modifier groups that were added to the item.  | read-only: true | validation: maxItems 25
        - name: _id | type: string | description: Modifier group GUID.  | validation: minLength 1, maxLength 36
        - name: name | type: TranslatableString | description: Modifier group name.  
           - name: original | type: string | description: __Required.__ String in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions.md#request-envelope).  Min: 1 character. Max: 200 characters.  | validation: minLength 1, maxLength 200
           - name: translated | type: string | description: String translated into the buyer's language.  Min: 1 character. Max: 400 characters. Default: Same as `original`.  | validation: minLength 1, maxLength 400
        - name: modifiers | type: array<ItemModifier> | description: List of modifiers in this group.  | validation: minItems 1, maxItems 25
           - name: _id | type: string | description: Modifier GUID.  | validation: minLength 1, maxLength 36
           - name: quantity | type: integer | description: The quantity of this modifier.  | validation: minimum 1, maximum 100000, format int32
           - name: label | type: TranslatableString | description: Primary display label for the modifier.  
           - name: details | type: TranslatableString | description: Additional details.  
           - name: price | type: MultiCurrencyPrice | description: The price of the modifier.  
     - name: modifiersTotalPrice | type: MultiCurrencyPrice | description: Total price of all item modifiers. Included in the item price.  | read-only: true 
  - name: buyerNote | type: string | description: [Buyer note](https://support.wix.com/en/article/collecting-and-viewing-buyer-notes) left by the customer.  | validation: maxLength 1000
  - name: buyerInfo | type: BuyerInfo | description: Buyer information.  
     - ONE-OF: 
        - name: visitorId | type: string | description: Visitor GUID. If the buyer is **not** a site member.  | read-only: true | validation: format GUID
        - name: memberId | type: string | description: Member GUID. If the buyer is a site member.  | read-only: true | validation: format GUID
        - name: userId | type: string | description: User GUID. If the buyer, or cart owner, is a Wix user.  | read-only: true | validation: format GUID
     - name: contactId | type: string | description: Contact GUID. For more information, see the Contacts API.  | validation: format GUID
     - name: email | type: string | description: Buyer email address.  | validation: format EMAIL
  - name: currency | type: string | description: The site’s default currency, in three-letter [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format. This represents the base currency configured for the site and remains constant regardless of the customer’s currency selection.  | read-only: true | validation: format CURRENCY
  - name: conversionCurrency | type: string | description: The currency [selected by the customer](https://support.wix.com/en/article/multicurrency-an-overview) during the purchase flow, in three-letter [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.  This reflects the customer’s preferred display currency and may differ from the site’s default currency. When no specific currency is selected by the customer, this matches the `currency` property.  | read-only: true | validation: format CURRENCY
  - name: buyerLanguage | type: string | description: Language for communication with the buyer. Defaults to the site language.  For a site that supports multiple languages, this is the language the buyer selected.  | read-only: true 
  - name: siteLanguage | type: string | description: Site language in which original values are displayed.  | read-only: true 
  - name: taxIncludedInPrices | type: boolean | description: Whether tax is included in line item prices.  | read-only: true 
  - name: weightUnit | type: WeightUnit | description: Weight measurement unit - defaults to site's weight unit.  | read-only: true 
     - enum:
     -     UNSPECIFIED_WEIGHT_UNIT: Weight unit can't be classified due to an error.
     -     KG: Kilograms.
     -     LB: Pounds.
  - name: checkoutId | type: string | description: GUID of the checkout that originated from this cart.  | read-only: true | validation: format GUID
  - name: appliedDiscounts | type: array<CartDiscount> | description: Cart discounts.  | read-only: true 
     - ONE-OF: 
        - name: coupon | type: Coupon | description: Coupon details.  
           - name: _id | type: string | description: Coupon GUID.  
           - name: code | type: string | description: Coupon code.  
        - name: merchantDiscount | type: MerchantDiscount | description: Merchant discount.  
           - name: amount | type: MultiCurrencyPrice | description: Discount value.  
  - name: _createdDate | type: Date | description: Date and time the cart was created.  | read-only: true 
  - name: _updatedDate | type: Date | description: Date and time the cart was updated.  | read-only: true 
  - name: contactInfo | type: AddressWithContact | description: Contact info.  
     - name: address | type: Address | description: Address.  
        - name: streetAddress | type: StreetAddress | description: none  
           - name: name | type: string | description: none  
           - name: number | type: string | description: none  
        - name: city | type: string | description: none  
        - name: subdivision | type: string | description: none  
        - name: country | type: string | description: none  
        - name: postalCode | type: string | description: none  
        - name: addressLine2 | type: string | description: none  
     - name: contactDetails | type: FullAddressContactDetails | description: Contact details.  
        - name: firstName | type: string | description: First name.  | validation: maxLength 100
        - name: lastName | type: string | description: Last name.  | validation: maxLength 100
        - name: phone | type: string | description: Phone number.  | validation: format PHONE
        - name: company | type: string | description: Company name.  | validation: maxLength 1000
        - name: vatId | type: VatId | description: Tax information (for Brazil only). If GUID is provided, `vatId.type` must also be set, `UNSPECIFIED` is not allowed.  
           - name: _id | type: string | description: Customer's tax GUID.  
           - name: type | type: VatType | description: Tax type.  Supported values: + `CPF`: for individual tax payers + `CNPJ`: for corporations  
                 - enum:
                 -     UNSPECIFIED: 
                 -     CPF: CPF - for individual tax payers.
                 -     CNPJ: CNPJ - for corporations
  - name: overrideCheckoutUrl | type: string | description: `overrideCheckoutUrl` allows the flexibility to redirect customers to a customized checkout page.  This field overrides the `checkoutUrl` in a cart or checkout. `checkoutUrl` is used in the Abandoned Checkout API to send customers back to their checkouts. By default, a `checkoutUrl` generates for a checkout and directs to a standard Wix checkout page. When `overrideCheckoutUrl` has a value, it will replace and set the value of `checkoutUrl`.  | validation: maxLength 1000
  - name: purchaseFlowId | type: string | description: Persistent GUID that correlates between the various eCommerce elements: cart, checkout, and order.  | read-only: true | validation: format GUID
  - name: selectedShippingOption | type: SelectedShippingOption | description: Selected shipping option.  
     - name: carrierId | type: string | description: Carrier GUID.  | validation: format GUID
     - name: code | type: string | description: Selected shipping option code. For example, "usps_std_overnight".  | validation: minLength 1, maxLength 100
  - name: extendedFields | type: ExtendedFields | description: Fields extended by data extensions  
  - name: businessLocationId | type: string | description: The business location GUID associated with the cart.  To learn more, see the Locations API.  | validation: format GUID
  - name: paymentCurrency | type: string | description: The currency used for payment, in three-letter [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.  This is determined by the [customer's selected currency](https://support.wix.com/en/article/multicurrency-an-overview) and the site’s supported payment currencies. If the customer’s selected currency is supported for payment, this matches the `conversionCurrency` property. If not supported, this falls back to the `currency` property.  | read-only: true | validation: format CURRENCY
  - name: revision | type: string | description: Revision number, which increments by 1 each time the Cart is updated.  | read-only: true | validation: format int64


```

### Examples

### Update the current site visitor's cart
Apply a coupon to the current cart

```javascript
/**************************************
 * Backend code - my-backend-file.web.js/ts *
 *************************************/

import { Permissions, webMethod } from '@wix/web-methods';
import { currentCart } from '@wix/ecom';

export const myUpdateCurrentCartFunction = webMethod(Permissions.Anyone, async (options) => {
  try {
    const updatedCurrentCart = await currentCart.updateCurrentCart(options);
    console.log('Success! Updated current cart:', updatedCurrentCart);
    return updatedCurrentCart;
  } catch (error) {
    console.error(error);
    // Handle the error
  }
});

/*************
 * Page code *
 ************/

import { ecom } from "@wix/site-ecom";
import { myUpdateCurrentCartFunction } from 'backend/my-backend-file.web';

// Coupon code to be applied to the current cart
const updateOptions = {
  "couponCode": "SUMMERSALE10"
}

const updatedCurrentCart = await myUpdateCurrentCartFunction(updateOptions);

// Refresh the cart after adding item.
await ecom.refreshCart();

// Navigate to the cart page.
await ecom.navigateToCartPage();

/* Promise resolves to:
 *
 * {
 *   "_id": "ba47a627-7bb8-4918-89b2-6a72af464765",
 *   "appliedDiscounts": [
 *     {
 *       "coupon": {
 *         "_id": "fbb94b06-7447-4161-9c48-59bfcdc39e77",
 *         "code": "SUMMERSALE10"
 *       }
 *     }
 *   ],
 *   "lineItems": [
 *     {
 *       "_id": "00000000-0000-0000-0000-000000000001",
 *       "quantity": 1,
 *       "catalogReference": {
 *         "catalogItemId": "c8539b66-7a44-fe18-affc-afec4be8562a",
 *         "appId": "215238eb-22a5-4c36-9e7b-e7c08025e04e"
 *       },
 *       "productName": {
 *         "original": "Shirt",
 *         "translated": "Shirt"
 *       },
 *       "url": "https://example.wixsite.com",
 *       "price": {
 *         "amount": "10",
 *         "convertedAmount": "10",
 *         "formattedAmount": "€10.00",
 *         "formattedConvertedAmount": "€10.00"
 *       },
 *       "fullPrice": {
 *         "amount": "10",
 *         "convertedAmount": "10",
 *         "formattedAmount": "€10.00",
 *         "formattedConvertedAmount": "€10.00"
 *       },
 *       "priceBeforeDiscounts": {
 *         "amount": "10",
 *         "convertedAmount": "10",
 *         "formattedAmount": "€10.00",
 *         "formattedConvertedAmount": "€10.00"
 *       },
 *       "descriptionLines": [],
 *       "image": "wix:image://v1/3c76e2_c5331f937348492a97df87b0a3b34ea4~mv2.jpg#originWidth=1000&originHeight=1000",
 *       "availability": {
 *         "status": "AVAILABLE"
 *       },
 *       "physicalProperties": {
 *         "sku": "364115376135191",
 *         "shippable": true
 *       },
 *       "itemType": {
 *         "preset": "PHYSICAL"
 *       },
 *       "paymentOption": "FULL_PAYMENT_ONLINE"
 *     }
 *   ],
 *   "buyerInfo": {
 *     "visitorId": "4c7ce95c-9fb3-417d-9f02-b41e82b841f7"
 *   },
 *   "currency": "EUR",
 *   "conversionCurrency": "EUR",
 *   "buyerLanguage": "en",
 *   "siteLanguage": "en",
 *   "taxIncludedInPrices": false,
 *   "weightUnit": "KG",
 *   "_createdDate": "2022-05-15T11:31:30.484Z",
 *   "_updatedDate": "2022-06-16T09:20:23.388Z"
 * }
 *
 */

```

### updateCurrentCart (self-managed)
Self-managed SDK calls require you to [create a client](https://dev.wix.com/docs/sdk/articles/work-with-the-sdk/about-the-wix-client.md).

```javascript
import { createClient } from '@wix/sdk';
import { currentCart } from '@wix/ecom';
// Import the auth strategy for the relevant access type
// Import the relevant host module if needed

const myWixClient = createClient ({
  modules: { currentCart },
  // Include the auth strategy and host as relevant
});


async function updateCurrentCart(options) {
  const response = await myWixClient.currentCart.updateCurrentCart(options);
};
```

---