GET

Get Service Options And Variants


Retrieves a serviceOptionsAndVariants object by its ID.

Permissions
Manage Bookings Services and Settings
Manage Bookings - all permissions
Read Bookings - all read permissions
Manage Bookings
Read Bookings - Public Data
Read Bookings - Including Participants
Learn more about app permissions.
Endpoint
GET
https://www.wixapis.com/bookings/v1/serviceOptionsAndVariants/{serviceOptionsAndVariantsId}

Path Params
serviceOptionsAndVariantsIdstringRequired

ID of the serviceOptionsAndVariants object to retrieve.

Response Object
serviceOptionsAndVariantsServiceOptionsAndVariants

Retrieved serviceOptionsAndVariants object.

Retrieve options and variants by ID
Request
cURL
curl -X GET \ 'https://wixapis.com/bookings/v1/serviceOptionsAndVariants/0cf0c708-58f0-408b-a10f-a6d9b6e2a6de' \ -H 'Authorization: <AUTH>'
Response
JSON
{ "serviceOptionsAndVariants": { "id": "0cf0c708-58f0-408b-a10f-a6d9b6e2a6de", "serviceId": "33340481-e57e-4285-8e31-4f0b5ca0a6b5", "options": { "values": [ { "id": "ae6ecb80-5013-4e6c-95f4-20708583f72d", "type": "STAFF_MEMBER" } ] }, "variants": { "values": [ { "choices": [ { "optionId": "ae6ecb80-5013-4e6c-95f4-20708583f72d", "staffMemberId": "5a79026c-36f9-4839-ad4a-9a3132af5895" } ], "price": { "value": "55", "currency": "EUR" } }, { "choices": [ { "optionId": "ae6ecb80-5013-4e6c-95f4-20708583f72d", "staffMemberId": "963c5a66-e4be-490c-9e79-556c9a4d8807" } ], "price": { "value": "105", "currency": "EUR" } }, { "choices": [ { "optionId": "ae6ecb80-5013-4e6c-95f4-20708583f72d", "staffMemberId": "59581285-876b-4581-8f4c-cf90452d94e9" } ], "price": { "value": "50", "currency": "EUR" } }, { "choices": [ { "optionId": "ae6ecb80-5013-4e6c-95f4-20708583f72d", "staffMemberId": "9a3d4d6c-0ff9-4671-9fad-0aa2cbcd8b0f" } ], "price": { "value": "60", "currency": "EUR" } } ] }, "minPrice": { "value": "50", "currency": "EUR" }, "maxPrice": { "value": "105", "currency": "EUR" }, "revision": "1" } }
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?