Catalog: activities and fees
The catalog is everything the organization has published to its portal: activities, activity groups and parent/child activities. The API applies the same publishing rules as today's portal, and filters on the server.
Listings
GET /activities returns listings, the cards a family browses. A listing is one of:
kind |
What it is | id |
|---|---|---|
activity |
A standalone activity | the activity id |
group |
An activity group, such as "Summer Day Camp" with one session per week | the group id |
hierarchy |
A parent activity (such as a team) with child activities (such as lane groups) | the parent activity id |
A group or hierarchy whose sessions have different requirements (ages, genders, grades or memberships) appears as one
listing per set of requirements, as it does today. Each listing has a stable listingId, such as activity-12 or
group-1-20daa8e1, and its sessions.
Activities for an 8-year-old on Saturdays
GET https://api.nfocus.solutions/v1/portals/riverbend/north/activities?age=8&days=Sat&pageSize=12 → 200 OK, JSON
curl
curl -s 'https://api.nfocus.solutions/v1/portals/riverbend/north/activities?age=8&days=Sat&pageSize=12'JavaScript
const response = await fetch('https://api.nfocus.solutions/v1/portals/riverbend/north/activities?age=8&days=Sat&pageSize=12');
const data = await response.json();C#
using var http = new HttpClient();
using var request = new HttpRequestMessage(HttpMethod.Get, "https://api.nfocus.solutions/v1/portals/riverbend/north/activities?age=8&days=Sat&pageSize=12");
using var response = await http.SendAsync(request);
var json = await response.Content.ReadAsStringAsync();Filters
A listing matches a filter when any of its sessions matches. Lists of ids are comma-separated.
| Parameter | Matches |
|---|---|
q |
Text in the name or description |
program, category, location |
Program, category (impact area) or location ids |
gender |
Activities open to these genders (activities without a gender rule match every gender) |
schoolYear, gradeLevel |
Grade requirements; with both, one requirement must match both |
days, daysOnly |
Meets on any of Mon,Tue,…; with daysOnly=true, meets only on those days |
age, birthDate |
Age within the activity's limits; birth date within its born-after / born-before dates |
startFrom, startTo |
Session start date, inclusive (YYYY-MM-DD) |
minFeeCents, maxFeeCents |
Session price |
activityId, groupId |
One activity or group |
availability |
open, upcoming, waitlist, fullWaitlist, full, closed, mixed |
sort |
startDate (default), -startDate, name, -name |
page, pageSize |
Page number from 1; page size 1–100 (default 20) |
GET /catalog/filters lists the programs, categories, locations, genders, school years, grade levels, days, tags, ages
and price range present in the catalog, for building filter controls.
Filter values
GET https://api.nfocus.solutions/v1/portals/riverbend/north/catalog/filters → 200 OK, JSON
curl
curl -s 'https://api.nfocus.solutions/v1/portals/riverbend/north/catalog/filters'JavaScript
const response = await fetch('https://api.nfocus.solutions/v1/portals/riverbend/north/catalog/filters');
const data = await response.json();C#
using var http = new HttpClient();
using var request = new HttpRequestMessage(HttpMethod.Get, "https://api.nfocus.solutions/v1/portals/riverbend/north/catalog/filters");
using var response = await http.SendAsync(request);
var json = await response.Content.ReadAsStringAsync();Availability
availability |
Meaning |
|---|---|
open |
Registration is open and seats are available |
upcoming |
Registration opens on registrationStartDate |
waitlist |
Every sign-up goes to the waitlist |
fullWaitlist |
Full; new sign-ups go to the waitlist |
full |
Full, with no waitlist |
closed |
Registration has closed |
mixed |
A group or hierarchy whose sessions differ, with none open or upcoming |
availabilityLabel carries today's wording ("Capacity Reached (Waitlist)"). spotsLeft is set when the activity has a
capacity. It leaves out the seats other families hold while they check out, which spotsHeld counts (see "Seat holds"
in the cart guide). When every seat left is held, availability is full or fullWaitlist and availabilityLabel
says "All spots held, check back soon". Listings disappear once every session has ended or closed registration. All dates are evaluated in the
organization's time zone.
Fees
fee.fromCents is the lowest price among the listing's open sessions; fee.text is the display text, which may be an
organization's own wording ("Scholarships available") or its no-fee text ("Free"). For one activity,
GET /activities/{id}/fees lists the installments with their minimum due and due dates. Expired early-bird
installments drop out automatically.
Fee installments
GET https://api.nfocus.solutions/v1/portals/riverbend/north/activities/2/fees → 200 OK, JSON
curl
curl -s 'https://api.nfocus.solutions/v1/portals/riverbend/north/activities/2/fees'JavaScript
const response = await fetch('https://api.nfocus.solutions/v1/portals/riverbend/north/activities/2/fees');
const data = await response.json();C#
using var http = new HttpClient();
using var request = new HttpRequestMessage(HttpMethod.Get, "https://api.nfocus.solutions/v1/portals/riverbend/north/activities/2/fees");
using var response = await http.SendAsync(request);
var json = await response.Content.ReadAsStringAsync();Memberships required
requiresMembership and memberships name the membership types a family needs to register. They come from the
activity's own membership types or, when it has none, from the public membership types the portal offers online.
Activity groups
GET /activity-groups/{groupId} returns a group with all its listings.
An activity group
GET https://api.nfocus.solutions/v1/portals/riverbend/north/activity-groups/1 → 200 OK, JSON
curl
curl -s 'https://api.nfocus.solutions/v1/portals/riverbend/north/activity-groups/1'JavaScript
const response = await fetch('https://api.nfocus.solutions/v1/portals/riverbend/north/activity-groups/1');
const data = await response.json();C#
using var http = new HttpClient();
using var request = new HttpRequestMessage(HttpMethod.Get, "https://api.nfocus.solutions/v1/portals/riverbend/north/activity-groups/1");
using var response = await http.SendAsync(request);
var json = await response.Content.ReadAsStringAsync();