Glofox

App · 24 actions

Manage a gym or studio's members and leads, book and cancel classes, mark attendance and read memberships, staff and payments.

Actions

ActionWhat it does
Add noteAdd a note, or a record of an email sent by hand, to a lead's history.
Book classBook a member into a class, or onto its waiting list when it's full.
Cancel bookingCancel a booking.
Cancel membershipCancel a member's open-ended recurring membership now, at the end of its billing cycle, or on a date.
Create leadAdd a person to the studio as a lead, entering the sales funnel, or as a member, skipping it.
Find member by emailFind the member or lead with this exact email address.
Get branchGet the connected studio (branch): its name, address, time zone and contact details.
Get classGet one class, course or time slot, with how many are booked and waiting.
Get memberGet one member or lead.
Get membershipGet one membership and its plans.
Get staff memberGet one staff member.
List bookingsList the studio's bookings, optionally by status, class or when they were made.
List classesList the classes, courses or appointment and facility time slots that start in a time range.
List contact sourcesList the contact sources a lead can be given.
List credit packsList a member's class credit packs and how many credits are left.
List leadsList the studio's leads, newest first, optionally by status or when they were added.
List marketing sourcesList the marketing sources a lead can be given.
List membersList the studio's clients, a page at a time, optionally only those changed since a time.
List membershipsList the memberships the studio sells and their plans.
List notesList the notes and other interactions on a lead's history.
List staffList the studio's staff: admins, receptionists and trainers.
List transactionsList the studio's payments and other transactions in a time range.
Mark attendedMark one or more bookings as attended.
Update memberChange a member's or lead's name, email, phone, status, date of birth or emergency contact.

Add note

Add a note, or a record of an email sent by hand, to a lead's history.

Inputs

Member IDmember_idtextRequired
The member's or lead's Glofox user ID (its _id).
Typetypetext
A note, or an email sent outside Glofox.One of: NOTE, MANUAL_EMAIL (Manual email). Default: NOTE.
Notetexttext
What the note says.

Outputs

dataobject
The response from Glofox.
Example output
{
  "data": {
    "success": true
  }
}

Book class

Book a member into a class, or onto its waiting list when it's full.

Inputs

Class IDclass_idtextRequired
The class's ID (its _id, or model_id when that is set), from 'List classes'.
Member IDmember_idtextRequired
The member to book.
Join waiting listjoin_waiting_listtrue/false
Put the member on the waiting list if the class is full.
Guestsguestsnumber
How many guests the member brings.At least 0.
Chargechargetrue/false
Charge the member for the booking.

Outputs

dataobject
The response from Glofox.
Example output
{
  "data": {
    "Booking": {
      "_id": "example",
      "event_id": "example",
      "event_name": "example",
      "status": "BOOKED",
      "user_id": "example",
      "user_name": "example"
    },
    "success": true
  }
}

Cancel booking

Cancel a booking.

Inputs

Booking IDbooking_idtextRequired
The booking's ID (its _id).

Outputs

dataobject
The response from Glofox.
Example output
{
  "data": {}
}

Cancel membership

Cancel a member's open-ended recurring membership now, at the end of its billing cycle, or on a date.

Inputs

Member's membership IDuser_membership_idtextRequired
The member's membership ID (membership.user_membership_id on the member).
Member IDmember_idtextRequired
The member whose membership this is.
WhenwhentextRequired
When the membership ends.One of: NOW, END_OF_CYCLE (End of cycle), ON_DATE (On date).
End dateend_datedate
The day it ends, when When is ON_DATE.
ReasonreasontextRequired
Why the member is leaving.One of: MEMBERSHIP_CANCELLATION_PRICE (Membership cancellation price), MEMBERSHIP_CANCELLATION_MOVED (Membership cancellation moved), MEMBERSHIP_CANCELLATION_NO_USAGE (Membership cancellation no usage), MEMBERSHIP_CANCELLATION_CUSTOMER_SERVICE (Membership cancellation customer service), MEMBERSHIP_CANCELLATION_EVENT_SCHEDULE (Membership cancellation event schedule), MEMBERSHIP_CANCELLATION_CHANGE_MEMBERSHIP (Membership cancellation change membership).

Outputs

dataobject
The response from Glofox.
Example output
{
  "data": {
    "local_planned_end_date": "example"
  }
}

Create lead

Add a person to the studio as a lead, entering the sales funnel, or as a member, skipping it.

Inputs

First namefirst_nametextRequired
First name.
Last namelast_nametextRequired
Last name.
EmailemailtextRequired
Email address.
Statuslead_statustextRequired
LEAD for most new leads, COLD for one unlikely to join, or MEMBER to skip the sales funnel.One of: LEAD, COLD, MEMBER.
Phonephonetext
Phone number.
Date of birthbirth_datedate
Date of birth.
Emergency contactemergency_contacttext
Emergency contact details, shown on the member's profile.
Contact sourcecontact_sourcetext
How the lead first got in touch.
Marketing sourcemarketing_sourcetext
Which marketing brought the lead in.
Email consentemail_consenttrue/false
Whether the person agrees to marketing email.
Text message consentsms_consenttrue/false
Whether the person agrees to marketing text messages.

Outputs

dataobject
The response from Glofox.
Example output
{
  "data": {
    "_id": "example",
    "access_barcode": "example",
    "active": true,
    "birth": "example",
    "branch_id": "example",
    "consent": {
      "email": {
        "active": true
      },
      "phone_call": {
        "active": true
      },
      "push": {
        "active": true
      },
      "sms": {
        "active": true
      },
      "whatsapp": {
        "active": true
      }
    },
    "created": 1,
    "email": "example",
    "emergency_contact": "example",
    "first_name": "example",
    "image_url": "example",
    "joined_at": "example",
    "last_name": "example",
    "lead_status": "example",
    "leads": {
      "contact_source": "example",
      "marketing_source": "example"
    },
    "membership": {
      "expiry_date": 1,
      "membership_name": "example",
      "plan_code": "example",
      "plan_name": "example",
      "start_date": 1,
      "status": "example",
      "type": "example",
      "user_membership_id": "example"
    },
    "modified": 1,
    "name": "example",
    "origin_branch_id": "example",
    "phone": "example",
    "type": "example"
  }
}

Find member by email

Find the member or lead with this exact email address. Glofox emails are unique within a studio.

Inputs

EmailemailtextRequired
The full email address to look for.

Outputs

dataobject
The response from Glofox.
Example output
{
  "data": {}
}

Get branch

Get the connected studio (branch): its name, address, time zone and contact details.

Inputs

None.

Outputs

dataobject
The response from Glofox.
Example output
{
  "data": {
    "_id": "example",
    "about": "example",
    "address": {
      "city": "example",
      "country_code": "example",
      "currency": "example",
      "postal_code": "example",
      "state": "example",
      "street": "example",
      "timezone_id": "example"
    },
    "email": "example",
    "name": "example",
    "namespace": "example",
    "phone": "example",
    "website": "example"
  }
}

Get class

Get one class, course or time slot, with how many are booked and waiting.

Inputs

Class IDclass_idtextRequired
The class's ID (its _id), from 'List classes'.

Outputs

dataobject
The response from Glofox.
Example output
{
  "data": {
    "_id": "example",
    "active": true,
    "booked": 1,
    "branch_id": "example",
    "description": "example",
    "duration": 1,
    "facility": "example",
    "is_online": true,
    "level": "example",
    "model": "example",
    "model_id": "example",
    "modified": 1,
    "name": "example",
    "private": true,
    "program_id": "example",
    "size": 1,
    "status": "example",
    "time_start": 1,
    "trainers": [
      "example"
    ],
    "type": "example",
    "waiting": 1
  }
}

Get member

Get one member or lead.

Inputs

Member IDmember_idtextRequired
The member's or lead's Glofox user ID (its _id).

Outputs

dataobject
The response from Glofox.
Example output
{
  "data": {
    "_id": "example",
    "access_barcode": "example",
    "active": true,
    "birth": "example",
    "branch_id": "example",
    "consent": {
      "email": {
        "active": true
      },
      "phone_call": {
        "active": true
      },
      "push": {
        "active": true
      },
      "sms": {
        "active": true
      },
      "whatsapp": {
        "active": true
      }
    },
    "created": 1,
    "email": "example",
    "emergency_contact": "example",
    "first_name": "example",
    "image_url": "example",
    "joined_at": "example",
    "last_name": "example",
    "lead_status": "example",
    "leads": {
      "contact_source": "example",
      "marketing_source": "example"
    },
    "membership": {
      "expiry_date": 1,
      "membership_name": "example",
      "plan_code": "example",
      "plan_name": "example",
      "start_date": 1,
      "status": "example",
      "type": "example",
      "user_membership_id": "example"
    },
    "modified": 1,
    "name": "example",
    "origin_branch_id": "example",
    "phone": "example",
    "type": "example"
  }
}

Get membership

Get one membership and its plans.

Inputs

Membershipmembership_idtextRequired
The membership to read.

Outputs

dataobject
The response from Glofox.
Example output
{
  "data": {
    "_id": "example",
    "active": true,
    "branch_id": "example",
    "buy_just_once": true,
    "description": "example",
    "name": "example",
    "plans": [
      {
        "code": 1,
        "duration_time_unit": "example",
        "duration_time_unit_count": 1,
        "price": 1,
        "starts_on": "example",
        "type": "example",
        "upfront_fee": 1
      }
    ]
  }
}

Get staff member

Get one staff member.

Inputs

Staff memberstaff_idtextRequired
The staff member to read.

Outputs

dataobject
The response from Glofox.
Example output
{
  "data": {
    "_id": "example",
    "active": true,
    "bookable": true,
    "branch_id": "example",
    "description": "example",
    "first_name": "example",
    "image_url": "example",
    "last_name": "example",
    "modified": 1,
    "name": "example",
    "type": "example"
  }
}

List bookings

List the studio's bookings, optionally by status, class or when they were made.

Inputs

Statusstatustext
Only bookings with this status.One of: BOOKED, WAITING, CANCELED, RESERVED, FAILED.
Kindevent_typetext
Only bookings of this kind.One of: events, courses, facilities, users, appointments.
Class IDclass_idtext
Only bookings for this class.
Made sincecreated_sincedate and time
Only bookings made at or after this time.
Made untilcreated_untildate and time
Only bookings made at or before this time.
Changed sincemodified_sincedate and time
Only bookings changed at or after this time.
Pagepagenumber
The page to read, from 1.At least 1.
Per pagelimitnumber
How many records a page holds.From 1 to 200.

Outputs

dataobject
The response from Glofox.
Example output
{
  "data": {
    "data": [
      {
        "_id": "example",
        "attended": true,
        "branch_id": "example",
        "canceled_at": "example",
        "course_id": "example",
        "created": "example",
        "event_id": "example",
        "event_name": "example",
        "guest_bookings": 1,
        "is_from_waiting_list": true,
        "is_late_cancellation": true,
        "model": "example",
        "model_id": "example",
        "model_name": "example",
        "modified": "example",
        "paid": true,
        "payment_method": "example",
        "program_id": "example",
        "status": "BOOKED",
        "time_finish": "example",
        "time_slot_id": "example",
        "time_start": "example",
        "type": "example",
        "user_id": "example",
        "user_name": "example"
      }
    ],
    "meta": {
      "limit": 1,
      "page": 1,
      "totalCount": 1
    },
    "success": true
  }
}

List classes

List the classes, courses or appointment and facility time slots that start in a time range.

Inputs

Starts fromstartdate and timeRequired
From this time.
Starts untilenddate and timeRequired
Until this time.
Kindclass_typetext
Classes (the usual), courses, or appointment and facility time slots.One of: event, course, timeslot.
Sort bysort_bytext
Order. A leading - sorts newest or latest first.One of: time_start (Time start), -time_start (-time start), created, -created, time_finish (Time finish), -time_finish (-time finish).
Trainerstrainerslist
Only classes these trainers lead.
Privateprivatetrue/false
Only private classes (on) or only public ones (off).
Pagepagenumber
The page to read, from 1.At least 1.
Per pagelimitnumber
How many records a page holds.From 1 to 200.

Outputs

dataobject
The response from Glofox.
Example output
{
  "data": {
    "data": [
      {
        "_id": "example",
        "active": true,
        "booked": 1,
        "branch_id": "example",
        "description": "example",
        "duration": 1,
        "facility": "example",
        "is_online": true,
        "level": "example",
        "model": "example",
        "model_id": "example",
        "modified": 1,
        "name": "example",
        "private": true,
        "program_id": "example",
        "size": 1,
        "status": "example",
        "time_start": 1,
        "trainers": [
          "example"
        ],
        "type": "example",
        "waiting": 1
      }
    ],
    "has_more": true,
    "limit": 1,
    "object": "example",
    "page": 1,
    "total_count": 1
  }
}

List contact sources

List the contact sources a lead can be given.

Inputs

None.

Outputs

datalist
The response from Glofox.
Example output
{
  "data": [
    "example"
  ]
}

List credit packs

List a member's class credit packs and how many credits are left.

Inputs

Member IDmember_idtextRequired
The member whose credit packs to list.
Pagepagenumber
The page to read, from 1.At least 1.
Per pagelimitnumber
How many records a page holds.From 1 to 200.

Outputs

dataobject
The response from Glofox.
Example output
{
  "data": {
    "data": [
      {
        "_id": "example",
        "active": true,
        "available": 1,
        "end_date": 1,
        "membership_id": "example",
        "membership_name": "example",
        "model": "example",
        "num_sessions": 1,
        "start_date": 1,
        "user_id": "example"
      }
    ],
    "has_more": true,
    "limit": 1,
    "object": "example",
    "page": 1,
    "total_count": 1
  }
}

List leads

List the studio's leads, newest first, optionally by status or when they were added.

Inputs

Statuseslead_statuseslist
Only leads with these statuses.One or more of: LEAD, COLD, TRIAL, NO_SALE_TRIAL (No sale trial), TOUR, NO_SALE_TOUR (No sale tour), MEMBER.
Namenametext
Only leads whose name contains this.
Added sincecreated_sincedate and time
Only leads added at or after this time.
Added untilcreated_untildate and time
Only leads added at or before this time.
Skipskipnumber
How many pages to skip, as Glofox counts them.At least 0.
Per pagelimitnumber
How many leads a page holds.From 1 to 200.

Outputs

dataobject
The response from Glofox.
Example output
{
  "data": {
    "data": [
      {
        "_id": "example",
        "access_barcode": "example",
        "active": true,
        "birth": "example",
        "branch_id": "example",
        "consent": {
          "email": {
            "active": true
          },
          "phone_call": {
            "active": true
          },
          "push": {
            "active": true
          },
          "sms": {
            "active": true
          },
          "whatsapp": {
            "active": true
          }
        },
        "created": 1,
        "email": "example",
        "emergency_contact": "example",
        "first_name": "example",
        "image_url": "example",
        "joined_at": "example",
        "last_name": "example",
        "lead_status": "example",
        "leads": {
          "contact_source": "example",
          "marketing_source": "example"
        },
        "membership": {
          "expiry_date": 1,
          "membership_name": "example",
          "plan_code": "example",
          "plan_name": "example",
          "start_date": 1,
          "status": "example",
          "type": "example",
          "user_membership_id": "example"
        },
        "modified": 1,
        "name": "example",
        "origin_branch_id": "example",
        "phone": "example",
        "type": "example"
      }
    ],
    "success": true
  }
}

List marketing sources

List the marketing sources a lead can be given.

Inputs

None.

Outputs

datalist
The response from Glofox.
Example output
{
  "data": [
    {
      "_id": "example",
      "active": true,
      "code": "example",
      "name": "example"
    }
  ]
}

List members

List the studio's clients, a page at a time, optionally only those changed since a time.

Inputs

Activeactivetext
Active members (the default), inactive members, or both.One of: true, false, any.
Changed sincemodified_sincedate and time
Only members changed at or after this time.
Changed untilmodified_untildate and time
Only members changed at or before this time.
Pagepagenumber
The page to read, from 1.At least 1.
Per pagelimitnumber
How many records a page holds.From 1 to 200.

Outputs

dataobject
The response from Glofox.
Example output
{
  "data": {
    "data": [
      {
        "_id": "example",
        "access_barcode": "example",
        "active": true,
        "birth": "example",
        "branch_id": "example",
        "consent": {
          "email": {
            "active": true
          },
          "phone_call": {
            "active": true
          },
          "push": {
            "active": true
          },
          "sms": {
            "active": true
          },
          "whatsapp": {
            "active": true
          }
        },
        "created": 1,
        "email": "example",
        "emergency_contact": "example",
        "first_name": "example",
        "image_url": "example",
        "joined_at": "example",
        "last_name": "example",
        "lead_status": "example",
        "leads": {
          "contact_source": "example",
          "marketing_source": "example"
        },
        "membership": {
          "expiry_date": 1,
          "membership_name": "example",
          "plan_code": "example",
          "plan_name": "example",
          "start_date": 1,
          "status": "example",
          "type": "example",
          "user_membership_id": "example"
        },
        "modified": 1,
        "name": "example",
        "origin_branch_id": "example",
        "phone": "example",
        "type": "example"
      }
    ],
    "has_more": true,
    "limit": 1,
    "object": "example",
    "page": 1,
    "total_count": 1
  }
}

List memberships

List the memberships the studio sells and their plans.

Inputs

Privateprivatetext
Public memberships, private ones, or both.One of: true, false, any.

Outputs

dataobject
The response from Glofox.
Example output
{
  "data": {
    "data": [
      {
        "_id": "example",
        "active": true,
        "branch_id": "example",
        "buy_just_once": true,
        "description": "example",
        "name": "example",
        "plans": [
          {
            "code": 1,
            "duration_time_unit": "example",
            "duration_time_unit_count": 1,
            "price": 1,
            "starts_on": "example",
            "type": "example",
            "upfront_fee": 1
          }
        ]
      }
    ],
    "has_more": true,
    "limit": 1,
    "object": "example",
    "page": 1,
    "total_count": 1
  }
}

List notes

List the notes and other interactions on a lead's history.

Inputs

Member IDmember_idtextRequired
The member's or lead's Glofox user ID (its _id).
PagepagenumberRequired
The page to read, from 1.At least 1.

Outputs

dataobject
The response from Glofox.
Example output
{
  "data": {
    "data": [
      {
        "_id": "example",
        "created": "example",
        "description": "example",
        "type": "example"
      }
    ],
    "meta": {
      "pagination": {
        "count": 1,
        "currentPage": 1,
        "perPage": 1
      }
    },
    "success": true
  }
}

List staff

List the studio's staff: admins, receptionists and trainers.

Inputs

Kindtypetext
Only staff of this kind.One of: TRAINER, RECEPTION, ADMIN.
Activeactivetext
Active staff (the default), inactive staff, or both.One of: true, false, any.

Outputs

dataobject
The response from Glofox.
Example output
{
  "data": {
    "data": [
      {
        "_id": "example",
        "active": true,
        "bookable": true,
        "branch_id": "example",
        "description": "example",
        "first_name": "example",
        "image_url": "example",
        "last_name": "example",
        "modified": 1,
        "name": "example",
        "type": "example"
      }
    ],
    "has_more": true,
    "limit": 1,
    "object": "example",
    "page": 1,
    "total_count": 1
  }
}

List transactions

List the studio's payments and other transactions in a time range.

Inputs

Fromstartdate and timeRequired
From this time.
Untilenddate and timeRequired
Until this time.

Outputs

dataobject
The response from Glofox.
Example output
{
  "data": {
    "TransactionsList": {
      "details": [
        {
          "_id": "example",
          "amount": 1,
          "created": "example",
          "currency": "example",
          "description": "example",
          "id": "example",
          "metadata": {
            "glofox_event": "example",
            "payment_method": "example"
          },
          "modified": "example",
          "paid": true,
          "sold_by_user_id": "example",
          "transaction_provider_id": "example",
          "transaction_status": "example"
        }
      ]
    }
  }
}

Mark attended

Mark one or more bookings as attended.

Inputs

Booking IDsbooking_idslistRequired
The bookings to mark, by their _id.

Outputs

dataobject
The response from Glofox.
Example output
{
  "data": {
    "model_ids": [
      "example"
    ],
    "success": true
  }
}

Update member

Change a member's or lead's name, email, phone, status, date of birth or emergency contact. Fields left empty keep their value.

Inputs

Member IDmember_idtextRequired
The member's or lead's Glofox user ID (its _id).
First namefirst_nametext
New first name.
Last namelast_nametext
New last name.
Emailemailtext
New email address.
Phonephonetext
New phone number.
Statuslead_statustext
New lead status.One of: LEAD, COLD, TRIAL, NO_SALE_TRIAL (No sale trial), TOUR, NO_SALE_TOUR (No sale tour), MEMBER.
Date of birthbirth_datedate
Date of birth.
Emergency contactemergency_contacttext
Emergency contact details.

Outputs

dataobject
The response from Glofox.
Example output
{
  "data": {
    "_id": "example",
    "access_barcode": "example",
    "active": true,
    "birth": "example",
    "branch_id": "example",
    "consent": {
      "email": {
        "active": true
      },
      "phone_call": {
        "active": true
      },
      "push": {
        "active": true
      },
      "sms": {
        "active": true
      },
      "whatsapp": {
        "active": true
      }
    },
    "created": 1,
    "email": "example",
    "emergency_contact": "example",
    "first_name": "example",
    "image_url": "example",
    "joined_at": "example",
    "last_name": "example",
    "lead_status": "example",
    "leads": {
      "contact_source": "example",
      "marketing_source": "example"
    },
    "membership": {
      "expiry_date": 1,
      "membership_name": "example",
      "plan_code": "example",
      "plan_name": "example",
      "start_date": 1,
      "status": "example",
      "type": "example",
      "user_membership_id": "example"
    },
    "modified": 1,
    "name": "example",
    "origin_branch_id": "example",
    "phone": "example",
    "type": "example"
  }
}

On this page