Implement Ozone Connect account endpoints for CDR data sharing, including request handling, endpoint support and response mapping guidance.
Use the Accounts APIs to return account information 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 Accounts 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 Accounts | GET /accounts | Mandatory | Return accounts for the supplied account IDs. Also serves single-account requests when the individual endpoint is not implemented. |
| Get Account Detail | GET /accounts/{accountId} | Optional | Return details for a single account. |
Implement the bulk endpoint,
GET /accounts. The individual endpoint,GET /accounts/{accountId}, is optional.
When an accredited data recipient (ADR) requests details for a single account, Ozone calls your individual Ozone Connect endpoint if you have implemented it. Otherwise, Ozone calls your bulk endpoint and returns only the requested account.
CDR endpoint support
Ozone uses your Ozone Connect responses to serve the following CDR endpoints.
| CDR endpoint | Method and path | Supported endpoint versions |
|---|---|---|
| Get Accounts | GET /banking/accounts | V2–V3 |
| Get Account Detail | GET /banking/accounts/{accountId} | V4–V5 |
CDR endpoint versions are separate from the CDR standard version and the Ozone platform release version.
Get Account Detail adds the instalments object from V5 (CDR v1.35). Ozone removes it from V4 responses.
Request handling
For GET /accounts, accountIds contains a comma-separated list of internal account identifiers within the consumer's consent. Return only accounts listed in this parameter.
- Apply the requested
product-category,open-statusandis-ownedfilters. - Use the requested
pageandpage-sizeparameters to return the requested page of results. - If you cannot find some requested accounts, return the accounts you can find.
- If you find no accounts, return HTTP
200with an emptydataarray.
Use consistent Ozone Connect account identifiers across accounts, balances, transactions, direct debits, scheduled payments and instalment plans.
Refer to Get Accounts for parameter definitions, supported values, defaults and required headers.
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 Accounts response mapping for field-specific rules.
Worked example: return one account
This example shows your Ozone Connect response and the corresponding CDR fields. Before using it, configure mutual TLS (mTLS, which authenticates both sides of the connection) and the application authentication profile. Authentication headers are omitted from the excerpts.
1. Receive the Ozone Connect request
GET /accounts?accountIds=account-001&page=1&page-size=25
o3-caller-api-version: 3This is the request from Ozone to your implementation, not the ADR-facing request. The remaining context headers are defined in Get Accounts. Return only the requested internal account IDs, within the supplied request scope.
2. Return the account
Return HTTP 200 with the following body:
{
"data": [
{
"id": "account-001",
"displayName": "Everyday account",
"product": { "productName": "Everyday Account" },
"accountNumbers": [
{ "schemeName": "cdr.maskedNumber", "identification": "XXXX1234" }
],
"productCategory": "TRANS_AND_SAVINGS_ACCOUNTS",
"status": "OPEN",
"accountOwnership": "ONE_PARTY",
"isOwned": true
}
],
"meta": { "totalPages": 1, "totalRecords": 1 }
}3. Check the CDR mapping
The following excerpt shows the relevant account fields in the ADR-facing response:
{
"data": {
"accounts": [
{
"accountId": "cdr-account-example-001",
"displayName": "Everyday account",
"maskedNumber": "XXXX1234",
"productCategory": "TRANS_AND_SAVINGS_ACCOUNTS",
"productName": "Everyday Account",
"openStatus": "OPEN",
"accountOwnership": "ONE_PARTY",
"isOwned": true
}
]
}
}cdr-account-example-001 represents the opaque identifier produced by Ozone; it is not the calculated output for this sample. Your implementation continues to use account-001. Ozone translates the ADR-facing identifier back when making subsequent account-based requests.
| Ozone Connect value | CDR response value |
|---|---|
id | accountId, after Ozone's identifier transformation |
product.productName | productName |
accountNumbers[].identification with schemeName: cdr.maskedNumber | maskedNumber |
status | openStatus |
The other shown values retain their meaning. See Accounts response mapping for all field requirements and version-specific rules. The CDR excerpt omits response links, metadata and fields outside this example.
Related resources
- Accounts response mapping – field requirements and conversions to CDR responses.
- Get Accounts – bulk endpoint reference.
- Get Account Detail – individual endpoint reference.
- Data sharing diagram – Stage 5 shows how Ozone retrieves account data.
See Ozone Connect implementation for the mapping exercise and implementation process.