Membership plans, member prices, membership rules, class packs and account credit.
Ask it in plain words
"Add a 10-class pack for $180."
"Put the Elite plan on sale through December."
"What do members pay for open gym?"
get_membership_plans
Membership plans Reads
Every membership plan the gym sells (or used to): name, price, how often it is charged, sign-up fee, free trial, people covered, whether families can join online, and whether it is on sale. Plans only: never members.
Add a membership plan (owners only). Ask the owner for the name, price and how often it is charged; never guess a price. Families see it on the Memberships page when families_can_join_online is true (the default).
Parameter
Type
Description
namerequired
string
e.g. Ninja Unlimited (up to 80 characters)
description
string
One or two lines families see under the plan's name (up to 300 characters)
pricerequired
number
Dollars each time it is charged, $1 to $5,000
how_oftenrequired
string: weekly | monthly | yearly
How often it is charged
every
integer
Charged every 1 (default), 2, 3 or 6 weeks / months / years
sign_up_fee
number
A one-time fee in dollars; 0 for none
free_trial_days
integer
0 to 60
people_covered
integer
How many people one membership covers, 1 to 8 (a family plan covers several)
families_can_join_online
boolean
true = shown on the website's Memberships page so families can join and pay online
list_position
integer
Order on the Memberships page, 0 to 99 (lower first)
dry_run
boolean
true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet.
Change a membership plan's name, price, how often it is charged, fee, trial, people covered, online sign-up or order (owners only). Send only what changes; everything else stays. Existing members keep their own price.
Parameter
Type
Description
planrequired
string
The plan's current name
new_name
string
The plan's new name
description
string
One or two lines families see under the plan's name (up to 300 characters)
price
number
Dollars each time it is charged, $1 to $5,000
how_often
string: weekly | monthly | yearly
How often it is charged
every
integer
Charged every 1 (default), 2, 3 or 6 weeks / months / years
sign_up_fee
number
A one-time fee in dollars; 0 for none
free_trial_days
integer
0 to 60
people_covered
integer
How many people one membership covers, 1 to 8 (a family plan covers several)
families_can_join_online
boolean
true = shown on the website's Memberships page so families can join and pay online
list_position
integer
Order on the Memberships page, 0 to 99 (lower first)
dry_run
boolean
true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet.
Change the order of membership plans Changesdry_run
Change the order membership plans show in on the website's Pricing and Memberships pages and in the back office (owners only). get_membership_plans lists them in the current order. Only plans on sale are ordered.
Parameter
Type
Description
orderrequired
array of string
Plan names in the order they should show, first one first. Plans you leave out keep their order after these.
dry_run
boolean
true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet.
Stop or restart selling a membership plan Changesdry_runconfirm
Stop selling a membership plan (it leaves the website; current members keep their memberships) or put an archived plan back on sale (owners only). Stopping needs the owner's yes and confirm: true.
Parameter
Type
Description
planrequired
string
The plan's id or exact name, from get_membership_plans
on_salerequired
boolean
false = stop selling it (archive); true = sell it again
confirm
boolean
Must be true, after the owner has said yes
dry_run
boolean
true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet.
What members pay for open gym: each membership plan's open gym perk (Free, money off, or a members' price) and the price for children in a weekly class. Members get it automatically online, in the family cart and at the front desk.
Set what members pay for open gym (owners only): on a membership plan (e.g. Elite: free) or for children in a weekly class (e.g. $5 off). Ask the owner for the amount; never guess it.
Parameter
Type
Description
whorequired
string
A membership plan's name (e.g. Elite), or "weekly class" for children enrolled in a weekly class
howrequired
string: free | money_off | members_pay | regular
free; money_off (amount = dollars off); members_pay (amount = the price); regular = no member price
amount
number
Dollars, for money_off or members_pay
dry_run
boolean
true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet.
The class packs the gym sells (at the front desk, and online on the class packs page): name, number of classes, price and how many months a pack is good for.
Add a class pack, or change one's name, number of classes, price or months it is good for (owners and managers). Send only what changes. Packs already sold keep what they were sold with.
Parameter
Type
Description
pack
string
The pack's current name, to change one; leave out to add a new pack
name
string
e.g. 10-class pack (up to 60 characters)
classes
integer
How many classes, 1 to 500
price
number
Dollars
months
integer
How many months it is good for; 0 = no end
location
string
Only for gyms with several locations: the location that sells it, by name; empty = every location
dry_run
boolean
true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet.
Take a kind of class pack off sale (owners and managers). Packs families already bought keep working. Ask the owner to confirm, then send confirm: true. It can be put back from History.
Parameter
Type
Description
packrequired
string
The class pack's id or exact name, from get_class_packs
confirm
boolean
Must be true, after the owner has said yes
dry_run
boolean
true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet.
Families' account credit (money a family can spend with the gym, often from a refund to credit instead of the card). Without a family: every family with credit and the total. With a family: their credit now and its history (each change: when, what, who, the amount and the credit after). Owners and managers.
Parameter
Type
Description
family
string
A family's name or email. Leave it out for every family with credit
Add or take off account credit Changesdry_runconfirm
Add credit to a family's account (a make-good, a goodwill credit) or take credit off (a mistake), with a reason that shows in their history. Owners and managers. Every change needs confirm: true after the owner said yes. Refunds to credit are made from the refund buttons in the back office, not here.
Parameter
Type
Description
familyrequired
string
The family's name or email
amountrequired
number
Dollars: positive adds credit, negative takes it off
reasonrequired
string
Why, for the family's credit history
confirm
boolean
Must be true, after the owner has said yes
dry_run
boolean
true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet.
The membership rules on Money > Memberships > Plans & rules (owners): the introduction on the Memberships page, the exact membership terms families agree to before paying, whether members can cancel online in My account, and whether members get an emailed receipt for each payment.
Change the membership rules and terms Changesdry_runconfirm
Change the membership rules on Money > Memberships > Plans & rules (owners only). The terms are legal text families agree to before paying: always show the owner the exact new wording first (call with dry_run) and suggest their attorney reviews it; a terms change needs confirm: true. Turning off online cancel needs confirm: true and a warning to the owner first: several states (California among them) require an online way to cancel anything sold online, and a membership bought online can always be cancelled online anyway. Turning receipts off needs confirm: true. Only what the owner mentions changes.
Parameter
Type
Description
introduction
string
A line or two at the top of the Memberships page (300 characters at most; empty = none)
terms
string
The whole new membership terms, word for word (3000 characters at most; empty = back to the standard text)
members_can_cancel_online
boolean
Members can cancel in My account (the membership runs to the end of the paid period)
email_receipts
boolean
Email members a receipt for each payment
dry_run
boolean
true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet.