> 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: Pricing API

# Type: Price Info Object

# Link: https://dev.wix.com/docs/api-reference/business-solutions/bookings/pricing/pricing-api/price-info-object.md

## Schema:

```json
 Type: Price Info Object | type: PriceInfo
       - name: bookingLineItems  | type: Array<BookingLineItem> | description: List of line items, including the number of participants and the price per participant.
           - name: serviceId  | type: string | description: [Service ID](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/introduction.md).  Required parameter in: - [Preview Price](https://dev.wix.com/docs/api-reference/business-solutions/bookings/pricing/pricing-api/preview-price.md) for all service types. All line items must have the same service ID. - [Calculate Price](https://dev.wix.com/docs/api-reference/business-solutions/bookings/pricing/pricing-api/calculate-price.md) when using Wix Bookings' default pricing logic. Optional in Calculate Price when using a Pricing Service Provider Plugin.
               - name: value  | type: string | description: 
           - name: resourceId  | type: string | description: [Resource ID](https://dev.wix.com/docs/rest/business-solutions/bookings/resources/resources-v2/introduction.md).  Required parameter in: - [Calculate Price](https://dev.wix.com/docs/api-reference/business-solutions/bookings/pricing/pricing-api/calculate-price.md) for all service types ([service types](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/about-service-types.md)). - [Preview Price](https://dev.wix.com/docs/api-reference/business-solutions/bookings/pricing/pricing-api/preview-price.md) for appointment-based services and classes. Optional in Preview Price for courses.
           - name: businessLocationId  | type: string | description: ID of the business location the booking takes place at. Used to resolve the price for `LOCATION` service options.  Limited to business locations. Custom and customer locations aren't supported.  Optional in [Preview Price](https://dev.wix.com/docs/api-reference/business-solutions/bookings/pricing/pricing-api/preview-price.md). If omitted, or if it doesn't match any `LOCATION` choice, the service's default price (`payment.varied.defaultPrice`) is used.  Returned in [Calculate Price](https://dev.wix.com/docs/api-reference/business-solutions/bookings/pricing/pricing-api/calculate-price.md) based on the location of the booking's slot or, for courses, the booking's schedule.
           - name: choices  | type: Array<ServiceChoice> | description: __Deprecated.__ Use `serviceChoices.choices` instead.  Service choices selected by the customer when booking.
               - name: optionId  | type: string | description: ID of the corresponding option for the choice. For example, the choice `child` could correspond to the option `ageGroup`. In this case, `optionId` is the ID for the `ageGroup` option.
               - name: choiceId  | type: string | description: ID of the service choice. When provided, the choice details are automatically populated based on this ID.
               - ONE-OF:
                   - name: custom  | type: string | description: Value for one of the choices in the [`CustomServiceOption.choices`](https://example.com) list. Choices are specific values for an option the customer can choose to book. For example, the option `ageGroup` may have these choices: `child`, `student`, `adult`, and `senior`. Each choice may have a different price.
                   - name: duration  | type: Duration | description: 
                   - name: dateTime  | type: DateTimeRule | description: The matched date-time pricing rule. Available only for `DATE_TIME` options.
                   - name: participantRange  | type: ParticipantsRange | description: The matched participants pricing rule. Available only for `NUMBER_OF_PARTICIPANTS` options.
                   - name: durationRange  | type: DurationRange | description: The matched duration range tier. Available only for `DURATION_RANGE` options.
           - name: numberOfParticipants  | type: number | description: __Deprecated.__ Use `serviceChoices.numberOfParticipants` instead.  Number of participants for the line item.
               - name: value  | type: number | description: 
           - name: pricePerParticipant  | type: number | description: __Deprecated.__ Use `serviceChoices.pricePerParticipant` instead.  Price per participant for the line item.
               - name: value  | type: number | description: 
           - name: serviceChoices  | type: Array<ServiceChoices> | description: Service choices selected by the customer when booking. Choices are specific values for service options that may affect pricing. For example, the option `ageGroup` may have choices like `child`, `student`, `adult`, and `senior`, each with different pricing. Refer to the [Service Options and Variants API](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/service-options-and-variants/introduction.md) for more details.
               - name: numberOfParticipants  | type: number | description: Number of participants for this service variant.
               - name: choices  | type: Array<ServiceChoice> | description: Service choices selected by these participants. Each choice represents a specific value for a service option. For example, age group, duration, or equipment type.
               - name: pricePerParticipant  | type: number | description: Price per participant for this service variant.  Exception: a group appointment (a service of type `APPOINTMENT` with `multipleParticipants.enabled`) has one price for the whole session, and this field holds that session price. A group appointment priced by a `NUMBER_OF_PARTICIPANTS` or `CUSTOM` option is still priced per participant.  To get the amount to charge, use the line item's `calculatedPrice`.
           - name: localStartDate  | type: string | description: Local start date and time of the booking. For example, `"2024-01-30T13:30:00"`.  Used together with `localEndDate` and `timeZone` to calculate duration-based pricing for services with a duration range configured. If not provided, pricing is calculated based on the number of participants only.
           - name: localEndDate  | type: string | description: Local end date and time of the booking. For example, `"2024-01-30T14:30:00"`.  Used together with `localStartDate` and `timeZone` to calculate duration-based pricing for services with a duration range configured. If not provided, pricing is calculated based on the number of participants only.
           - name: timeZone  | type: string | description: Time zone for `localStartDate` and `localEndDate` in IANA format. For example, `"America/New_York"`.  Required when `localStartDate` and `localEndDate` are provided.
           - name: calculatedPrice  | type: number | description: Base price of this line item on its own. `PriceInfo.calculatedPrice` is the total across all line items. For `SUBSCRIPTION`, this is the price of 1 billing cycle for the line item's participants. When the booking is paid upfront in one payment, it's the price of all billing cycles, including cycles that are already over. For a `FIXED` or `VARIED` course that has started, this can be a prorated price for the remaining sessions, when the [service's](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/services-v2/introduction.md) `bookingPolicy.prorationPolicy.enabled` is `true`. The prorated price is `0` when none of the course's sessions are remaining.
           - name: serviceFullPrice  | type: number | description: Price of this line item from the service's price settings, for its participants and choices, before proration. Returned only for `FIXED` and `VARIED`, when `calculatedPrice` is lower. For example, for a course that has started, when the [service's](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/services-v2/introduction.md) `bookingPolicy.prorationPolicy.enabled` is `true`.
           - name: subscriptionPriceInfo  | type: SubscriptionPriceInfo | description: Subscription price info of this line item: its payment schedule. Returned only if the [service's](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/services-v2/introduction.md) `payment.rateType` is `SUBSCRIPTION`.
               - name: startDate  | type: string | description: Date and time the subscription starts: the service's recurring start date when the course hasn't started and that date is still ahead, and otherwise the date and time of the calculation. When the [service's](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/services-v2/introduction.md) `bookingPolicy.prorationPolicy.enabled` is `true` and none of the course's sessions in the current billing cycle are remaining, it's the next billing day at 12:00 UTC instead.
               - name: numberOfPayments  | type: number | description: Number of payments left in the payment schedule, starting at `startDate`: the service's number of payments minus the billing cycles that end before `startDate`, and at least 1. When the [service's](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/services-v2/introduction.md) `bookingPolicy.prorationPolicy.enabled` is `true` and none of the course's sessions are remaining, it's `0` and `startDate` isn't returned. Paying upfront in one payment doesn't change this number, while `calculatedPrice` then covers all of the service's billing cycles, including cycles that are already over.
               - name: cyclePriceOverrides  | type: Array<SubscriptionCyclePriceOverride> | description: Prices for specific billing cycles that differ from the regular price per cycle. For example, a prorated first payment for a customer who joins a monthly course after it started. Cycles that no entry covers are charged the regular price per billing cycle. Holds at most 1 entry, for billing cycle `1`. Empty when every cycle is charged the regular price.
           - name: sessionCounts  | type: SessionCounts | description: Number of sessions of this line item's course, and how many of them are remaining. Returned only for courses.
               - name: totalCount  | type: number | description: Number of the course's sessions. Canceled sessions aren't counted.
               - name: remainingCount  | type: number | description: Number of the course's sessions that start after the date and time of the calculation. A session that has started isn't remaining, even if it hasn't ended. Canceled sessions aren't counted.
           - name: additionalFees  | type: Array<AppliedAdditionalFee> | description: Additional fees of the line item, for example a cleaning fee. A fee that comes to `0` isn't returned.
               - name: feeId  | type: string | description: ID of the additional fee in the [service's](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/services-v2/introduction.md) `payment.additionalFees`.
               - name: units  | type: number | description: Number of units the fee is charged for. `1` for a `PER_RESERVATION` fee. For a `PER_UNIT` fee, the reservation's duration in the service's `schedule.availabilityConstraints.durationRange.unitType`, for example `3` for a 3-day reservation, or for 3 nights of an overnight service. `1` when the service has no duration range.
               - name: amount  | type: number | description: Fee amount to charge: the service's fee amount multiplied by `units`, rounded half up to 2 decimal places.
       - name: serviceFullPrice  | type: number | description: Total of the line items' `serviceFullPrice`. A line item without `serviceFullPrice` adds its `calculatedPrice`. Returned only when at least 1 line item returns `serviceFullPrice`.
       - name: deposit  | type: number | description: Total deposit the customer must pay when booking the service. Available if the [service's](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/services-v2/introduction.md) `payment.options.deposit` is set to `true`. Doesn't include additional fees.
       - name: totalAdditionalFees  | type: number | description: Sum of the additional fees on all line items. Returned only when `calculatedPrice` is returned and at least 1 fee applies.
       - name: calculatedPriceWithFees  | type: number | description: `calculatedPrice` plus `totalAdditionalFees`. Returned only when `calculatedPrice` is returned and at least 1 fee applies.
       - ONE-OF:
           - name: calculatedPrice  | type: number | description: Calculated total price. Available if the [service's](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/services-v2/introduction.md) `payment.rateType` is `FIXED`, `VARIED`, `NO_FEE`, or `SUBSCRIPTION`. For `SUBSCRIPTION`, this is the price of 1 billing cycle for all participants. When the booking is paid upfront in one payment, it's the price of all billing cycles, including cycles that are already over. For a `FIXED` or `VARIED` course that has started, this can be a prorated price for the remaining sessions, when the service's `bookingPolicy.prorationPolicy.enabled` is `true`. The prorated price is `0` when none of the course's sessions are remaining. `serviceFullPrice` then holds the price before proration.
           - name: priceDescription  | type: string | description: Description of the total price. Available if the [service's](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/services-v2/introduction.md) `payment.rateType` is `CUSTOM`.
           - name: priceDescriptionInfo  | type: PriceDescriptionInfo | description: Description of the total price. Available if the [service's](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/services-v2/introduction.md) `payment.rateType` is `CUSTOM`.
               - name: original  | type: string | description: Price description in the site's main language. Refer to the [Site Properties API](https://dev.wix.com/docs/api-reference/business-management/site-properties/properties/introduction.md) for more details.
               - name: translated  | type: string | description: Translated price description. Available if the booking was made in a secondary language.

```