> 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: Error Messages

## Article: Error Messages

## Article Link: https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/service-options-and-variants/error-messages.md

## Article Content:

# Wix Bookings Service Options and Variants Errors


This article outlines error messages that might be issued when calling 
endpoints of the Wix Bookings Service Options and Variants API.


## Create Service Options and Variants Errors


The [Create Service Options and Variants](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/service-options-and-variants/create-service-options-and-variants.md) endpoint might issue the following error messages:

| <div style="width:200px">HTTP status</div> | <div style="width:250px">Error code</div> | <div style="width:280px">Error message </div>                                                                              | <div style="width:300px">Troubleshooting </div>                                                                                                                                                                                                                                                                                                                                                                                       |
|--------------------------------------------|-------------------------------------------|----------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `INVALID_ARGUMENT (400)`                   | `UNKNOWN_OPTION_IDS`                      | Unknown option IDs `<ids>` aren't supported in the variants array.                                                         | Make sure that all option IDs in the variants array align with the corresponding option IDs.                                                                                                                                                                                                                                                                                                                                          |
| `INVALID_ARGUMENT (400)`                   | `MULTIPLE_CURRENCIES`                     | Multiple currencies `<currencies>` aren't supported in the variants array.                                                            | Make sure that all variants use the same currency.                                                                                                                                                                                                                                                                                                                                                                                    |
| `INVALID_ARGUMENT (400)`                   | `UNSUPPORTED_OPTION_TYPE`                 | Option type `<optionType>` isn't supported for service `<serviceId>`.                                                      | You can only define staff member based variants in case the service has connected staff members. If the service has no staff members you can call [Update Schedule](https://dev.wix.com/docs/api-reference/business-solutions/bookings/calendar/schedules-and-sessions/schedule-and-sessions/update-schedule.md) to add them. To do so, add the relevant staff member IDs as `scheduleOwnerId` to the active schedule's `availability.linkedSchedules` array.                           |
| `INVALID_ARGUMENT (400)`                   | `UNKNOWN_STAFF_IDS`                       | Staff members `<staffIds>` aren't connected to service `<serviceId>`.                                                      | Some staff members specified in the variants array aren't connected to the service. Either call [Update Schedule](https://dev.wix.com/docs/api-reference/business-solutions/bookings/calendar/schedules-and-sessions/schedule-and-sessions/update-schedule.md) to add them. To do so, add the relevant staff member IDs as `scheduleOwnerId` to the active schedule's `availability.linkedSchedules` array. Or remove the staff members from the `variants` array.                      |
| `INVALID_ARGUMENT (400)`                   | `MISSING_STAFF_VARIANTS`                  | Staff members `<staffIds>` are missing in the variants array.                                                              | Not all staff members providing the service are specified in the variants array. Either call [Update Schedule](https://dev.wix.com/docs/api-reference/business-solutions/bookings/calendar/schedules-and-sessions/schedule-and-sessions/update-schedule.md) to remove staff members from the service. To do so, remove the relevant `scheduleOwnerId`s from the active schedule's `availability.linkedSchedules` array. Or remove the relevant staff members from the `variants` array. |
| `INVALID_ARGUMENT (400)`                   | `IDENTICAL_CHOICES`                       | Identical choices `<choices>` aren't supported.                                                                            | Make sure to remove identical choices from the request. Choices aren't case sensitive. For example, "Student" and "student" are considered to be the same choice.                                                                                                                                                                                                                                                                     |
| `INVALID_ARGUMENT (400)`                   | `MISSING_CUSTOM_CHOICES`                  | Choices `<choices>` are missing in the variants array.                                                                     | Make sure to provide all custom choices in the variants array. You could either add missing variants or remove unnecessary choices.                                                                                                                                                                                                                                                                                                   | 
| `INVALID_ARGUMENT (400)`                   | `UNSUPPORTED_OPTION_DATA`                 | Option data isn't supported for option type `<optionType>` that's used for service `<serviceId>`. | Make sure to pass `customData` for custom options or no data for staff member based options.                                                                                                                                                                                                                                                                                                                                          |

## Update Service Options and Variants Errors


The [Update Service Options and Variants](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/service-options-and-variants/update-service-options-and-variants.md) endpoint might issue the following error messages:

| <div style="width:200px">HTTP status</div> | <div style="width:250px">Error code</div> | <div style="width:280px">Error message </div>                                        | <div style="width:300px">Troubleshooting </div>                                                                                                                                                                                                                                                                                                                                                                                       |
|--------------------------------------------|-------------------------------------------|--------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `INVALID_ARGUMENT (400)`                   | `UNKNOWN_OPTION_IDS`                      | Unknown option IDs `<ids>` aren't supported in the variants array.                   | Make sure that all option IDs in the variants array align with the corresponding option IDs.                                                                                                                                                                                                                                                                                                                                          |
| `INVALID_ARGUMENT (400)`                   | `MULTIPLE_CURRENCIES`                     | Multiple currencies `<currencies>` aren't supported in the variants array.                      | Make sure that all variants use the same currency.                                                                                                                                                                                                                                                                                                                                                                                    |
| `INVALID_ARGUMENT (400)`                   | `UNSUPPORTED_OPTION_TYPE`                 | Option type `<optionType>` isn't supported for service `<serviceId>`.                | You can only define staff member based variants in case the service has connected staff members. If the service has no staff members you can call [Update Schedule](https://dev.wix.com/docs/api-reference/business-solutions/bookings/calendar/schedules-and-sessions/schedule-and-sessions/update-schedule.md) to add them. To do so, add the relevant staff member IDs as `scheduleOwnerId` to the active schedule's `availability.linkedSchedules` array.                           |
| `INVALID_ARGUMENT (400)`                   | `UNKNOWN_STAFF_IDS`                       | Staff members `<staffIds>` aren't connected to service `<serviceId>`.                | Some staff members specified in the variants array aren't connected to the service. Either call [Update Schedule](https://dev.wix.com/docs/api-reference/business-solutions/bookings/calendar/schedules-and-sessions/schedule-and-sessions/update-schedule.md) to add them. To do so, add the relevant staff member IDs as `scheduleOwnerId` to the active schedule's `availability.linkedSchedules` array. Or remove the staff members from the `variants` array.                      |
| `INVALID_ARGUMENT (400)`                   | `MISSING_STAFF_VARIANTS`                  | Staff members `<staffIds>` are missing in the variants array.                        | Not all staff members providing the service are specified in the variants array. Either call [Update Schedule](https://dev.wix.com/docs/api-reference/business-solutions/bookings/calendar/schedules-and-sessions/schedule-and-sessions/update-schedule.md) to remove staff members from the service. To do so, remove the relevant `scheduleOwnerId`s from the active schedule's `availability.linkedSchedules` array. Or remove the relevant staff members from the `variants` array. |
| `INVALID_ARGUMENT (400)`                   | `IDENTICAL_CHOICES`                       | Identical choices `<choices>` aren't supported.                                      | Make sure to remove identical choices from the request. Choices aren't case sensitive. For example, "Student" and "student" are considered to be the same choice.                                                                                                                                                                                                                                                                     |
| `INVALID_ARGUMENT (400)`                   | `MISSING_CUSTOM_CHOICES`                  | Choices `<choices>` are missing in the variants array.                               | Make sure to provide all custom choices in the variants array. You could either add missing variants or remove unnecessary choices.                                                                                                                                                                                                                                                                                                   | 
| `INVALID_ARGUMENT (400)`                   | `UNSUPPORTED_OPTION_SPECIFIC_DATA`        | Option data isn't supported for option type `<optionType>`. | Make sure to pass `customData` for custom options or no data for staff member based options.                                                                                                                                                                                                                                                                                                                                          |