Wix Bookings Service Options and Variants Errors

This articles 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 endpoint might issue the following error messages:

HTTP status
Error code
Error message
Troubleshooting
INVALID_ARGUMENT (400)UNKNOWN_OPTION_IDSUnknown 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_CURRENCIESMultiple currencies <currencies> aren't supported in the variants array.Make sure that all variants use the same currency.
INVALID_ARGUMENT (400)UNSUPPORTED_OPTION_TYPEOption 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 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_IDSStaff 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 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_VARIANTSStaff 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 to remove staff members from the service. To do so, remove the relevant scheduleOwnerIds from the active schedule's availability.linkedSchedules array. Or remove the relevant staff members from the variants array.
INVALID_ARGUMENT (400)IDENTICAL_CHOICESIdentical 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_CHOICESChoices <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_DATAOption 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 endpoint might issue the following error messages:

HTTP status
Error code
Error message
Troubleshooting
INVALID_ARGUMENT (400)UNKNOWN_OPTION_IDSUnknown 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_CURRENCIESMultiple currencies <currencies> aren't supported in the variants array.Make sure that all variants use the same currency.
INVALID_ARGUMENT (400)UNSUPPORTED_OPTION_TYPEOption 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 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_IDSStaff 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 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_VARIANTSStaff 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 to remove staff members from the service. To do so, remove the relevant scheduleOwnerIds from the active schedule's availability.linkedSchedules array. Or remove the relevant staff members from the variants array.
INVALID_ARGUMENT (400)IDENTICAL_CHOICESIdentical 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_CHOICESChoices <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_DATAOption data isn't supported for option type <optionType>.Make sure to pass customData for custom options or no data for staff member based options.
Did this help?