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

# Resource: Subscription Contracts

# Type: Subscription Contract Object

# Link: https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/payments/subscriptions/subscription-contracts/subscription-contract-object.md

## Description: A subscription contract holds the terms of a buyer's subscription: the items, prices, billing frequency, and buyer, billing, and shipping details agreed on at checkout, or as later changed through draft subscription contracts.

When a buyer checks out with subscription items, a subscription contract is created for each group of items that are billed together. Physical items from the same catalog with identical `subscriptionInfo.subscriptionSettings` share a subscription contract. Every other subscription item gets its own subscription contract. Each billing cycle, an order is created from the contract's current content. The order's `lineItems.subscriptionInfo.id` holds the contract ID, and `lineItems.subscriptionInfo.cycleNumber` holds the billing cycle the order is for.

To change a subscription contract, create a [draft subscription contract](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/payments/subscriptions/draft-subscription-contracts/introduction.md), edit it, and commit it.

## Schema:

```json
 Type: Subscription Contract Object | type: SubscriptionContract
 Description: A subscription contract holds the terms of a buyer's subscription: the items, prices, billing frequency, and buyer, billing, and shipping details agreed on at checkout, or as later changed through draft subscription contracts.

When a buyer checks out with subscription items, a subscription contract is created for each group of items that are billed together. Physical items from the same catalog with identical `subscriptionInfo.subscriptionSettings` share a subscription contract. Every other subscription item gets its own subscription contract. Each billing cycle, an order is created from the contract's current content. The order's `lineItems.subscriptionInfo.id` holds the contract ID, and `lineItems.subscriptionInfo.cycleNumber` holds the billing cycle the order is for.

To change a subscription contract, create a [draft subscription contract](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/payments/subscriptions/draft-subscription-contracts/introduction.md), edit it, and commit it.
       - name: id  | type: string | description: Subscription contract ID.
           - name: value  | type: string | description: 
       - name: revision  | type: string | description: Revision number, which increments by 1 each time the subscription contract is updated.
           - name: value  | type: string | description: 
       - name: createdDate  | type: string | description: Date and time the subscription contract was created.
           - name: seconds  | type: string | description: 
           - name: nanos  | type: number | description: 
       - name: updatedDate  | type: string | description: Date and time the subscription contract was last updated.
       - name: description  | type: string | description: Subscription option description. For example, `"1kg of selected coffee, once a month"`.
       - name: subscriptionDescription  | type: SubscriptionDescription | description: Subscription description, in the site's default language and translated into the buyer's language. For example, `"1kg of selected coffee, once a month"`.  For a subscription contract with more than one line item, holds a general name for the subscription.
           - name: original  | type: string | description: Subscription description in the site's default language.
           - name: translated  | type: string | description: Subscription description translated into the buyer's language.
       - name: subscriptionSettings  | type: SubscriptionSettings | description: Subscription terms, such as the billing frequency, the number of billing cycles, and whether the subscription renews automatically.
           - name: frequency  | type: string | description: Frequency unit of the billing cycle.
               enum: UNDEFINED, DAY, WEEK, MONTH, YEAR
           - name: interval  | type: number | description: Number of frequency units in a billing cycle. For example, frequency `MONTH` with interval `3` means billing every 3 months.
               - name: value  | type: number | description: 
           - name: autoRenewal  | type: boolean | description: Whether the subscription renews automatically at the end of each billing cycle.
           - name: billingCycles  | type: number | description: Number of billing cycles before the subscription ends.
           - name: enableCustomerCancellation  | type: boolean | description: Whether the buyer can cancel the subscription.
           - name: freeTrialPeriod  | type: FreeTrialPeriod | description: Free trial period before the first billing cycle starts.  Returned only when the subscription has a free trial.
               - name: frequency  | type: string | description: Frequency unit of the free trial period.
               - name: interval  | type: number | description: Number of frequency units in the free trial period. For example, frequency `MONTH` with interval `3` means a 3-month free trial.
           - name: lineItemCyclePriceOverrides  | type: Array<LineItemCyclePriceOverrides> | description: Cycle price overrides of the subscription's line items, by line item ID. A line item with no entry is charged its regular price on every billing cycle.
               - name: lineItemId  | type: string | description: ID of the line item.
               - name: cyclePriceOverrides  | type: Array<CyclePriceOverride> | description: Unit prices for specified billing cycles of the line item, in the contract's currency and before the line item's modifiers. Cycles that no entry covers are charged the line item's regular price.
       - name: lineItems  | type: Array<OrderLineItem> | description: Subscription line items. The order for each billing cycle is created with these line items.  In a subscription contract: + `lineItems.subscriptionInfo.id` is the subscription contract's own ID. + `lineItems.subscriptionInfo.cycleNumber` is always `0`. The billing cycle is set on the line items of each cycle's order. + `subscriptionInfo.title` and `subscriptionInfo.description` hold the subscription contract's title and description, not the line item's own subscription option. + `refundQuantity`, `restockQuantity`, and `depositAmount` aren't updated after the line item is added. Refunds, restocks, and fulfillment are recorded on each billing cycle's order. + `extendedFields` and `decimalQuantity` aren't returned. + When coupons were included in item prices at checkout, `price` is the price before coupons, and the coupons are in `appliedDiscounts`.
           - name: id  | type: string | description: Line item ID.
           - name: productName  | type: ProductName | description: Item name.  + Stores - `product.name` + Bookings - `service.info.name` + Events - `ticket.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.
               - name: translated  | type: string | description: Item name translated into the buyer's language.  Min: 1 character. Max: 400 characters. Default: Same as `original`.
           - name: catalogReference  | type: CatalogReference | description: References to the line item's origin catalog. Empty for custom line items.
               - name: catalogItemId  | type: string | description: ID of the item within the catalog it belongs to. For a Wix Stores product, this is the product ID, including when the product has variants.
               - name: appId  | type: string | description: ID of the app providing the catalog.  You can get your app's ID 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"`
               - name: options  | type: Struct | 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 a Wix Stores product with variants, specify the variant ID in `options.variantId` and the product ID in `catalogItemId`.  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: quantity  | type: number | description: Line item quantity.
           - name: totalDiscount  | type: Price | description: Total discount for this line item's entire quantity.
               - name: amount  | type: string | description: Amount.
               - name: formattedAmount  | type: string | description: Amount formatted with currency symbol.
           - name: descriptionLines  | type: Array<DescriptionLine> | description: Line item description lines. Used for display purposes for the cart, checkout and order.
               - name: name  | type: DescriptionLineName | description: Description line name.
               - ONE-OF:
                   - name: plainText  | type: PlainTextValue | description: Description line plain text value.
                   - name: colorInfo  | type: Color | description: Description line color value.
           - name: image  | type: Image | description: Line item image.
               - name: id  | type: string | description: WixMedia image ID.
               - name: url  | type: string | description: Image URL.
               - name: height  | type: number | description: Original image height.
               - name: width  | type: number | description: Original image width.
               - name: altText  | type: string | description: Image alt text.
               - name: filename  | type: string | description: Image filename.
           - name: physicalProperties  | type: PhysicalProperties | description: Physical properties of the item. When relevant, contains information such as SKU and item weight.
               - 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).
               - 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: 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.
               - ONE-OF:
                   - name: preset  | type: string | description: Preset item type.
                   - name: custom  | type: string | description: Custom item type. When none of the preset types are suitable, specifies the custom type.
           - name: fulfillerId  | type: string | description: Fulfiller ID. Field is empty when the line item is self-fulfilled. To get fulfillment information, pass the order ID to [List Fulfillments For Single Order](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/orders/order-fulfillments/list-fulfillments-for-single-order.md).
           - name: refundQuantity  | type: number | description: Number of items that were refunded.
           - name: restockQuantity  | type: number | description: Number of items restocked.  For a per-location breakdown, see `restockLocations`.
           - name: price  | type: Price | description: Line item price after line item discounts for display purposes.
           - name: priceBeforeDiscounts  | type: Price | description: Line item price before line item discounts for display purposes. Defaults to `price` when not provided.
           - name: fullPrice  | type: Price | description: Catalog price of a single item, with modifiers, before any discounts, including the catalog-defined discount.  For the price after the catalog-defined discount, see `priceBeforeDiscounts`.  For a catalog line item, returned only when the catalog returns a full price for the item. For a custom line item, the `fullPrice` the caller passed, or its `price` when none was passed.
           - name: totalPriceBeforeTax  | type: Price | description: Total price after discounts, and before tax.
           - name: totalPriceAfterTax  | type: Price | description: Total price after all discounts and tax.
           - name: paymentOption  | type: string | description: Type of selected payment option for current item.  Default: `FULL_PAYMENT_ONLINE`
               enum: FULL_PAYMENT_ONLINE, FULL_PAYMENT_OFFLINE, MEMBERSHIP, DEPOSIT_ONLINE, MEMBERSHIP_OFFLINE, MEMBERSHIP_ONLINE_WITH_OFFLINE_REMAINDER
           - name: taxDetails  | type: ItemTaxFullDetails | description: Deprecated. Use `taxInfo` instead. This field will be removed on September 30, 2024. Tax details for this line item.
               - name: taxableAmount  | type: Price | description: Taxable amount of this line item.
               - name: taxRate  | type: string | description: Tax rate percentage, as a decimal numeral between 0 and 1. For example, `"0.13"`.
               - name: totalTax  | type: Price | description: The calculated tax, based on the `taxableAmount` and `taxRate`.
           - name: taxInfo  | type: LineItemTaxInfo | description: Represents all the relevant tax details for a specific line item.
               - name: taxAmount  | type: Price | description: Calculated tax, based on `taxable_amount` and `tax_rate`.
               - name: taxableAmount  | type: Price | description: Amount for which tax is calculated.
               - name: taxRate  | type: string | description: Tax rate %, as a decimal point.
               - name: taxGroupId  | type: string | description: Tax group ID.
               - name: taxIncludedInPrice  | type: boolean | description: Indicates whether the price already includes tax.
               - name: taxBreakdown  | type: Array<LineItemTaxBreakdown> | description: Tax information for a line item.
               - name: exemptAmount  | type: Price | description: Amount of the line item price that was exempt from tax.
           - name: digitalFile  | type: DigitalFile | description: Digital file identifier, relevant only for items with type DIGITAL.
               - name: fileId  | type: string | description: ID of the secure file in media.
               - name: link  | type: string | description: Link will exist after the digital links have been generated on the order.
               - name: expirationDate  | type: string | description: Link expiration time and date.
           - name: subscriptionInfo  | type: SubscriptionInfo | description: Subscription info.
               - name: id  | type: string | description: Subscription ID.  For a subscription bought through Wix eCommerce, this is the ID of the subscription contract the order was created from. To retrieve the subscription contract, call [Get Subscription Contract](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/payments/subscriptions/subscription-contracts/get-subscription-contract.md).
               - name: cycleNumber  | type: number | description: Billing cycle the order is for. For example, `3` for the third billing cycle of a subscription. When a subscription starts with a free trial, the order created at checkout is for cycle `0`.
               - name: subscriptionOptionTitle  | type: string | description: Subscription option title. For example, `"Monthly coffee Subscription"`.  Deprecated: use `title`, which also holds the title translated into the buyer's language.
               - name: title  | type: SubscriptionTitle | description: Subscription title.
               - name: subscriptionOptionDescription  | type: string | description: Subscription option description. For example, `"1kg of selected coffee, once a month"`.  Deprecated: use `description`, which also holds the translated description.
               - name: description  | type: SubscriptionDescription | description: Subscription description.
               - name: subscriptionSettings  | type: SubscriptionSettings | description: Subscription detailed information.
               - name: chargesDescription  | type: string | description: Description of the charges that will be applied for subscription.
               - name: cyclePriceOverride  | type: CyclePriceOverride | description: Cycle price override for the line item: the billing cycle it applies to, the line item's regular price, and the price the override sets for that cycle.  Returned only when a cycle price override sets a price that differs from the regular price.
           - 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).
               - name: translated  | type: string | description: Price description translated into the buyer's language.  Default: Same as `original`.
           - name: depositAmount  | type: Price | description: Item's price amount to be charged during checkout. Relevant for items with a `paymentOption` value of `"DEPOSIT_ONLINE"`.
           - name: locations  | type: Array<LocationAndQuantity> | description: Line item locations.  The location's total quantity must not exceed the line item quantity.
               - name: id  | type: string | description: Location id in the associated owner app.
               - name: appId  | type: string | description: Location owner app, if not provided then the site business info locations will be used.
               - name: quantity  | type: number | description: Quantity for specific location.
               - name: name  | type: string | description: Location name.
           - name: lineItemPrice  | type: Price | description: Total price **after** catalog discounts and line item discounts.
           - name: taxableAddress  | type: TaxableAddress | description: Address used for tax calculation.
               - ONE-OF:
                   - name: addressType  | type: string | description: taxable address type. if this field is selected, the address is automatically resolved, and the tax is calculated accordingly.
           - 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: decimalQuantity  | type: DecimalQuantity | description: Decimal-quantity metadata. Set when the line represents a non-integer purchase (e.g. 2.75 m² of fake grass).  When set, the line item must have `fixedQuantity` = true and be set with `quantity` = 1. The decimal value lives in `decimalQuantity.value`.
               - name: value  | type: string | description: The decimal quantity the buyer / merchant entered.  String-encoded decimal. The exact value is preserved — no rounding, no conversion to an integer.  Examples: "2.75", "1.5", "0.75".
               - name: description  | type: TranslatableString | description: Human-readable, pre-formatted display string for the quantity. For example, "2.75 square meters of fake grass". Always set alongside `value`; use this directly for display rather than composing your own string from `value` and `unit`.
               - ONE-OF:
                   - name: measurementUnit  | type: string | description: Unit the value is expressed in, selected from the standard `measurementUnit` enum.
                   - name: otherUnit  | type: string | description: Free-form unit name for standard units not in the `measurementUnit` enum (e.g. "hour", "minute", "session").
           - name: extendedFields  | type: ExtendedFields | description: Custom extended fields for the line item object.  [Extended fields](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/schema-plugins/about-schema-plugin-extensions.md) must be configured 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).
           - name: modifierGroups  | type: Array<ModifierGroup> | description: Modifier groups that were added to the item.
               - name: id  | type: string | description: Modifier group ID.
               - name: name  | type: TranslatableString | description: Modifier group name.
               - name: modifiers  | type: Array<ItemModifier> | description: List of modifiers in this group.
       - name: buyerInfo  | type: BuyerInfo | description: Buyer information.
           - name: contactId  | type: string | description: Contact ID. Automatically created if one doesn't exist. For more information, see [Contacts API](https://dev.wix.com/docs/api-reference/crm/members-contacts/contacts/contacts/contact-v4/introduction.md).
           - name: email  | type: string | description: Buyer's email address.
           - ONE-OF:
               - name: visitorId  | type: string | description: Visitor ID. Returned when the buyer isn't a logged-in site member.
               - name: memberId  | type: string | description: Member ID. Returned when the buyer is a logged-in site member.
       - name: buyerLanguage  | type: string | description: Language for communication with the buyer. For a site that supports multiple languages, this is the language the buyer selected.  Default: Site language
       - name: weightUnit  | type: string | description: Weight measurement unit.  Default: Site's weight unit
           enum: UNSPECIFIED_WEIGHT_UNIT, KG, LB
       - name: currency  | type: string | description: Currency used for the subscription contract's pricing, as a three-letter currency code in [ISO-4217](https://en.wikipedia.org/wiki/ISO_4217#List_of_ISO_4217_currency_codes) alphabetic format.
       - name: currencyConversionDetails  | type: CurrencyConversionDetails | description: Multi-currency details for a subscription paid in a currency other than the site's currency.
           - name: originalCurrency  | type: string | description: Currency used for the pricing of this order, in [ISO-4217](https://en.wikipedia.org/wiki/ISO_4217#List_of_ISO_4217_currency_codes) format.  This currency is used to calculate the pricing before conversion to the buyer's payment currency.
           - name: conversionRate  | type: string | description: The rate used for converting the original currency to the currency used for payment.  Returned only when a single rate produced every amount on the order. This is the case for an order converted once at checkout.
       - name: taxIncludedInPrices  | type: boolean | description: Whether tax is included in line item prices.  Default: `false`
       - name: priceSummary  | type: PriceSummary | description: Price summary of a single billing cycle.
           - name: subtotal  | type: Price | description: Subtotal of all line items, before discounts and before tax.
           - name: shipping  | type: Price | description: Total shipping price, before discounts and before tax.
           - name: tax  | type: Price | description: Total tax applied to the order.
           - name: discount  | type: Price | description: Total discount amount applied to the order.
           - name: total  | type: Price | description: Order's total price after discounts and tax.
           - name: totalAdditionalFees  | type: Price | description: Total additional fees before tax.
       - name: platformFeeSummary  | type: PlatformFeeSummary | description: Summary of platform fees calculated at checkout, including totals by charge type and a breakdown of individual fees.  Not updated when draft changes are committed. Each billing cycle's order holds the platform fees for that cycle.
           - name: total  | type: Price | description: Total sum of all platform fees.
           - name: totalPassOn  | type: Price | description: Total amount of platform fees with `PASS_ON` charge type.
           - name: totalAbsorbed  | type: Price | description: Total amount of platform fees with `ABSORBED` charge type.
           - name: fees  | type: Array<PlatformFee> | description: Specific information about each platform fee.
               - name: name  | type: TranslatableString | description: Platform fee name.
               - name: amount  | type: Price | description: Platform fee amount.
               - name: lineItemId  | type: string | description: ID of the line item the platform fee applies to.
               - name: chargeType  | type: string | description: Platform fee charge type.
               - name: percentageRate  | type: string | description: Percentage rate charged as platform fee. The fee rate percentage expressed as a decimal fraction between 0 and 1. For example, `0.05` for 5%.
       - name: billingInfo  | type: AddressWithContact | description: Billing address and contact details.
           - 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.
               - 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.
               - name: city  | type: string | description: City name.
               - name: postalCode  | type: string | description: Postal or zip code.
               - name: streetAddress  | type: StreetAddress | description: Street address.
               - name: addressLine  | type: string | description: Main address line (usually street name and number).
               - name: addressLine2  | type: string | description: Free text providing more detailed address info. Usually contains apt, suite, floor.
               - name: geocode  | type: AddressLocation | description: Geocode object containing latitude and longitude coordinates.
               - name: countryFullname  | type: string | description: Country's full name.
               - name: subdivisionFullname  | type: string | description: Subdivision full-name.
           - name: contactDetails  | type: FullAddressContactDetails | description: Contact details.
               - name: firstName  | type: string | description: First name.
               - name: lastName  | type: string | description: Last name.
               - name: phone  | type: string | description: Phone number.
               - name: company  | type: string | description: Company name.
               - name: vatId  | type: VatId | description: Tax information (for Brazil only). If ID is provided, `vatId.type` must also be set, `UNSPECIFIED` is not allowed.
       - name: shippingInfo  | type: ShippingInformation | description: Shipping information and selected shipping option details.
           - name: carrierId  | type: string | description: App Def Id of external provider which was a source of shipping info
           - name: code  | type: string | description: Unique code (or ID) of selected shipping option. For example, `"usps_std_overnight"`.
           - name: title  | type: string | description: Shipping option title. For example, `"USPS Standard Overnight Delivery"`, `"Standard"` or `"First-Class Package International"`.
           - name: logistics  | type: DeliveryLogistics | description: Shipping logistics.
               - name: deliveryTime  | type: string | description: Expected delivery time in free text. For example, `"3-5 business days"`.
               - name: instructions  | type: string | description: Instructions for the carrier. For example, `"Please knock on the door. If unanswered, please call contact number."`.
               - name: deliverByDate  | type: string | description: Deprecated - Latest expected delivery date and time in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format.
               - name: deliveryTimeSlot  | type: DeliveryTimeSlot | description: Expected delivery time slot with start and end times.
               - ONE-OF:
                   - name: shippingDestination  | type: AddressWithContact | description: Shipping destination address and contact details. For pickup orders, this contains the pickup location address, not the recipient's address.
                   - name: pickupDetails  | type: PickupDetails | description: Pickup details for store pickup or pickup point orders.
           - name: cost  | type: ShippingPrice | description: Shipping costs.
               - name: price  | type: Price | description: Shipping price for display purposes.
               - name: totalPriceBeforeTax  | type: Price | description: Total price of shipping after discounts (when relevant), and before tax.
               - name: totalPriceAfterTax  | type: Price | description: Shipping price after all discounts (if any exist), and after tax.
               - name: taxDetails  | type: ItemTaxFullDetails | description: Tax details.
               - name: taxInfo  | type: LineItemTaxInfo | description: Represents all the relevant tax details for a shipping.
               - name: discount  | type: Price | description: Shipping discount before tax.
           - name: region  | type: ShippingRegion | description: Shipping region.
               - name: name  | type: string | description: Name of shipping region. For example, `"Metropolitan London"`, or `"Outer Melbourne suburbs"`.
       - name: appliedDiscounts  | type: Array<AppliedDiscount> | description: Discounts applied to the subscription contract.
           - name: discountType  | type: string | description: Discount type.
               enum: GLOBAL, SPECIFIC_ITEMS, SHIPPING
           - name: lineItemIds  | type: Array<string> | description: __Deprecated.__ Use `lineItemDiscounts` instead.  IDs of line items the discount applies to.
           - name: id  | type: string | description: Discount ID.
           - name: lineItemDiscounts  | type: Array<LineItemDiscount> | description: Line items the discount applies to, including the discount amount for each.
               - name: id  | type: string | description: Line item ID.
               - name: totalDiscount  | type: Price | description: Total discount amount for this line item.
               - name: discountedQuantity  | type: number | description: Number of the line item's units the discount was applied to.  Returned only for a `SPECIFIC_ITEMS` discount.
           - ONE-OF:
               - name: coupon  | type: Coupon | description: Coupon applied by the customer.
                   - name: id  | type: string | description: Coupon ID.
                   - name: code  | type: string | description: Coupon code.
                   - name: name  | type: string | description: Coupon name.
                   - name: amount  | type: Price | description: Total amount the coupon took off.
                   - name: discountValueType  | type: string | description: How the coupon's discount is expressed. `percentage` holds the rate of a percentage coupon, and `amount` holds the total amount the coupon took off, whatever the type.  Not returned for a free-shipping coupon.
                   - ONE-OF:
                       - name: percentage  | type: string | description: Percentage the coupon took off the price. For example, `10.5` for 10.5%.  For a `SPECIFIC_ITEMS` discount, the percentage applies to the price of the discounted units, after the discounts applied earlier. For a `GLOBAL` discount, it applies to the order subtotal after the line item discounts. An order discount applied before the coupon, such as an automatic discount on the whole order, isn't taken off first.
               - name: merchantDiscount  | type: MerchantDiscount | description: Discount applied manually by the merchant.
                   - name: amount  | type: Price | description: Discount amount.
                   - ONE-OF:
                       - name: discountReason  | type: string | description: Predefined discount reason.
                       - name: description  | type: string | description: Custom discount description as free text.
               - name: discountRule  | type: DiscountRule | description: Automatic discount applied by the system based on configured discount rules.
                   - name: id  | type: string | description: Discount rule ID
                   - name: name  | type: DiscountRuleName | description: Discount rule name
                   - name: amount  | type: Price | description: Total amount the discount rule took off.
                   - name: discountValueType  | type: string | description: How the discount rule's discount is expressed. `percentage` holds the rate of a percentage discount rule, and `amount` holds the total amount the discount rule took off, whatever the type.  Not returned for a free-shipping discount rule.
                   - ONE-OF:
                       - name: percentage  | type: string | description: Percentage the discount rule took off the price. For example, `10.5` for 10.5%.  For a `SPECIFIC_ITEMS` discount, the percentage applies to the price of the discounted units. For a `GLOBAL` discount, it applies to the order subtotal. Either way, it's the price after any discounts applied earlier.
       - name: channelInfo  | type: ChannelInfo | description: Information about the sales channel the subscription was purchased through.
           - name: type  | type: string | description: Sales channel that submitted the order.  When creating an order via the API to record an external order, use the channel type that matches the original source. If no matching type exists, use `OTHER_PLATFORM`.
               enum: UNSPECIFIED, WEB, POS, EBAY, AMAZON, OTHER_PLATFORM, WIX_APP_STORE, WIX_INVOICES, BACKOFFICE_MERCHANT, WISH, CLASS_PASS, GLOBAL_E, FACEBOOK, ETSY, TIKTOK, FAIRE_COM, PAYPAL_AGENTIC_CHECKOUT, STRIPE_AGENTIC_CHECKOUT
           - name: externalOrderId  | type: string | description: Reference to an order ID from an external system. Relevant when recording orders from external platforms.
           - name: externalOrderUrl  | type: string | description: URL to the order in the external system. Relevant when recording orders from external platforms.
       - name: customFields  | type: Array<CustomField> | description: Custom fields.
           - name: value  | type: Value | description: Custom field value.
               - ONE-OF:
                   - name: nullValue  | type: NullValue | description: 
                   - name: numberValue  | type: number | description: 
                   - name: stringValue  | type: string | description: 
                   - name: boolValue  | type: boolean | description: 
                   - name: structValue  | type: Struct | description: 
                   - name: listValue  | type: ListValue | description: 
           - name: title  | type: string | description: Custom field title.
           - name: translatedTitle  | type: string | description: Translated custom field title.
       - name: recipientInfo  | type: AddressWithContact | description: Recipient address and contact details.  This field may differ from the address in `shippingInfo.logistics` when: + The chosen shipping option is pickup point or store pickup. + No shipping option is selected.
       - name: extendedFields  | type: ExtendedFields | description: Custom field data for the subscription contract object.  [Extended fields](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/schema-plugins/about-schema-plugin-extensions.md) must be configured in the app dashboard before they can be accessed with API calls.
       - name: title  | type: string | description: Subscription option title. For example, `"Monthly coffee Subscription"`.
       - name: subscriptionTitle  | type: SubscriptionTitle | description: Subscription title, in the site's default language and translated into the buyer's language. For example, `"Monthly coffee subscription"`.  For a subscription contract with more than one line item, holds a general name for the subscription.
           - name: original  | type: string | description: Subscription title in the site's default language.
           - name: translated  | type: string | description: Subscription title translated into the buyer's language.
       - name: additionalFees  | type: Array<AdditionalFee> | description: Additional fees applied to the subscription contract.
           - name: code  | type: string | description: Additional fee's unique code for future processing.
           - name: name  | type: string | description: Name of additional fee.
           - name: price  | type: Price | description: Additional fee's price.
           - name: taxDetails  | type: ItemTaxFullDetails | description: Tax details.
           - name: taxInfo  | type: LineItemTaxInfo | description: Represents all the relevant tax details for additional fee.
           - name: providerAppId  | type: string | description: SPI implementer's `appId`.
           - name: priceBeforeTax  | type: Price | description: Additional fee's price before tax.
           - name: priceAfterTax  | type: Price | description: Additional fee's price after tax.
           - name: id  | type: string | description: Additional fee's id.
           - name: lineItemIds  | type: Array<string> | description: Optional - Line items associated with this additional fee. If no `lineItemIds` are provided, the fee will be associated with the whole cart/checkout/order.
           - name: source  | type: string | description: Specifies the entity that added the additional fee.
               enum: SERVICE_PLUGIN, ITEM, MANUAL, SHIPPING, PLATFORM
           - name: taxableAddress  | type: TaxableAddress | description: Address type tax was calculated against for this fee.

```