Every product the gym sells on the website shop or at the front desk: price, status, category, where it is sold, sizes and other options, each variant's price and stock. Products only: never orders or buyers.
Add a product to the shop and/or the front desk (owners and managers). Ask for the price and the sizes; never guess them. It is saved as a draft unless on_sale is true, so the owner can add photos first (upload_photo with purpose product). Sold on the website and picked up at the gym unless told otherwise.
Parameter
Type
Description
titlerequired
string
e.g. Ninja Team T-shirt (up to 100 characters)
pricerequired
number
Dollars
compare_at_price
number
The old price shown crossed out, in dollars; 0 to remove
description
string
What families read on the product page (up to 3,000 characters)
Sets the sales tax kind: lessons (a private lesson or session sold online with no date: the gym sets the time; name the option Coach for one price per coach), tshirts, tanks, hoodies, shorts, socks, hats, clothing, bottles, grip (grip socks, chalk, tape), bags, stickers, books, food (drinks and snacks), fee (spectator or other fee, front desk only), other
option_name
string
The first option's name, e.g. Size
sizes
array of string
The first option's values in order, e.g. ["YS", "YM", "S", "M"]. Replaces the list: a size left out is removed with its stock. [] = one size
second_option_name
string
A second option, e.g. Color; empty to remove it
second_option_values
array of string
e.g. ["Black", "Red"]; every pair with the sizes becomes a variant
sold_on_website
boolean
true = sold in the website shop
sold_at_front_desk
boolean
true = sold at the front desk
offered_at_registration
boolean
Offer it on the competition registration form (needs sold_on_website)
pickup
boolean
Can be picked up at the gym
shipping
boolean
Can be shipped
on_sale
boolean
true = on sale now; false = a draft that isn't sold. To stop selling, use stop_selling_product
dry_run
boolean
true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet.
Change a product: name, price, description, category, sizes and options, where it is sold, pickup or shipping, each variant's price, stock or SKU, or put a draft on sale (owners and managers). Send only what changes; everything else, photos included, stays.
Parameter
Type
Description
productrequired
string
The product's current name
new_title
string
The product's new name
price
number
Dollars
compare_at_price
number
The old price shown crossed out, in dollars; 0 to remove
description
string
What families read on the product page (up to 3,000 characters)
Sets the sales tax kind: lessons (a private lesson or session sold online with no date: the gym sets the time; name the option Coach for one price per coach), tshirts, tanks, hoodies, shorts, socks, hats, clothing, bottles, grip (grip socks, chalk, tape), bags, stickers, books, food (drinks and snacks), fee (spectator or other fee, front desk only), other
option_name
string
The first option's name, e.g. Size
sizes
array of string
The first option's values in order, e.g. ["YS", "YM", "S", "M"]. Replaces the list: a size left out is removed with its stock. [] = one size
second_option_name
string
A second option, e.g. Color; empty to remove it
second_option_values
array of string
e.g. ["Black", "Red"]; every pair with the sizes becomes a variant
sold_on_website
boolean
true = sold in the website shop
sold_at_front_desk
boolean
true = sold at the front desk
offered_at_registration
boolean
Offer it on the competition registration form (needs sold_on_website)
pickup
boolean
Can be picked up at the gym
shipping
boolean
Can be shipped
on_sale
boolean
true = on sale now; false = a draft that isn't sold. To stop selling, use stop_selling_product
variants
array of object
Per-variant price, stock or SKU changes
variants[].variantrequired
string
The variant's name from get_products, e.g. M or Black / M
variants[].price
number
Its own price in dollars; 0 = the product's price
variants[].stock
integer
How many are in stock; -1 = not tracked
variants[].sku
string
The variant's SKU (stock code); empty removes it
dry_run
boolean
true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet.
Take a product off sale, on the website and at the front desk: it becomes a draft, kept with its photos and stock, and update_product with on_sale: true sells it again (owners and managers). Ask the owner to confirm, then send confirm: true. Nothing is deleted.
Parameter
Type
Description
productrequired
string
The product's id or exact name, from get_products
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 gym's discount codes: the code, the discount, where it works, start and end dates, limits, whether it is active and how many times it has been used. Totals only: never who used it.
Create a discount code customers type at checkout (owners and managers). Ask the owner for the discount, where it works and any dates or limits; never guess them.
Parameter
Type
Description
coderequired
string
What customers type, e.g. COACH10 (letters and numbers, 3 to 30)
kindrequired
string: percent | amount | free_shipping
percent off, a dollar amount off, or free shipping (shop orders only)
value
number
The percent (1 to 100) or the dollars off
works_forrequired
array of shop | registration | camp | party | class
Where it works: shop (shop orders), registration (competition registrations), camp (camps and special events), party (party bookings), class (class drop-ins and sessions)
starts_on
string
YYYY-MM-DD; empty = now
ends_on
string
YYYY-MM-DD; empty = never
most_uses
integer
How many times it can be used in all; 0 = no limit
once_per_customer
boolean
true = each customer can use the code only once
members_only
boolean
Only for families with a membership
minimum_order
number
Dollars; 0 = none
note
string
A private note, e.g. Coaches' families (up to 120 characters)
active
boolean
Default true
dry_run
boolean
true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet.
Change a discount code: the code itself, the discount, where it works, dates, limits or note, or switch it back on (owners and managers). Send only what changes.
Parameter
Type
Description
coderequired
string
The code as it is now
new_code
string
The new code customers type; leave out to keep the current one
kind
string: percent | amount | free_shipping
percent off, a dollar amount off, or free shipping (shop orders only)
value
number
The percent (1 to 100) or the dollars off
works_for
array of shop | registration | camp | party | class
Where it works: shop (shop orders), registration (competition registrations), camp (camps and special events), party (party bookings), class (class drop-ins and sessions)
starts_on
string
YYYY-MM-DD; empty = now
ends_on
string
YYYY-MM-DD; empty = never
most_uses
integer
How many times it can be used in all; 0 = no limit
once_per_customer
boolean
true = each customer can use the code only once
members_only
boolean
Only for families with a membership
minimum_order
number
Dollars; 0 = none
note
string
A private note, e.g. Coaches' families (up to 120 characters)
active
boolean
true = works at checkout. To switch it off use turn_off_discount_code
dry_run
boolean
true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet.
Stop a discount code from working at checkout; it is kept, with its uses, and update_discount_code with active: true switches it on again (owners and managers). Ask the owner to confirm, then send confirm: true.
Parameter
Type
Description
coderequired
string
The code to turn off, as customers type it
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.
Whether the website sells gift cards (the gift cards page) and the amounts it offers. Gift cards themselves, their balances and buyers stay in the back office.
Change gift cards on the website Changesdry_runconfirm
Switch gift card sales on the website on or off, or change the amounts offered (owners and managers). Switching sales off needs the owner's yes and confirm: true. Selling, using or voiding a card is done at the front desk.
Parameter
Type
Description
sell_online
boolean
false = stop selling gift cards on the website (cards already sold keep working)
amounts
array of number
Up to 6 dollar amounts to offer, $5 to $500, e.g. [25, 50, 100]
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 gym's own promotions and the ready-made ones for the big sale days (Black Friday class pack sale, gift card bonus, birthday party deal, early-bird camps, shop sale, toy drive, Parents' Night Out): what each one is, whether it's off, scheduled, running or ended, its dates, code and banner words, the suggested dates and amounts for the ones that are off, and what must be set up first.
Turn on a promotion, change one, or make the gym's own (key "new" with name and kind) (owners only). It starts and ends by itself on its dates; a code promotion makes the discount code (shown in Money > Discount codes too). Use the suggested values from get_promotions unless the owner said otherwise, and confirm the dates, code and amount first.
Parameter
Type
Description
keyrequired
string
The promotion's id from get_promotions (e.g. bf-packs, gift-bonus, or an own one's own-... id), or "new" to make the gym's own
name
string
Own promotions: its name, e.g. Winter Break Special
kind
string: code | banner
Own promotions: a discount code, or a banner only
works_for
string: pack | party | camp | class | registration | shop
Own code promotions: class packs, birthday parties, camps and special events, drop-in classes, competition entries or the shop
button_page
string
Own promotions: the website page the banner's button opens, e.g. /camps (leave out for the page that fits the discount)
button_words
string
Own promotions: the button's words, up to 30 letters
startsrequired
string
First day, YYYY-MM-DD
endsrequired
string
Last day, YYYY-MM-DD
code
string
Discount code customers type (code promotions only), e.g. BLACKFRIDAY
discount_type
string: percent | amount
percent off or dollars off (code promotions)
discount
number
The percent (1-90) or dollars (1-1000) off
every_dollars
number
Gift card bonus: for every this many dollars in gift cards...
bonus_dollars
number
...the buyer gets a bonus card of this many dollars
banner
boolean
Show the banner at the top of the website on those days (default true)
banner_words
string
Own banner words (up to 110 letters); leave out to use the suggested words
dry_run
boolean
true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet.
The website shop's settings: whether the Shop page is on, gear offered at competition registration and its discount, pickup at the gym and its note, shipping and its price, free shipping over an amount, the order number prefix, and which shipping update emails customers get. Settings only: never orders or buyers.
Change the website shop's settings (owners and managers): the Shop page on or off, gear at competition registration and its discount, pickup and its note, shipping and its price, free shipping over an amount, the order number prefix, and the automatic shipping update emails. Send only what changes. Switching the Shop page, gear at registration, pickup, shipping or a shipping email off needs confirm: true after the owner says yes. At least one of pickup or shipping stays on.
Parameter
Type
Description
shop_page_on_website
boolean
true shows the Shop page on the website
gear_offered_at_competition_registration
boolean
true offers gear while families register for a competition
registration_discount_per_item
number
Dollars off each product bought with a competition registration; 0 = none
pickup_at_the_gym
boolean
true lets customers pick orders up at the gym
pickup_note
string
Shown at checkout and in the receipt, e.g. At the front desk (up to 160 characters)
shipping
boolean
Orders can be shipped (US addresses)
shipping_price_per_order
number
Dollars
free_shipping_over
number
Dollars; 0 = no free shipping
order_number_prefix
string
Up to 8 letters or digits, e.g. WNA; empty for none
out_for_delivery_email
boolean
true emails the customer when an order is out for delivery
delivered_email
boolean
true emails the customer when an order is delivered
delivery_problem_email
boolean
true emails the customer when a delivery has a problem
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 vendors whose products the gym sells for them (Money > Vendors; owners only): each vendor's name, the email their monthly statement goes to, their share of each sale, the card fee they carry, and which products they own. Not sales, amounts owed or payouts.
Add a vendor, or change one's name, statement email, share of each sale or card fee (owners only; Money > Vendors). Ask the owner for the share and the fee; never guess them. A changed share applies to sales from now on. This never pays anyone: payouts are marked in the back office.
Parameter
Type
Description
vendorrequired
string
The vendor's name (an existing one to change it, or a new one to add it)
new_name
string
The vendor's new name
statement_email
string
Where their monthly statement is emailed (on the 1st, copied to the owners); empty for none
their_share_percent
number
Their share of each sale: 100 = all of it, 80 = the gym keeps 20%
card_fee_they_carry_percent
number
0 to 20; taken off card sales only; 0 = the gym absorbs card fees
dry_run
boolean
true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet.
One product's photos in order (photo 1 is the main one shown in the shop), each with its description and a link to see it, and whether the product page shows a size guide. Use the photo numbers with set_product_main_photo or remove_product_photo.
Make one of a product's photos the main one: it shows first in the shop and on the product page (owners and managers). The other photos keep their order.
Parameter
Type
Description
productrequired
string
The product's id or exact name, from get_products
photorequired
integer
The photo's number from get_product_photos
dry_run
boolean
true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet.
Take one photo off a product (owners and managers). Show the owner which photo it is (its see_it link) and ask; then send confirm: true. The picture stays in the gym's photo library.
Parameter
Type
Description
productrequired
string
The product's id or exact name, from get_products
photorequired
integer
The photo's number from get_product_photos
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.
Take a product's size guide off Changesdry_runconfirm
Take the size guide (how to measure and each size's measurements) off a product's page (owners and managers). NinjaHQ can add it again later; it can't be added from here. Ask the owner, then send confirm: true.
Parameter
Type
Description
productrequired
string
The product's id or exact name, from get_products
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.