Skip to main content

Get all guests within a business

GET 

/api/v2/businesses/:business_id/guests

Retrieve all the guests within a specific business

Request

Path Parameters

    business_id stringrequired

Query Parameters

    page integer

    Possible values: >= 1

    Default value: 1

    Page of items to fetch

    per_page integer

    Possible values: >= 1

    Number of items per page.

    search string

    Search query by first_name, last_name or email

    Example: John

Responses

Schema

    page integerrequired

    Possible values: >= 1

    Default value: 1

    Current page

    max_page integerrequired

    Possible values: >= 1

    Default value: 1

    Max page based on current per_page value and count

    count integerrequired

    Default value: 0

    Number of items per page.

    items

    object[]

    required

  • Array [

  • id uuidrequired

    Unique ID of the guest

    email emailrequired

    Email of the guest

    first_name stringrequired

    First name of the guest

    last_name stringrequired

    Last name of the guest

    birthday datenullable

    Birthday of the guest

    phone stringnullable

    Possible values: >= 6 characters and <= 15 characters, Value must match regular expression ^[0-9]*$

    Phone number of the guest

    phone_country_code stringnullable

    Possible values: >= 2 characters and <= 2 characters, Value must match regular expression ^[A-Z]{2}$

    Country code of the phone number

    phone_country_prefix stringnullable

    Possible values: non-empty and <= 4 characters, Value must match regular expression ^[0-9]+$

    Country prefix of the phone number

    tags string[]required
    general_note stringnullable

    General note about the guest

    visit_note stringnullable

    Note about the guest's visit

  • ]

Loading...