Skip to content
Last updated

Class API – URL Structure, Requests, and Responses

This page outlines the URL structure and the request/response formats used by the Class API.


URL Structure

All endpoints follow this pattern:

https://api.class.com.au/api/{version}/{scope}/{area}/{action}

Components

URL ComponentDescription
versionThe API version. Currently the only valid value is 1.0.
scopeThe scope of the requested resource:

Business level: b/{BusinessCode}
Fund level: f/{BusinessCode}/{FundCode}
areaLogical grouping of endpoints by resource (e.g., fund-data, member-data).
actionThe specific resource and action (e.g., member-detail/{memberId}).

Examples

  • https://api.class.com.au/api/1.0/b/Business/fund-data/fund-list
  • https://api.class.com.au/api/1.0/f/Business/Fund/member-data/member-detail/35572c36-9d63-4be5-a86f-072040a2781e

Request Headers

The Class API uses standard HTTP headers to control behavior.

HeaderDescription
AcceptSpecifies response media type and action version.

Supported media types: application/json, application/xml.

Action version format: `application/vnd.superip.action.v{version}+{json
Content-TypeMedia type of the request body.

Supported: application/json, application/xml, application/x-www-form-urlencoded; charset=UTF-8.

Default if omitted: interpreted as XML.
AuthorizationSend the access token as a Bearer token. Case-sensitive, including the word Bearer.

Example: Authorization: Bearer Orh1Vz8T...

Tip: When in doubt, prefer Accept: application/vnd.superip.action.v1+json and Content-Type: application/json for JSON workflows.


Response Format

All responses share a common envelope:

{
  "Errors": [
    {
      "Code": "ErrorCode",
      "Message": "A detailed, human-readable message explaining the error"
    }
  ],
  "Data": { }
}
  • Unsuccessful requests

    • Errors: contains one or more error objects with a code and message.
    • Data: empty object.
  • Successful requests

    • Errors: empty array.
    • Data: contains the endpoint-specific payload (see each endpoint’s documentation).

Response Code Overview

Status CodeNameDescription
200OKRequest completed successfully.
400Bad RequestThe request could not be processed. See response Errors for details.
401UnauthorizedMissing/invalid credentials, insufficient permissions, expired token, or token scope does not satisfy required scope.
404Not FoundResource not found (e.g., Business or Fund does not exist; token target scope does not match the business; valid business/fund but incorrect API name).
406Not AcceptableThe Accept header did not include any supported media types.
415Unsupported Media TypeThe Content-Type header specified an unsupported media type.
500Internal Server ErrorAn unhandled error occurred. Please report to Class.
501Not ImplementedUnsupported API version or action version.
503UnavailableService is down for maintenance or temporarily unavailable.

Minimal cURL Example (Bearer + JSON)

curl --location 'https://api.class.com.au/api/1.0/b/Business/fund-data/fund-list' \
  --header 'Authorization: Bearer <ACCESS_TOKEN>' \
  --header 'Accept: application/vnd.superip.action.v1+json'