# ClubReady

> Add prospects, update members, book classes and change bookings, and follow new people, bookings and check-ins.

App · 26 actions. Web page: https://docs.lodol.com/docs/integrations/clubready

## Actions

### Add a note

Add a note to a person's account.

**Inputs**

- User ID (`person_id`, number, required): The person, by ClubReady user ID. At least 1.
- Subject (`subject`, text, required): The note's subject, up to 255 characters.
- Note (`text`, text, required): The note, up to 2,000 characters.

**Outputs**

- `data` (object): The response from ClubReady.

**Example output**

```json
{
  "data": {
    "Message": "example",
    "NoteId": 1,
    "Success": true
  }
}
```

### Book a class

Book a person into a class on the schedule, or onto its waitlist when it's full.

**Inputs**

- User ID (`person_id`, number, required): The person, by ClubReady user ID. At least 1.
- Class schedule ID (`class_schedule_id`, number, required): The class on the schedule, by its class schedule ID. At least 1.
- Waitlist if full (`allow_wait_list`, true/false): On to put them on the waitlist if the class is full.

**Outputs**

- `data` (object): The response from ClubReady.

**Example output**

```json
{
  "data": {
    "BookingId": 1,
    "Message": "example"
  }
}
```

### Check a person in

Check a member in to the club by their barcode.

**Inputs**

- Barcode (`barcode`, text, required): The barcode on their key tag or card.
- User ID (`person_id`, number): The person, by user ID, when the barcode isn't unique. At least 1.

**Outputs**

- `data` (object): The response from ClubReady.

**Example output**

```json
{
  "data": {}
}
```

### Check if a person can book a class

See whether a person can book a class, whether they already have, and the credits it uses.

**Inputs**

- Class schedule ID (`class_schedule_id`, number, required): The class on the schedule, by its class schedule ID. At least 1.
- User ID (`person_id`, number, required): The person, by ClubReady user ID. At least 1.

**Outputs**

- `data` (object): The response from ClubReady.

**Example output**

```json
{
  "data": {
    "AvailableCredits": 1,
    "CanBook": true,
    "CancelHours": 1,
    "ConsumesCredit": true,
    "IsBooked": true,
    "IsWaitListed": true,
    "LeadTime": 1,
    "MaxLeadTime": 1,
    "Message": "example",
    "Source": "example",
    "Success": true
  }
}
```

### Create a prospect

Add a prospect (a lead) to the club.

**Inputs**

- First name (`first_name`, text, required): First name.
- Last name (`last_name`, text, required): Last name.
- Email (`email`, text, required): Email address.
- Send welcome email (`send_email`, true/false, required): On to send the prospect ClubReady's welcome email.
- Phone (`phone`, text): Home phone number.
- Address (`address`, text): Street address.
- Gender (`gender`, text): Gender. One of: `M`, `F`.
- Date of birth (`date_of_birth`, date): Date of birth.
- City (`city`, text): Town or city.
- State (`state`, text): State, as two letters such as `MO`.
- ZIP code (`zip`, text): ZIP or postal code.
- Mobile (`cell_phone`, text): Mobile number.
- External ID (`external_id`, text): Your own ID for the person, from another system.
- Emergency contact name (`emergency_contact_name`, text): Who to contact in an emergency.
- Emergency contact phone (`emergency_contact_phone`, text): The emergency contact's phone number.
- Prospect type (`prospect_type_id`, text): The prospect (lead) type.
- Referral type (`referral_type_id`, text): How they heard about the club.
- Note (`note`, text): An internal note about the prospect.
- Referred by (`referred_by`, number): The member who referred them, by user ID. At least 1.
- Coupon (`coupon`, text): A coupon code to give them.
- No marketing email (`email_opt_out`, true/false): On if they don't want marketing email.
- Marketing texts (`promotional_sms_opted_in`, true/false): On if they agreed to marketing texts.

**Outputs**

- `data` (object): The response from ClubReady.

**Example output**

```json
{
  "data": {}
}
```

### Find people

Find members and prospects by name, email, phone or barcode.

**Inputs**

- First name (`first_name`, text): First name.
- Last name (`last_name`, text): Last name.
- Email (`email`, text): Email address.
- Phone (`phone`, text): Phone number.
- Barcode (`barcode`, text): The barcode on their key tag or card.
- Page (`page`, number): Which page of 100 to read, from 1. At least 1.

**Outputs**

- `data` (object): The response from ClubReady.

**Example output**

```json
{
  "data": {}
}
```

### Get a class roster

See who has booked a class and who is on its waitlist.

**Inputs**

- Class schedule ID (`class_schedule_id`, number, required): The class on the schedule, by its class schedule ID. At least 1.

**Outputs**

- `data` (object): The response from ClubReady.

**Example output**

```json
{
  "data": {
    "ClassDate": "example",
    "ClassRoster": [
      {
        "BookingId": 1,
        "BookingMade": "example",
        "BookingStatusDescription": "example",
        "BookingStatusId": 1,
        "CreditsRemaining": 1,
        "Email": "example",
        "FirstName": "example",
        "FirstTimeBooking": true,
        "IsMember": true,
        "LastName": "example",
        "PackageId": 1,
        "PackageName": "example",
        "Phone": "example",
        "UserId": 1
      }
    ],
    "FreeSpots": 1,
    "MaxSpots": 1,
    "Message": "example",
    "Success": true,
    "TotalBooked": 1,
    "WaitList": [
      {
        "BookingId": 1,
        "BookingMade": "example",
        "BookingStatusDescription": "example",
        "BookingStatusId": 1,
        "CreditsRemaining": 1,
        "Email": "example",
        "FirstName": "example",
        "FirstTimeBooking": true,
        "IsMember": true,
        "LastName": "example",
        "PackageId": 1,
        "PackageName": "example",
        "Phone": "example",
        "UserId": 1
      }
    ]
  }
}
```

### Get a member's billing status

See a member's invoices, what they owe and their membership status.

**Inputs**

- User ID (`person_id`, number, required): The member, by ClubReady user ID. At least 1.

**Outputs**

- `data` (object): The response from ClubReady.

**Example output**

```json
{
  "data": {
    "BalanceDue": 1,
    "FullName": "example",
    "HomeClub": "example",
    "Invoices": [
      {
        "AmountDue": 1,
        "InvoiceId": 1,
        "PackageName": "example",
        "PaymentDue": "example",
        "PaymentMade": "example",
        "SalesTaxDue": 1,
        "Status": "example",
        "StatusId": 1
      }
    ],
    "MemberStatus": "example",
    "UserTypeId": 1,
    "UserTypeName": "example"
  }
}
```

### Get a person

Get a member's or prospect's account summary.

**Inputs**

- User ID (`person_id`, number, required): The person, by ClubReady user ID. At least 1.
- Full detail (`full_detail`, true/false): On for the full account, off for the basics.

**Outputs**

- `data` (object): The response from ClubReady.

**Example output**

```json
{
  "data": {}
}
```

### Get a person's credits

See how many class and session credits a person has bought and has left.

**Inputs**

- User ID (`person_id`, number, required): The person, by ClubReady user ID. At least 1.

**Outputs**

- `data` (object): The response from ClubReady.

**Example output**

```json
{
  "data": {
    "Credits": [
      {
        "Available": 1,
        "ClassId": 1,
        "Name": "example",
        "ServiceId": 1,
        "SessionSizeId": 1,
        "StoreId": 1,
        "Total": 1
      }
    ],
    "Message": "example",
    "Success": true,
    "TotalAvailable": 1,
    "TotalPurchased": 1
  }
}
```

### Get the class schedule

List the classes on the schedule between two days, at most 7 days apart.

**Inputs**

- From (`from_date`, date): First day. Leave empty for today.
- To (`to_date`, date, required): Last day, at most 7 days later.
- Category (`category_id`, text): Only classes in this category.

**Outputs**

- `data` (object): The response from ClubReady.

**Example output**

```json
{
  "data": {}
}
```

### List a person's visits

List a person's check-ins between two days, at most 31 days apart.

**Inputs**

- User ID (`person_id`, number, required): The person, by ClubReady user ID. At least 1.
- From (`from_date`, date, required): First day.
- To (`to_date`, date, required): Last day, at most 31 days later.

**Outputs**

- `data` (object): The response from ClubReady.

**Example output**

```json
{
  "data": {}
}
```

### List booking changes

List bookings made, canceled, completed or missed between two times, at most 24 hours apart.

**Inputs**

- From (`from_time`, date and time, required): Start of the window.
- To (`to_time`, date and time, required): End of the window, at most 24 hours later.
- Booking type (`booking_type`, text, required): Classes, appointments (services) or both. One of: `0` (Classes and appointments), `1` (Classes), `2` (Appointments).
- Status (`status`, text): Only changes to this status. Leave empty for any. One of: `2` (Booked), `3` (Canceled within policy (no credit lost)), `4` (Canceled outside policy (credit lost)), `5` (Completed), `6` (No-show), `10` (Canceled by the club (no credit lost)), `12` (Waitlisted).

**Outputs**

- `data` (object): The response from ClubReady.

**Example output**

```json
{
  "data": {
    "BookingStatusEvents": [
      {
        "BookedFromWaitList": true,
        "BookingDateTime": "example",
        "BookingId": 1,
        "ChainId": 1,
        "ClassScheduleId": 1,
        "Consult": true,
        "ServiceId": 1,
        "SessionSizeId": 1,
        "Status": "example",
        "StatusChanged": "example",
        "StatusId": 1,
        "StoreId": 1,
        "UserId": 1
      }
    ],
    "Message": "example",
    "Success": true,
    "Warnings": [
      "example"
    ]
  }
}
```

### List class categories

List the categories the club's classes are grouped into.

**Inputs**: None.

**Outputs**

- `data` (object): The response from ClubReady.

**Example output**

```json
{
  "data": {}
}
```

### List club check-ins

List everyone who checked in to the club between two times, at most 24 hours apart.

**Inputs**

- From (`from_time`, date and time, required): Start of the window.
- To (`to_time`, date and time, required): End of the window, at most 24 hours later.

**Outputs**

- `data` (object): The response from ClubReady.

**Example output**

```json
{
  "data": {
    "Message": "example",
    "Success": true,
    "TotalVisits": 1,
    "Visits": [
      {
        "CheckinLocationName": "example",
        "CheckinLogId": 1,
        "CheckinStoreId": 1,
        "FirstName": "example",
        "HomeStoreId": 1,
        "HomeStoreLocationName": "example",
        "LastName": "example",
        "UserId": 1,
        "UtcTime": "example"
      }
    ],
    "Warnings": [
      "example"
    ]
  }
}
```

### List membership types

List the club's membership types.

**Inputs**: None.

**Outputs**

- `data` (object): The response from ClubReady.

**Example output**

```json
{
  "data": {
    "MembershipTypes": [
      {
        "ChainId": 1,
        "Id": 1,
        "Name": "example",
        "StoreId": 1
      }
    ]
  }
}
```

### List packages

List the packages (memberships and session packs) the club sells.

**Inputs**

- User ID (`person_id`, number): Only packages this person can buy, by user ID. At least 1.

**Outputs**

- `data` (object): The response from ClubReady.

**Example output**

```json
{
  "data": {}
}
```

### List people

List the club's members and prospects, a page at a time.

**Inputs**

- Page size (`page_size`, number): How many people to return on a page. At least 1.
- Page (`page_number`, number): Which page to read, from 1. At least 1.
- Include deleted (`include_deleted`, true/false): On to include deleted people.

**Outputs**

- `data` (list): The response from ClubReady.

**Example output**

```json
{
  "data": [
    {
      "Address": "example",
      "Barcode": "example",
      "CellPhone": "example",
      "City": "example",
      "DateAdded": "example",
      "DateOfBirth": "example",
      "Email": "example",
      "EmailOptOut": true,
      "ExternalUserId": "example",
      "FirstName": "example",
      "LastName": "example",
      "Member": true,
      "MemberSinceDate": "example",
      "MembershipEndedDate": "example",
      "MembershipExpiresDate": "example",
      "Phone": "example",
      "Prospect": true,
      "ProspectTypeName": "example",
      "ReferralTypeId": 1,
      "ReferralTypeName": "example",
      "SmsOptIn": true,
      "SmsOptOut": true,
      "State": "example",
      "StoreId": 1,
      "UserId": 1,
      "Username": "example",
      "Zip": "example"
    }
  ]
}
```

### List people added

List the people added to the club between two times, at most 24 hours apart.

**Inputs**

- From (`from_time`, date and time, required): Start of the window.
- To (`to_time`, date and time, required): End of the window, at most 24 hours later.

**Outputs**

- `data` (object): The response from ClubReady.

**Example output**

```json
{
  "data": {
    "Users": [
      {
        "AddedBy": 1,
        "DateAdded": "example",
        "FirstName": "example",
        "LastName": "example",
        "ReferralTypeId": 1,
        "ReferralTypeName": "example",
        "ReferredBy": 1,
        "StoreId": 1,
        "UserId": 1,
        "Username": "example"
      }
    ],
    "Warnings": [
      "example"
    ]
  }
}
```

### List prospect types

List the kinds of prospect (lead) the club sorts people into.

**Inputs**: None.

**Outputs**

- `data` (object): The response from ClubReady.

**Example output**

```json
{
  "data": {
    "LeadTypes": [
      {
        "ChainId": 1,
        "Id": 1,
        "Name": "example",
        "StoreId": 1
      }
    ]
  }
}
```

### List referral types

List the ways the club records how people heard about it.

**Inputs**: None.

**Outputs**

- `data` (object): The response from ClubReady.

**Example output**

```json
{
  "data": {
    "ReferralTypes": [
      {
        "ChainId": 1,
        "Id": 1,
        "Name": "example",
        "StoreId": 1
      }
    ]
  }
}
```

### List staff

List the club's staff.

**Inputs**

- Bookable only (`available_for_scheduling`, true/false): On for staff who can be booked only.

**Outputs**

- `data` (object): The response from ClubReady.

**Example output**

```json
{
  "data": {}
}
```

### Tag a person

Add a tag to a person's account.

**Inputs**

- User ID (`person_id`, number, required): The person, by ClubReady user ID. At least 1.
- Tag (`tag`, text, required): The tag, up to 100 characters.

**Outputs**

- `data` (object): The response from ClubReady.

**Example output**

```json
{
  "data": {
    "Message": "example",
    "Success": true
  }
}
```

### Take a person off a waitlist

Remove a person from a class's waitlist.

**Inputs**

- User ID (`person_id`, number, required): The person, by ClubReady user ID. At least 1.
- Class schedule ID (`class_schedule_id`, number, required): The class on the schedule, by its class schedule ID. At least 1.

**Outputs**

- `data` (object): The response from ClubReady.

**Example output**

```json
{
  "data": {
    "Message": "example",
    "Success": true
  }
}
```

### Update a booking's status

Cancel a booking, or mark it completed or a no-show.

**Inputs**

- User ID (`person_id`, number, required): The person, by ClubReady user ID. At least 1.
- Booking ID (`booking_id`, number, required): The booking, by ID. At least 1.
- Status (`status`, text, required): The booking's new status. One of: `3` (Canceled within policy (no credit lost)), `4` (Canceled outside policy (credit lost)), `5` (Completed), `6` (No-show), `10` (Canceled by the club (no credit lost)).

**Outputs**

- `data` (object): The response from ClubReady.

**Example output**

```json
{
  "data": {
    "Message": "example",
    "Success": true
  }
}
```

### Update a person

Change a member's or prospect's details. Only the fields filled in change.

**Inputs**

- User ID (`person_id`, number, required): The person, by ClubReady user ID. At least 1.
- First name (`first_name`, text): New first name.
- Last name (`last_name`, text): New last name.
- Email (`email`, text): New email address.
- Home phone (`home_phone`, text): Home phone number.
- Address (`address1`, text): Street address.
- Gender (`gender`, text): Gender. One of: `M`, `F`.
- Date of birth (`date_of_birth`, date): Date of birth.
- City (`city`, text): Town or city.
- State (`state`, text): State, as two letters such as `MO`.
- ZIP code (`zip`, text): ZIP or postal code.
- Mobile (`cell_phone`, text): Mobile number.
- External ID (`external_id`, text): Your own ID for the person, from another system.
- Emergency contact name (`emergency_contact_name`, text): Who to contact in an emergency.
- Emergency contact phone (`emergency_contact_phone`, text): The emergency contact's phone number.
- Prospect type (`prospect_type_id`, text): The prospect (lead) type.

**Outputs**

- `data` (object): The response from ClubReady.

**Example output**

```json
{
  "data": {}
}
```
