Pagination

The API uses two pagination styles. The endpoint decides which one applies.
Most list endpoints take page and perPage query parameters. They return a meta block with the current page and the total, plus a links block with first, last, prev, and next URLs. perPage defaults to 100, and 100 is also the maximum.Page-based endpoints: /academies, /memberships, /members/{memberId}/memberships, and /attendance.

Amounts and currency

Money appears in two encodings. Read the wrong one and your totals come out wrong by a factor of 100, so check which one applies. A minor-units value is a signed integer in the currency’s ISO 4217 minor unit. It can go negative on refunds and chargebacks. A Money object carries a decimal amount in major units plus a currency code.
A transaction with "total": 5000 and "currency": "USD" is 50.00,not50.00, not 5,000. Divide by the minor-unit factor for the currency, which is 100 for USD. For zero-decimal currencies such as JPY the minor unit is the whole unit, so 5000 is Y5000. For KWD, which has three decimals, 5000 is 5.000 KWD.

Errors

An error returns a JSON body with a message and a correlationId. Quote the correlationId to Gymdesk support to trace a request. A validation failure also returns a field-level errors map.
The API returns 404 for a resource in an academy your key cannot reach. It does not return 403, so a resource in another academy stays undetectable. The same correlation ID comes back in the GD-Correlation-Id response header.