Implement Ozone Connect balance endpoints for CDR data sharing, including request handling, pagination and response mapping guidance.
Use the Balances APIs to return current and available balances, credit limits and currency purses (balances held in individual currencies) for accounts covered by the consumer's consent under the Consumer Data Right (CDR).
This page explains which endpoints you implement and how Ozone handles requests. Use the endpoint references for parameters, required headers and response schemas, and the Balances response mapping for field requirements and conversions.
Ozone Connect endpoints
Your organisation implements the following Ozone Connect (OC) endpoints for Ozone to call.
| OC endpoint | Method and path | Requirement | Purpose |
|---|---|---|---|
| Get Bulk Balances | GET /balances | Mandatory | Return balances for the supplied account IDs. Used for CDR Get Bulk Balances and Get Balances For Specific Accounts. |
| Get Account Balance | GET /accounts/{accountId}/balances | Mandatory | Return balances for a single account. Used for CDR Get Account Balance. |
Implement both endpoints. Balances have no fallback: Ozone always uses
GET /balancesfor multi-account requests andGET /accounts/{accountId}/balancesfor single-account requests.
When an accredited data recipient (ADR) requests balances for a single account, Ozone calls your individual Ozone Connect endpoint. It does not fall back to the bulk endpoint.
CDR endpoint support
Ozone uses your Ozone Connect responses to serve the following CDR endpoints.
| CDR endpoint | Method and path | Supported endpoint versions |
|---|---|---|
| Get Bulk Balances | GET /banking/accounts/balances | V1–V2 |
| Get Account Balance | GET /banking/accounts/{accountId}/balance | V1 |
CDR endpoint versions are separate from the CDR standard version and the Ozone platform release version.
Request handling
For GET /balances, accountIds contains the internal account identifiers selected by Ozone for this request. The request may include only some of the accounts covered by the consumer's consent. Return all applicable balance records for the supplied account identifiers.
- Ozone applies the
product-category,open-statusandis-ownedfilters when selecting accounts for the request. Ozone does not pass these filters to the bulk balance endpoint in this CDR flow. - If
balanceTypeis specified, return only that balance type. If it isn't, you can return more than one balance record per account – one for each balance type. - Ozone does not pass
pageandpage-sizeto the bulk balance endpoint in this flow. Return the balances for all supplied account IDs. Ozone divides the result into pages by account, keeping all balance records for each included account together. - If you cannot retrieve balances for some requested accounts, return the balances you can retrieve.
- If you find no balances, return HTTP
200with an emptydataarray.
When Ozone retrieves the accounts that qualify for the request, it can use a configured page size (the maximum number of accounts returned in one page). Ozone does not automatically request additional pages from your system in this flow. Configure the page size to cover all accounts you intend to include; do not assume that Ozone retrieves an unlimited number of accounts.
How balance records are mapped
Ozone Connect returns one record per balance, identified by balanceType. Ozone combines the records for each account into a single CDR balance object (a structured set of balance fields):
balanceType | Populates CDR field |
|---|---|
cdr.current | currentBalance |
cdr.available | availableBalance |
cdr.purses | an entry in purses |
Credit limits are returned in creditLines, identified by creditLineType: cdr.creditLimit populates creditLimit and cdr.amortisedLimit populates amortisedLimit.
Requested CDR version
The o3-caller-api-version header identifies the CDR endpoint version requested by the ADR.
You can return the same Ozone Connect response for supported CDR endpoint versions. Ozone removes fields that the requested version does not support. See Balances response mapping for field-specific rules.
Related resources
- Balances response mapping – field requirements and conversions to CDR responses.
- Get Bulk Balances – bulk endpoint reference.
- Get Account Balance – individual endpoint reference.
- Accounts – use the same account identifiers.
- Data sharing diagram – Stage 5 shows how Ozone retrieves account data.
See Ozone Connect implementation for the mapping exercise and implementation process.