Skip to content

Service

A service, as returned in API responses.

idstring
Example:"svc_123456"
account_idstring
Example:"acc_123456"
titlestring, <= 255 characters
Example:"30 min consultation"
provider_idsArray of strings
Example:
[ "provider_123456" ]
typestring

Whether this is a one-to-one SERVICE or a group CLASS.

Enum:"SERVICE""CLASS"
Example:"SERVICE"
max_seatsinteger, [ 1 .. 50 ]

Seat capacity of the class. Present only when type is CLASS.

Example:10
costnumber, (float), >= 0
Example:50
durationinteger, [ 1 .. 1439 ]
Example:30
color_codestring, <= 7 characters^#[0-9A-Fa-f]{6}$
Example:"#4287f5"
bufferobject
visibilitystring
Enum:"PUBLIC""PRIVATE""UNAVAILABLE"
Example:"PUBLIC"
locationobject(ServiceLocation)

Where the service is delivered.

category_idsArray of strings
Example:
[ "cat_123456" ]
currencystring

ISO 4217 currency code of the Setmore account. A service is priced in the account's currency, so this is set by Setmore and cannot be sent when you create or update a service.

Example:"USD"
{ "id": "svc_123456", "account_id": "acc_123456", "title": "30 min consultation", "provider_ids": [ "provider_123456" ], "type": "SERVICE", "max_seats": 10, "cost": 50, "duration": 30, "color_code": "#4287f5", "buffer": { "before": 5, "after": 5 }, "visibility": "PUBLIC", "location": { "type": [ … ], "video_type": [ … ] }, "category_ids": [ "cat_123456" ], "currency": "USD" }