This articles outlines error messages that might be issued when calling endpoints of the Wix Bookings Service Options and Variants API.
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_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 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 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 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. |
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_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 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 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 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. |