> 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: Services V2

# Type: Service Object

# Link: https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/services-v2/service-object.md

## Description: The `service` object represents an offering that a business provides to its customers.

## Schema:

```json
 Type: Service Object | type: Service
 Description: The `service` object represents an offering that a business provides to its customers.
       - name: id  | type: string | description: Service ID.
           - name: value  | type: string | description: 
       - name: appId  | type: string | description: ID of the app associated with the service. You can't update `appId`. Services are displayed in Wix Bookings only if they are associated with the Wix Bookings appId or have no associated app ID. Default: `13d21c63-b5ec-5912-8397-c3a5ddb27a97` (Wix Bookings app ID) For services from Wix apps, the following values apply: - Wix Bookings: `"13d21c63-b5ec-5912-8397-c3a5ddb27a97"` - Wix Services: `"cc552162-24a4-45e0-9695-230c4931ef40"` - Wix Meetings: `"6646a75c-2027-4f49-976c-58f3d713ed0f"`.<!-- [Scheduling Form Fields](https://dev.wix.com/docs/api-reference/business-solutions/bookings/about-scheduling-form-fields.md) services also use this app ID. Use `createdByAppId` to distinguish between Wix Meetings and Scheduling Form Fields services.--> [Full list of apps created by Wix](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/platform/about-apps-created-by-wix.md). <!-- TODO: Uncomment when Platform docs are published - Learn more about [app identity in the Bookings Platform](https://dev.wix.com/docs/api-reference/business-solutions/bookings/bookings-platform/app-identity-in-the-bookings-platform.md). -->
       - name: createdByAppId  | type: string | description: ID of the app that created the service. This field is used for analytics, auditing, and tracking creation sources. This read-only field is automatically populated during service creation by checking these sources in order: 1. The caller's App ID from the request identity context. 2. The service's `appId` field. 3. The Wix Bookings App ID (`13d21c63-b5ec-5912-8397-c3a5ddb27a97`) as the final fallback. <!-- TODO: Uncomment when Platform docs are published - Learn more about [app identity in the Bookings Platform](https://dev.wix.com/docs/api-reference/business-solutions/bookings/bookings-platform/app-identity-in-the-bookings-platform.md). -->
       - name: type  | type: string | description: Service type. Learn more about [service types](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/about-service-types.md).
           enum: APPOINTMENT, CLASS, COURSE
       - name: sortOrder  | type: number | description: Order of the service within a [category](https://dev.wix.com/docs/rest/business-solutions/bookings/services/categories-v1/category-object.md).
           - name: value  | type: number | description: 
       - name: name  | type: string | description: Service name.
       - name: description  | type: string | description: Service description. For example, `High-class hair styling, cuts, straightening and color`.
       - name: tagLine  | type: string | description: Short service description, such as `Hair styling`.
       - name: defaultCapacity  | type: number | description: Default maximum number of customers that can book the service. The service cannot be booked beyond this capacity.
       - name: media  | type: Media | description: Media associated with the service.
           - name: items  | type: Array<MediaItem> | description: Media items associated with the service.
               - ONE-OF:
                   - name: image  | type: Image | description: Details of the image associated with the service, such as URL and size.
           - name: mainMedia  | type: MediaItem | description: Primary media associated with the service.
           - name: coverMedia  | type: MediaItem | description: Cover media associated with the service.
       - name: hidden  | type: boolean | description: Whether the service is hidden from Wix Bookings pages and widgets.
           - name: value  | type: boolean | description: 
       - name: category  | type: Category | description: [Category](https://dev.wix.com/docs/rest/business-solutions/bookings/services/categories-v2/introduction.md) the service is associated with. Services aren't automatically assigned to a category. Without an associated category, the service isn't visible on the live site.
           - name: id  | type: string | description: Category ID.
           - name: name  | type: string | description: Category name.
           - name: sortOrder  | type: number | description: Order of a category within a category list.
       - name: form  | type: Form | description: Form the customer filled out when booking the service.
           - name: id  | type: string | description: ID of the form associated with the service. The form information that you submit when booking includes contact details, participants, and other form fields set up for the service. You can manage the service booking form fields using the Bookings Forms API.
       - name: payment  | type: Payment | description: Payment options for booking the service. Learn more about [service payments](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/about-service-payments.md).
           - name: rateType  | type: string | description: The rate the customer is expected to pay for the service.
               enum: FIXED, CUSTOM, VARIED, NO_FEE, SUBSCRIPTION
           - name: options  | type: PaymentOptions | description: The payment options a customer can use to pay for the service.
               - name: online  | type: boolean | description: Customers can pay for the service online. When `true`: + `rateType` must be `FIXED`, `VARIED`, or `SUBSCRIPTION`. + `fixed.price`, `varied.defaultPrice`, or `subscription.amountPerBillingCycle` must be specified respectively.  Required when: `rateType` is `SUBSCRIPTION`. Read more about [getting paid online](https://support.wix.com/en/article/wix-bookings-about-getting-paid-online).
               - name: inPerson  | type: boolean | description: Customers can pay for the service in person.
               - name: deposit  | type: boolean | description: This service requires a deposit to be made online in order to book it. When `true`: + `rateType` must be `VARIED` or `FIXED`. + A `deposit` must be specified. + `online` must be `true`. + `inPerson` must be `false`.
               - name: pricingPlan  | type: boolean | description: Whether customers can pay for the service using a pricing plan. Read more about [service payment options](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/services-v2/about-service-payments.md).
           - name: pricingPlanIds  | type: Array<string> | description: IDs of pricing plans that can be used as payment for the service. Read more about [service payment options](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/services-v2/about-service-payments.md).
           - name: addOnOption  | type: string | description: How customers can pay for add-ons when paying for the related booking with a [pricing plan](https://dev.wix.com/docs/api-reference/business-solutions/pricing-plans/pricing-plans/introduction.md). If customers pay for the booking using any method other than a pricing plan, the value of this field is ignored.
               enum: ONLINE, IN_PERSON
           - name: discountInfo  | type: DiscountInfo | description: Estimated discount information for the service based on active [eCommerce discounts](https://dev.wix.com/docs/rest/business-solutions/e-commerce/extensions/discounts/introduction.md). The final discount is determined during eCommerce checkout and may differ from the estimate, for example when discounts depend on cart totals.  A discount is considered active when its start time has passed and its end time hasn't. If multiple active discounts apply, one is returned: + Services with subscription pricing: the most recently updated discount that the business set to cover subscription purchases. + Other services, when at least one discount's price can be estimated: the discount with the lowest estimated price. + Other services, when no discount's price can be estimated: the most recently updated discount.  The returned discount is an estimate and isn't guaranteed to be the one applied at checkout.  Returned only when `DISCOUNT_INFO_DETAILS` is requested.
               - name: discountName  | type: string | description: Name of the discount. For example, `Summer Sale - 20% Off`.
               - name: priceAfterDiscount  | type: Money | description: Estimated price after applying the discount. The final price is determined at checkout and may differ when additional discounts are applied or rules are re-evaluated with complete booking information. For services with subscription pricing, this is the estimated price per billing cycle for the discounted cycles (see `discountedCycleCount`).  Not returned when the discount depends on booking or cart context, for example a discount that applies to a service only when booked together with another service, or when the discount requires information only available at checkout.
               - name: discountedCycleCount  | type: number | description: Number of billing cycles the discount applies to, starting from the first paid cycle. Returned only for services with subscription pricing. Not returned when the discount applies to all of the service's payments (`totalPayments`).
           - name: additionalFees  | type: Array<AdditionalFee> | description: Mandatory fees the customer pays in addition to the service price, for example a cleaning fee. Fees aren't part of the deposit.  When you update `additionalFees`, the list you send replaces the existing fees. Fees you leave out are removed. To keep a fee, including when you rename it, send it with its existing `id`.  Each fee's `amount.currency` is set to the service currency.
               - name: id  | type: string | description: Fee ID. Wix Bookings assigns it when the fee is created. To keep a fee's ID when updating the service, pass the existing ID. A fee sent without an ID, or with an ID that isn't on the service, gets a new ID.
               - name: name  | type: string | description: Fee name, shown to the customer.  Required for each fee you send.
               - name: amount  | type: Money | description: Fee amount in the service currency. Must be greater than `0`. For a `PER_UNIT` fee, the amount charged for each unit.  Required for each fee you send.
               - name: chargeType  | type: string | description: Whether the fee is charged once per reservation or for each unit of the reservation's duration.  Required for each fee you send.
           - ONE-OF:
               - name: fixed  | type: FixedPayment | description: The details for the fixed price of the service.  Required when: `rateType` is `FIXED`
                   - name: price  | type: Money | description: The fixed price required to book the service.  Required when: `rateType` is `FIXED`
                   - name: deposit  | type: Money | description: The deposit price required to book the service.  Required when: `rateType` is `FIXED` and `paymentOptions.deposit` is `true`
                   - name: fullUpfrontPaymentAllowed  | type: boolean | description: Whether customers can choose to pay the full service price upfront instead of only the deposit.  Used only when a `deposit` amount is set.  Default: `false`.
                   - name: depositDetails  | type: DepositDetails | description: The deposit required to book the service, expressed as either a fixed amount or a percentage of the price.  Used only when `paymentOptions.deposit` is `true`.
               - name: custom  | type: CustomPayment | description: The details for the custom price of the service.  Required when: `rateType` is `CUSTOM`
                   - name: description  | type: string | description: A custom description explaining to the customer how to pay for the service.
               - name: varied  | type: VariedPayment | description: The details for the varied pricing of the service. Read more about [varied price options](https://support.wix.com/en/article/wix-bookings-about-getting-paid-online#offering-varied-price-options).  Required when: `rateType` is `VARIED`
                   - name: defaultPrice  | type: Money | description: The default price for the service without any variants. It will also be used as the default price for any new variant.
                   - name: deposit  | type: Money | description: The deposit price required to book the service.  Required when: `rateType` is `VARIED` and `paymentOptions.deposit` is `true`
                   - name: minPrice  | type: Money | description: The minimal price a customer may pay for this service, based on its variants.
                   - name: maxPrice  | type: Money | description: The maximum price a customer may pay for this service, based on its variants.
                   - name: fullUpfrontPaymentAllowed  | type: boolean | description: Whether customers can choose to pay the full service price upfront instead of only the deposit.  Used only when a `deposit` amount is set.  Default: `false`.
                   - name: depositDetails  | type: DepositDetails | description: The deposit required to book the service, expressed as either a fixed amount or a percentage of the price.  Used only when `paymentOptions.deposit` is `true`.
               - name: subscription  | type: SubscriptionPayment | description: Subscription pricing details for the service. Supported for course services only. The business charges recurring monthly payments instead of a one-time fee.  Required when: `rateType` is `SUBSCRIPTION`.
                   - name: amountPerBillingCycle  | type: Money | description: Base price charged per billing cycle before tax and discounts. The actual amount charged may differ after checkout applies tax and discounts.
                   - name: frequency  | type: string | description: Billing frequency for recurring subscription charges. Reflected as `billingFrequency` in the booking's subscription info.  Currently supports `MONTHLY` only.
                   - name: totalPayments  | type: number | description: Total number of billing cycles in the subscription. For example, `12` for a 12-month subscription with monthly payments. Reflected as `totalCycles` in the booking's subscription info.  Required when: `rateType` is `SUBSCRIPTION`.
                   - name: firstChargeDate  | type: string | description: Determines when the first billing cycle payment is charged. Used together with `recurringStartDate` to define the subscription billing schedule.
                   - name: recurringStartDate  | type: string | description: Date and time when recurring billing starts.  When `firstChargeDate` is `CHECKOUT`, the first charge occurs at checkout and subsequent billing cycles start from this date.  When `firstChargeDate` is `SCHEDULED`, the first charge occurs on this date.  Customers who book after recurring billing starts are billed for the remaining billing cycles only.  Required when: `rateType` is `SUBSCRIPTION`.
       - name: onlineBooking  | type: OnlineBooking | description: Online booking settings.
           - name: enabled  | type: boolean | description: Whether the service can be booked online. When set to `true`, customers can book the service online. Configure the payment options via the `service.payment` property. When set to `false`, customers cannot book the service online, and the service can only be paid for in person.
           - name: requireManualApproval  | type: boolean | description: Booking the service requires approval by the Wix user.
           - name: allowMultipleRequests  | type: boolean | description: Multiple customers can request to book the same time slot. This is relevant when `requireManualApproval` is `true`.
       - name: conferencing  | type: Conferencing | description: Conferencing options for the service.
           - name: enabled  | type: boolean | description: Whether a conference link is generated for the service's sessions.
       - name: locations  | type: Array<Location> | description: The locations this service is offered at. Read more about [service locations](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/about-service-locations.md).
           - name: id  | type: string | description: Location ID.
           - name: type  | type: string | description: Location type.  Default: `CUSTOM`
               enum: CUSTOM, BUSINESS, CUSTOMER
           - name: calculatedAddress  | type: Address | description: Location address. Empty for `{"type": "CUSTOMER"}`.
               - name: country  | type: string | description: 2-letter country code in an [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format.
               - name: subdivision  | type: string | description: Code for a subdivision (such as state, prefecture, or province) in [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2) format.
               - name: city  | type: string | description: City name.
               - name: postalCode  | type: string | description: Postal or zip code.
               - name: formattedAddress  | type: string | description: Full address of the location.
               - ONE-OF:
                   - name: streetAddress  | type: StreetAddress | description: Street name and number.
                   - name: addressLine  | type: string | description: 
           - ONE-OF:
               - name: business  | type: BusinessLocationOptions | description: Information about business locations. Required when `type` is `BUSINESS`.
                   - name: id  | type: string | description: ID of the business [location](https://dev.wix.com/docs/api-reference/business-management/locations/introduction.md). When setting a business location, specify only the location ID. Other location details are overwritten.
                   - name: name  | type: string | description: Business location name.
                   - name: default  | type: boolean | description: Whether this is the default location. There can only be a single default location per site.
                   - name: address  | type: Address | description: Business location address.
                   - name: email  | type: string | description: Business location email.
                   - name: phone  | type: string | description: Business location phone.
               - name: custom  | type: CustomLocationOptions | description: Information about custom locations. Required when `type` is `CUSTOM`.
                   - name: id  | type: string | description: ID of the custom location.
                   - name: address  | type: Address | description: Address of the custom location.
       - name: bookingPolicy  | type: BookingPolicy | description: [Policy](https://dev.wix.com/docs/rest/business-solutions/bookings/policies/booking-policies/introduction.md) determining under what conditions this service can be booked. For example, whether the service can only be booked up to 30 minutes before it begins.
           - name: id  | type: string | description: The ID to the policy for the booking.
           - name: createdDate  | type: string | description: Date and time the policy was created.
               - name: seconds  | type: string | description: 
               - name: nanos  | type: number | description: 
           - name: updatedDate  | type: string | description: Date and time the policy was updated.
           - name: name  | type: string | description: Name of the policy.
           - name: customPolicyDescription  | type: PolicyDescription | description: Custom description for the policy. This policy is displayed to the participant.
               - name: enabled  | type: boolean | description: Whether the description should be displayed. If `true`, the description is displayed.  Default: `false`
               - name: description  | type: string | description: The description to display.  Default: Empty Max length: 2500 characters
           - name: default  | type: boolean | description: Whether the policy is the default for the meta site.
           - name: limitEarlyBookingPolicy  | type: LimitEarlyBookingPolicy | description: Policy for limiting early bookings.
               - name: enabled  | type: boolean | description: Whether there is a limit on how early a customer can book. When `false`, there is no limit on the earliest booking time and customers can book in advance, as early as they like.  Default: `false`
               - name: earliestBookingInMinutes  | type: number | description: Maximum number of minutes before the start of the session that a booking can be made. This value must be greater than `latest_booking_in_minutes` in the `LimitLateBookingPolicy` policy.  Default: 10080 minutes (7 days) Min: 1 minute
           - name: limitLateBookingPolicy  | type: LimitLateBookingPolicy | description: Policy for limiting late bookings.
               - name: enabled  | type: boolean | description: Whether there is a limit on how late a customer can book. When `false`, there is no limit on the latest booking time and customers can book up to the last minute.  Default: `false`
               - name: latestBookingInMinutes  | type: number | description: Minimum number of minutes before the start of the session that a booking can be made. For a schedule, this is relative to the start time of the next booked session, excluding past-booked sessions. This value must be less than `earliest_booking_in_minutes` in the `LimitEarlyBookingPolicy` policy.  Default: 1440 minutes (1 day) Min: 1 minute
           - name: bookAfterStartPolicy  | type: BookAfterStartPolicy | description: Policy on booking an entity after the start of the schedule.
               - name: enabled  | type: boolean | description: Whether booking is allowed after the start of the schedule. When `true`, customers can book after the start of the schedule.  Default: `false`
           - name: cancellationPolicy  | type: CancellationPolicy | description: Policy for canceling a booked entity.
               - name: enabled  | type: boolean | description: Whether canceling a booking is allowed. When `true`, customers can cancel the booking.  Default: `false`
               - name: limitLatestCancellation  | type: boolean | description: Whether there is a limit on the latest cancellation time. When `true`, a time limit is enforced.  Default: `false`
               - name: latestCancellationInMinutes  | type: number | description: Minimum number of minutes before the start of the booked session that the booking can be canceled.  Default: 1440 minutes (1 day) Min: 1 minute
               - name: allowAnonymous  | type: boolean | description: Whether this cancellation policy allows anonymous cancellations.  **Important**: This flag only applies when `enabled` is `true`. If the cancellation policy itself is disabled (`enabled` = `false`), anonymous users cannot cancel regardless of this flag's value.  When not set (null), defaults to enabled. Anonymous cancellations are allowed by default so that customers aren't required to be site members to cancel their bookings.  Default: `null` (treated as `true`)
           - name: reschedulePolicy  | type: ReschedulePolicy | description: Policy for rescheduling a booked entity.
               - name: enabled  | type: boolean | description: Whether rescheduling a booking is allowed. When `true`, customers can reschedule the booking.  Default: `false`
               - name: limitLatestReschedule  | type: boolean | description: Whether there is a limit on the latest reschedule time. When `true`, a time limit is enforced.  Default: `false`
               - name: latestRescheduleInMinutes  | type: number | description: Minimum number of minutes before the start of the booked session that the booking can be rescheduled.  Default: 1440 minutes (1 day) Min: 1 minute
               - name: allowAnonymous  | type: boolean | description: Whether this reschedule policy allows anonymous rescheduling.  **Important**: This flag only applies when `enabled` is `true`. If the reschedule policy itself is disabled (`enabled` = `false`), anonymous users cannot reschedule regardless of this flag's value.  When not set (null), defaults to enabled. Anonymous rescheduling is allowed by default so that customers aren't required to be site members to reschedule their bookings.  Default: `null` (treated as `true`)
           - name: waitlistPolicy  | type: WaitlistPolicy | description: Waitlist policy for the service.
               - name: enabled  | type: boolean | description: Whether the session has a waitlist. If `true`, there is a waitlist.  Default: `false`
               - name: capacity  | type: number | description: Number of spots available in the waitlist.  Default: 10 spots Min: 1 spot
               - name: reservationTimeInMinutes  | type: number | description: Amount of time a participant is given to book, once notified that a spot is available.  Default: 10 minutes Min: 1 spot
           - name: participantsPolicy  | type: ParticipantsPolicy | description: Policy regarding the participants per booking.
               - name: maxParticipantsPerBooking  | type: number | description: Maximum number of participants allowed.  Default: 1 participant Min: 1 participant
           - name: resourcesPolicy  | type: ResourcesPolicy | description: Policy for allocating resources.
               - name: enabled  | type: boolean | description: `true` if this policy is enabled, `false` otherwise. When `false` then the client must always select a resource when booking an appointment.
               - name: autoAssignAllowed  | type: boolean | description: `true`, if it is allowed to automatically assign a resource when booking an appointment, `false`, if the client must always select a resource.  Default: `false`
           - name: cancellationFeePolicy  | type: CancellationFeePolicy | description: Rules for cancellation fees.
               - name: enabled  | type: boolean | description: Whether canceling a booking will result in a cancellation fee  Default: `false`
               - name: cancellationWindows  | type: Array<CancellationWindow> | description: Cancellation windows describing the time of cancellation and the fee to charge.
               - name: autoCollectFeeEnabled  | type: boolean | description: Whether the cancellation fee should not be automatically collected when customer cancels the booking.  Default: `true`
           - name: saveCreditCardPolicy  | type: SaveCreditCardPolicy | description: Rule for saving credit card.
               - name: enabled  | type: boolean | description: Default: `false`
           - name: intakeFormPolicy  | type: IntakeFormPolicy | description: Rule for requiring customers to complete an [intake form](https://dev.wix.com/docs/api-reference/crm/forms/other-services/intake-forms/introduction.md) during or after booking.
               - name: enabled  | type: boolean | description: Whether intake form integration is enabled for the service. Default: `false`
               - name: formId  | type: string | description: ID of the intake form to integrate with the service.
               - name: timing  | type: string | description: When to present the intake form to the customer.
               - name: completionRequirement  | type: string | description: 
           - name: bookForSomeoneElseAllowed  | type: boolean | description: Whether logged-in members can book the service for a guest, someone other than themselves, by entering the guest's contact details in the booking form.  When `true`, [bookings](https://dev.wix.com/docs/api-reference/business-solutions/bookings/bookings/bookings-writer-v2/introduction.md) for the service can have `bookedForSomeoneElse` set to `true`. This field can't be `true` when `intakeFormPolicy.enabled` is `true` and `intakeFormPolicy.completionRequirement` is `REQUIRED_BEFORE_BOOKING`.  Default: `false`.
       - name: schedule  | type: Schedule | description: The service's [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/introduction.md), which can be used to manage the service's [events](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/introduction.md).
           - name: id  | type: string | description: ID of the [schedule](https://dev.wix.com/docs/api-reference/business-management/calendar/schedules-v3/introduction.md) to which the service's events belong.
           - name: firstSessionStart  | type: string | description: Start time of the first session in the schedule. For courses only.
           - name: lastSessionEnd  | type: string | description: End time of the last session in the schedule. For courses only.
           - name: availabilityConstraints  | type: AvailabilityConstraints | description: Limitations affecting the service availability.
               - name: durations  | type: Array<Duration> | description: Calculated list of all supported session durations for the service. For appointment-based services without varied pricing based on session length, it matches the single value in the `sessionDurations` array. For appointment-based services with varied pricing based on session length, it includes session durations for all [variants](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/service-options-and-variants/introduction.md), while ignoring `sessionDurations`. For courses and classes, it includes durations for all future recurring sessions but excludes durations for one-off or past recurring sessions.
               - name: sessionDurations  | type: Array<integer> | description: List of supported session durations in minutes.  - For appointment-based services, specify `sessionDurations` when creating a service. - For appointment-based services with varied pricing by session length, you must still specify `sessionDurations`, but the values are ignored. Actual durations are taken from the [service variants](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/service-options-and-variants/introduction.md). - For classes or courses, don't specify `sessionDurations` when creating a service.
               - name: timeBetweenSessions  | type: number | description: The number of minutes between the end of a session and the start of the next.
               - name: durationRange  | type: DurationRange | description: Duration range for the service. When set, the customer picks a duration within the configured min/max range instead of a fixed session duration. Mutually exclusive with `sessionDurations`. A service uses one or the other. Can't be combined with `workingHours`, unless `workingHours.mode` is `INTERSECT_BUSINESS_WORKING_HOURS`.  Use `durationRange` for services where the customer chooses how long to book, such as equipment or space rentals. The `unitType` determines whether the range is measured in hours or days.
       - name: staffMemberIds  | type: Array<string> | description: IDs of the [resources](https://dev.wix.com/docs/api-reference/business-solutions/bookings/resources/resources-v2/introduction.md) associated with the [staff members](https://dev.wix.com/docs/api-reference/business-solutions/bookings/staff-members/staff-members/introduction.md) providing the service. Note that these are the resource IDs, not the staff member IDs.  For appointment-based services, set this field when creating or updating the service. For classes and courses, this field is read-only and is automatically derived from staff assigned to the service's recurring scheduled sessions. Staff assigned only to single, non-recurring events are not included. Once all of a staff member's upcoming recurring sessions have ended, their ID is removed from this field. To retrieve the full list of staff for classes or courses, query the service's calendar events instead. Learn more about [retrieving staff for classes and courses](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/services-v2/sample-flows.md#retrieve-staff-members-for-a-class-or-course).
       - name: staffMemberDetails  | type: StaffMemberDetails | description: Staff members details. Returned only if `STAFF_MEMBER_DETAILS` conditional field was specified.
           - name: staffMembers  | type: Array<StaffMember> | description: Staff members providing the service. For appointments only.
               - name: staffMemberId  | type: string | description: ID of the [resource](https://dev.wix.com/docs/api-reference/business-solutions/bookings/resources/resources-v2/introduction.md) associated with the staff member providing the service. Despite the field name, this is the resource ID, not the staff member ID. This value matches the staff member's `resourceId` from the [Staff Members API](https://dev.wix.com/docs/api-reference/business-solutions/bookings/staff-members/staff-members/introduction.md) and corresponds to the IDs in the service's `staffMemberIds` field.
               - name: name  | type: string | description: Name of the staff member
               - name: mainMedia  | type: StaffMediaItem | description: Main media associated with the service.
               - name: workingHoursLocationCoverage  | type: WorkingHoursLocationCoverage | description: Business locations where the staff member is available, based on their working hours. Returned only when both `STAFF_MEMBER_DETAILS` and `STAFF_WORKING_HOURS_LOCATIONS` are passed in `conditionalFields`. Can be omitted for a staff member who has no working hours. Treat a missing value the same as `availableAtAllLocations` set to `false` with an empty `locationIds`. When the working hours data can't be retrieved, the entire request fails.
       - name: serviceResources  | type: Array<ServiceResource> | description: Information about which resources must be available so customers can book the service. For example, a meeting room or equipment. Some nested fields are only returned when specific conditional fields are requested: pass `RESOURCE_TYPE_DETAILS` to retrieve `resourceType.name`, and `RESOURCE_DETAILS` to retrieve `resourceDetails.resources`.
           - name: resourceType  | type: ResourceType | description: Details about the required [resource type](https://dev.wix.com/docs/api-reference/business-solutions/bookings/resources/resource-types-v2/introduction.md).
               - name: id  | type: string | description: The type of the resource.
               - name: name  | type: string | description: The name of the resource type.
           - ONE-OF:
               - name: resourceIds  | type: ResourceIds | description: IDs of specific [resources](https://dev.wix.com/docs/api-reference/business-solutions/bookings/resources/resources-v2/introduction.md) assigned to this service resource. Each ID must reference a resource within the specified `resourceType`.  When set, only these resources are considered for availability and booking. When not set, all resources of the specified resource type are eligible.
                   - name: values  | type: Array<string> | description: Values of the resource IDs.
       - name: supportedSlugs  | type: Array<Slug> | description: A slug is the last part of the URL address that serves as a unique identifier of the service. The list of supported slugs includes past service names for backwards compatibility, and a custom slug if one was set by the business owner.
           - name: name  | type: string | description: The unique part of service's URL that identifies the service's information page. For example, `service-1` in `https:/example.com/services/service-1`.
           - name: custom  | type: boolean | description: Whether the slug was generated or customized. If `true`, the slug was customized manually by the business owner. Otherwise, the slug was automatically generated from the service name.
           - name: createdDate  | type: string | description: Date and time the slug was created. This is a system field.
       - name: mainSlug  | type: Slug | description: Active slug for the service. Learn more about [service slugs](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/about-service-slugs.md).
       - name: urls  | type: URLs | description: URLs to various service-related pages, such as the calendar page and the booking page.
           - name: servicePage  | type: PageUrlV2 | description: The URL for the service page.
               - 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: bookingPage  | type: PageUrlV2 | description: The URL for the booking entry point. It can be either to the calendar or to the service page.
           - name: calendarPage  | type: PageUrlV2 | description: The URL for the calendar. Can be empty if no calendar exists.
       - name: extendedFields  | type: ExtendedFields | description: Extensions enabling users to save custom data related to the service.
           - 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: seoData  | type: SeoSchema | description: Custom SEO data for the service.
           - name: tags  | type: Array<Tag> | description: The tags rendered into <head>, in no particular order. Render order is decided by the renderer, not by position in this list.  No maxSize: this list is already populated by data written years ago, and a bound added now could reject a page that is already stored.
               - name: type  | type: string | description: Legacy. Was a free-form string: "title" | "meta" | "script" | "link". The typed replacement is the `kind` oneof on `SeoSchemaV2.Tag`, which makes the invalid combinations unrepresentable rather than merely discouraged.  Which of these an API actually accepts depends on where the tag is being set: this list is not a blanket guarantee across every API that reuses this message. Site SEO Tags in particular accepts only `meta` (see `SiteSeoTags.tags`) and rejects `title`/`script`/`link` with a validation error even though they appear here — check the field description of the specific `tags`-typed field you are writing to.  Limitation: `title` and `script` (e.g. a `script` tag with `props.type` "application/ld+json" carrying structured data) are supported only when `custom` is unset or `false`. Setting `custom: true` on a `title` or `script` tag is rejected with `TAG_TYPE_NOT_ALLOWED`, because `custom: true` routes the write through the site's Advanced/Custom Tags list. To write structured data, omit `custom` (or set it to `false`).  No length limit: this field holds data written years ago by writers we are not migrating. A constraint here could reject a record that is already stored, which is exactly the promise this design makes.
               - name: props  | type: Struct | description: Legacy. Was an untyped bag of HTML attributes. Typed replacement: `SeoSchemaV2.TitleTag` / `MetaTag` / `LinkTag`.
               - name: meta  | type: Struct | description: Legacy. Was an untyped bag of 16 mixed-purpose keys. In `SeoSchemaV2` its contents are split by purpose: per-page structured-data state moves to StructuredDataTag, authorship to `written_by`, and render-time preset logic (variants, enabledByExperiment, removeSchemaIf*) moved out of the stored document entirely — it belongs to the preset definition, not to the page. See the design log for the full key-by-key mapping.
               - name: children  | type: string | description: Legacy. Was the tag's inner content, doubling as the JSON-LD payload for script tags. Typed replacement: `SeoSchemaV2.TitleTag.text` and `StructuredDataTag.json_ld`. No length limit, for the same reason as `type` above.
               - name: custom  | type: boolean | description: Whether the tag is a [custom tag](https://support.wix.com/en/article/adding-additional-meta-tags-to-your-sites-pages) — i.e. an entry from the site's Advanced/Custom Tags list.  Setting this to `true` on a write restricts which `type` values are accepted — the same restriction the Advanced/Custom Tags UI enforces. `title` and `script` tags (including JSON-LD structured data) must be sent with `custom` omitted or `false`; sending them with `custom: true` is rejected with `TAG_TYPE_NOT_ALLOWED`.  Note this is a separate restriction from Site SEO Tags' own type restriction on `SiteSeoTags.tags`: even with `custom` unset, Site SEO Tags rejects `script` (e.g. for site-wide structured data) unconditionally. There is currently no way to set site-wide, every-page structured data through any of these APIs — write a per-page `script` tag through the Item SEO Tags API instead.  This flag is scoped to that feature only. It is NOT an indicator of whether a standard tag (`title`, `description`, Open Graph, etc.) reflects a manually configured value versus a computed default/pattern — standard tags always resolve with `custom: false`, even when their content comes from a page's manually saved SEO title/description override. Don't use this field to verify whether a live page reflects a manual per-page SEO edit.  Limitation: when `ResolveStaticPageSeoTags` is called without `seoData`, the per-page SEO data is read only from the Vibe/Wix-managed-headless override store. That store holds nothing for classic Wix Editor or Wix Studio pages, so even genuine Advanced/Custom Tags saved on those pages are missing from the response entirely — there, `false` means this API could not tell, not that no custom tag exists. Pass `seoData` explicitly to resolve against a known set of tags.  `SeoSchemaV2.Tag` expresses this as `written_by = USER_CUSTOM`.
               - name: disabled  | type: boolean | description: Whether the tag is excluded from the rendered <head>.  A disabled tag is still stored, so the user can re-enable it and so a pattern-provided tag stays suppressed on this page. Default false.
           - name: settings  | type: Settings | description: Page-level SEO settings that are not themselves tags.
               - name: preventAutoRedirect  | type: boolean | description: Whether to suppress the automatic redirect from this page's previous URL to its current one after a slug change.  Default false, meaning the redirect IS created. The field is named for the exception rather than the rule, which reads backwards; kept as-is because renaming a stored boolean is not worth the migration.
               - name: keywords  | type: Array<Keyword> | description: Keyword terms the user is targeting for this page. Used by the SEO assistant and checklist; never rendered into <head>.  20 is a sanity bound, not the product limit. v1 declared 5 — the number the panel happens to allow today — which is exactly the mistake we are fixing for structured data. A product decision to allow 8 should not need a proto release, so the panel owns that number and the proto only stops something absurd.
       - name: createdDate  | type: string | description: Date and time the service was created in `YYYY-MM-DDThh:mm:ss.sssZ` format.
       - name: updatedDate  | type: string | description: Date and time the service was updated in `YYYY-MM-DDThh:mm:ss.sssZ` format.
       - name: revision  | type: string | description: Revision number, which increments by 1 each time the service is updated. To prevent conflicting changes, the existing revision must be used when updating a service.
           - name: value  | type: string | description: 
       - name: addOnGroups  | type: Array<AddOnGroup> | description: Information about the [add-on groups](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/services-v2/about-add-on-groups.md) associated with the service.
           - name: id  | type: string | description: ID of the add-on group. Wix Bookings automatically populates this field when creating or updating an add-on group.
           - name: name  | type: string | description: Name of the add-on group.
           - name: maxNumberOfAddOns  | type: number | description: Maximum number of different [add-ons](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/add-ons/introduction.md) from the group customers can add when booking the service. When empty, there's no upper limit.
           - name: addOnIds  | type: Array<StringValue> | description: List of IDs of all [add-ons](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/add-ons/introduction.md) included in the group.
           - name: prompt  | type: string | description: Description or instructional prompt of the add-on group that's displayed to customers when booking the service.
       - name: addOnDetails  | type: Array<AddOnDetails> | description: Details about all [add-ons](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/add-ons/introduction.md) customers can choose when booking the service.
           - name: addOnId  | type: string | description: ID of the add-on.
           - name: durationInMinutes  | type: number | description: Duration in minutes for add-ons that extend service time. Empty for [quantity-based add-ons](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/add-ons/introduction.md#terminology).
       - name: taxableAddress  | type: TaxableAddress | description: Taxable address used to calculate tax
           - name: taxableAddressType  | type: string | description: Taxable address type.
               enum: BUSINESS, BILLING
       - name: primaryResourceType  | type: string | description: ID of the [resource type](https://dev.wix.com/docs/api-reference/business-solutions/bookings/resources/resource-types-v2/introduction.md) that serves as the primary resource for this appointment service. The primary resource type determines which resources drive slot assignment and availability resolution.  For example, when set to a "Meeting Rooms" resource type, availability is calculated based on the rooms' schedules rather than staff schedules.  Default: The staff resource type.

```