Trax Platform API
The Trax Platform API gives websites and apps live access to an organization's Trax Online Registration data. With it, families can:
- browse programs, activities and memberships, with the portal's branding and content;
- sign in, and keep their household and its forms up to date;
- register and pay, with a cart and checkout;
- look after their account: balances, statements, saved cards, payment plans and automatic payments;
- give a donation.
The API serves these callers:
- The public registration portal, for families. It also serves an organization's website when that website is an nFocus site (see Building an nFocus site).
- Organization websites built in Duda, through widgets and external collections.
- The organization site, where organization staff run their website.
- The nFocus admin app, where nFocus support runs the platform for every client.
Base URL and versions
Every endpoint starts with a version: /v1/…. A version only ever gains fields and endpoints; anything that would
break a caller ships as a new version.
Portals: client token and org token
Each organization's registration portal is addressed by two tokens, the same ones in today's portal URLs
(https://…/{clientToken}/{orgToken}/):
| Token | Identifies | Example |
|---|---|---|
clientToken |
The Trax client (its database) | riverbend |
orgToken |
The organization's portal | north |
Portal endpoints live under /v1/portals/{clientToken}/{orgToken}/. An unknown, mistyped or mismatched pair returns
404 with the code portal-not-found. Duda sites store both tokens in their Content Library (see the Duda guide).
Quick start
- Read the portal's configuration (name, branding, feature switches):
Portal configuration
GET https://api.nfocus.solutions/v1/portals/riverbend/north/config → 200 OK, JSON
curl
curl -s 'https://api.nfocus.solutions/v1/portals/riverbend/north/config'JavaScript
const response = await fetch('https://api.nfocus.solutions/v1/portals/riverbend/north/config');
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/config");
using var response = await http.SendAsync(request);
var json = await response.Content.ReadAsStringAsync();- Search its activities:
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();- Open one activity, then its fee installments:
One activity
GET https://api.nfocus.solutions/v1/portals/riverbend/north/activities/3 → 200 OK, JSON
curl
curl -s 'https://api.nfocus.solutions/v1/portals/riverbend/north/activities/3'JavaScript
const response = await fetch('https://api.nfocus.solutions/v1/portals/riverbend/north/activities/3');
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/3");
using var response = await http.SendAsync(request);
var json = await response.Content.ReadAsStringAsync();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();Conventions
- JSON with camelCase names, query parameters included. Enumerations are camelCase strings (
"fullWaitlist"). - Numbers are JSON numbers. A number sent as a string (
"5") is refused. - Money is in integer cents (
8500is $85.00). Display text such as"$85.00"or"Free"comes alongside. - Dates are
YYYY-MM-DDin the organization's own calendar; times areHH:mm:sslocal to the organization. - Timestamps (names ending in
Utc) are UTC and end inZ("2026-11-24T21:25:50Z"), sonew Date(...)reads them correctly in any time zone. - Lists that can grow use one envelope:
{ items, page, pageSize, totalItems, totalPages }. - Errors follow RFC 9457 (see Errors and limits).
Where to go next
- Authentication and keys
- Catalog: activities and fees
- Portal configuration, content and memberships
- Duda websites
- Household and eligibility
- Cart and checkout
- Memberships
- Household and participant forms
- Account balances and statements
- Donations
- Saved cards
- Payment plans
- Automatic payments
- Website content
- Organization site
- Building an nFocus site
- Building an nFocus site from a template
- nFocus admin
- Reports and the troubleshooting log
- Errors and limits
- Moving a portal from legacy OLR
- API reference, generated from the live OpenAPI document, and the interactive console