Skip to main content
GET
/
barber
/
{barberId}
/
smartGroups
/
{groupId}
Retrieve a smart group of clients
curl --request GET \
  --url https://api.guile.app/barber/{barberId}/smartGroups/{groupId} \
  --header 'Authorization: Bearer <token>'
{
  "id": "active",
  "name": "<string>",
  "strategy": "calculated",
  "rules": {
    "autoConfirm": true,
    "requireCardOnFile": true,
    "sameDayBookingNotice": "<string>",
    "bookingWindow": "noLimit",
    "depositRequired": {
      "type": "none",
      "fixed": "456.78",
      "percentage": 50
    },
    "lateCancelation": {
      "cancellationWindow": "<string>",
      "fee": {
        "type": "none",
        "fixed": "456.78",
        "percentage": 50
      }
    },
    "noShowFee": {
      "type": "none",
      "fixed": "456.78",
      "percentage": 50
    }
  }
}

Path Parameters

barberId
string<uuid>
required

The unique, opaque system identifier for a resource. This case-sensitive ID is also used as path parameters in URLs or in other properties or parameters that reference a resource by ID rather than URL.

groupId
enum<string>
required
Available options:
active,
lost,
risky,
new

Response

Ok. The operation succeeded.

A client group, including clients and rules.

id
enum<string>
required

The unique identifier for the client group.

Available options:
active,
lost,
risky,
new
name
string
required

The human-readable name of the client group.

strategy
enum<string>
required

The strategy for the client group.

Available options:
calculated,
manual
rules
object
required

The rules for this group.