Consent Flow Development
Build the consumer consent journey, including authorization URLs, redirects, screens, API calls, and deployment.
1. Introduction
Your organisation, as the data holder, builds two parts of the consumer consent journey:
- Consumer-facing screens for authentication, account selection, consent review, approval or decline, redirects, and errors.
- Backend integration that passes authorization requests to Ozone, retrieves and updates consent details, and reports the outcome.
Ozone's Authorization Server validates authorization requests and handles the authorization protocol. Consent Manager stores consent records and manages their state.
This guide explains what to build and how the screens and API calls fit together. This guide covers CDR data sharing. Requirements depend on your products and digital channels.
2. Integration checklist
Complete the applicable actions for each environment. Each link leads to the detailed requirements.
| Action | Guidance | Task |
|---|---|---|
| 1 | Authorization URL | Configure the URL consumers are directed to when a consent request starts |
| 2 | Redirects | Agree and implement the redirect patterns needed for your digital channels |
| 3 | Screens | Build the authentication, consent, redirect, and error screens required for your products and channels |
| 4 | API callbacks | Implement the API calls your backend makes during the consent journey |
| 5 | Deployments | Deploy your consent authorization application to all applicable environments |
3. Requirements
The following sections explain the decisions, screens, and API integration needed for each action.
Use the applicable API specificationsThe API Reference contains the OpenAPI specifications and detailed sequence diagrams for the calls described in this guide.
Select Australia: CDR and the release for your deployment using the market and release selector. See CDR Standard and Versions for the baseline.
3.1 Authorization URL
The authorization URL is the entry point for the consumer consent journey. It is usually published through the .well-known endpoint hosted by Ozone.
The ADR redirects the consumer to this URL with query parameters defined by the Consumer Data Standards. For CDR, the request refers to the ADR's Pushed Authorization Request (PAR).
Your organisation must receive the complete request and pass it to Ozone's Authorization Server exactly as received, including all query parameters. Ozone uses this information to validate the request.
Action 1: Configure the authorization URL
- Agree your authorization URL and provide it to Ozone.
- Configure the endpoint to receive incoming redirect requests with all query parameters.
3.2 Redirects
Redirect requirements depend on the CDR requirements and the digital channels your organisation provides.
| Your digital channels | Redirect patterns to support |
|---|---|
| Web banking only | Web-to-web and app-to-web |
| Mobile banking only | Web-to-app and app-to-app, with a QR code fallback when the banking app is on another device |
| Web and mobile banking | Web-to-web, web-to-app directly where supported on the device, app-to-app, and app-to-web |
Implement the applicable patterns so consumers can move between the ADR and your banking channel and return to the ADR after completing the journey.
3.2.1 *-to-app redirect
A *-to-app redirect starts in either a browser or an ADR app and opens your banking app.
Where your organisation offers mobile banking, the CDR baseline states that *-to-app redirects are mandatory from 10 May 2027. Plan and test the applicable redirect patterns for your digital channels.
For redirects between apps on the same device, use the platform's supported linking mechanisms:
- iOS: Universal Links.
- Android: App Links.
Configure the links to open the appropriate app and screen and support the consumer's return to the ADR.
3.2.2 QR fallback for mobile-only banking
If your organisation provides only mobile banking, a consumer may start the journey on a device where your banking app is not installed.
Provide a QR code web page for this case. The consumer scans the code using another device with your banking app installed and completes authentication there.
This provides a route to complete the journey when there is no web banking alternative.

Example QR code web page
Action 2: Implement redirects
- Confirm your digital channels and the redirect patterns needed.
- If you offer mobile banking, confirm the applicable app redirect requirements and implement Universal Links for iOS and App Links for Android.
- If mobile banking is your only channel, build the QR code fallback for consumers whose banking app is on another device.
3.3 Screens
After the consumer reaches your authorization URL, your application presents the screens needed to complete authentication and consent.
A typical journey starts with authentication, continues to account selection and consent, and ends with a redirect to the ADR.
---
title: Consent screen flow diagram
---
%%{init: {
"themeVariables": {
"fontFamily": "Inter, Arial, sans-serif",
"fontSize": "14px",
"lineColor": "#0B1340",
"textColor": "#0B1340"
},
"themeCSS": "
.cluster-label span {
background-color: #F6F7FB;
color: #0B1340;
padding: 2px 8px;
border-radius: 3px;
font-weight: 600;
}
"
}}%%
flowchart LR
START([Consumer starts<br/>in ADR app])
REDIRECT_IN[Redirect to your<br/>authorization URL]
subgraph FI ["Your screens"]
direction LR
AUTH[Authentication<br/>screen] --> ACCOUNTS[Account selection<br/>and consent screen]
ACCOUNTS --> DECISION{Consumer<br/>decision}
DECISION --> APPROVED((Approve))
DECISION --> DECLINED((Decline))
APPROVED --> REDIRECT_OUT[Redirect<br/>screen]
DECLINED --> REDIRECT_OUT
end
END_OK([Back in ADR app<br/>access granted])
END_NO([Back in ADR app<br/>no access])
START --> REDIRECT_IN --> AUTH
REDIRECT_OUT -->|Approved| END_OK
REDIRECT_OUT -.->|Declined| END_NO
%% Start and end states: navy
classDef state fill:#0B1340,stroke:#0B1340,color:#FFFFFF,stroke-width:2px
%% Screens and steps: pale teal
classDef action fill:#E8F4F6,stroke:#1C9EB8,color:#0B1340,stroke-width:2px
%% Decision: pale orange
classDef decision fill:#FDEAE5,stroke:#FD6435,color:#0B1340,stroke-width:2px
%% Positive outcome: white with teal border
classDef positive fill:#FFFFFF,stroke:#1C9EB8,color:#0B1340,stroke-width:2px
%% Negative outcome: white with orange border
classDef negative fill:#FFFFFF,stroke:#FD6435,color:#0B1340,stroke-width:2px
class START,END_OK,END_NO state
class REDIRECT_IN,AUTH,ACCOUNTS,REDIRECT_OUT action
class DECISION decision
class APPROVED positive
class DECLINED negative
%% FI screens: neutral container
style FI fill:#F6F7FB,stroke:#C4CBD8,stroke-width:1.5px
linkStyle default stroke:#0B1340,stroke-width:1.5px
1. Authentication screen
The consumer confirms their identity. Use an authentication experience consistent with your existing web or mobile banking channels.
For CDR, the Consumer Data Standards require a one-time password (OTP) in the redirect-based authentication flow, and you must not ask the consumer for their existing banking password. Check the current CDS security profile for the full authentication requirements.

Example authentication screen
2. Account selection and consent screens
The consumer reviews the request, selects the applicable accounts, and approves or declines. Combine account selection and consent review on one screen rather than introducing separate steps.
For CDR data sharing, show the data and accounts covered by the consumer’s consent.

Example AIS consent details screen
3. Redirect screen
Return the consumer to the ADR after the journey completes, using the redirect URI returned by Ozone.

Example redirect screen
4. Error screen
Explain when the consent journey cannot be completed. The error paths in API callbacks identify when the journey must end at your organisation and when the consumer should return to the ADR.

Example error screen
Consumer experience guidelines
Use the CDR Consumer Experience (CX) Guidelines for screen content, wireframes, and layout requirements. The screenshots above are illustrative and are not CDR conformance templates.
Action 3: Build the journey screens
- Confirm the CDR consumer experience requirements for your products.
- Build authentication, account selection and consent, redirect, and error screens.
- Keep authentication consistent with your existing digital channels.
3.4 API callbacks
Your backend calls the Authorization Server and Consent Manager at specific points in the journey.
These calls connect the consumer-facing screens to the authorization interaction and consent record managed by Ozone.
| Endpoint | Purpose |
|---|---|
GET /auth | Starts the authorization interaction using the request received from the ADR |
GET /consents/{consentId} | Retrieves consent details for your screens |
PATCH /consents/{consentId} | Updates the consent with selected accounts, the authenticated consumer's ID, and the final consent status |
POST /doConfirm | Reports a successful authorization outcome |
POST /doFail | Reports an unsuccessful or declined authorization outcome |
3.4.1 How the calls fit into the flow
The diagrams below show the screens, API calls, and success and error paths. Numbers match the success path table; E1–E6 match the error path table.
---
title: Consent authorisation flow diagram
---
%%{init: {
"themeVariables": {
"lineColor": "#0B1340",
"textColor": "#0B1340"
},
"flowchart": { "rankSpacing": 30, "nodeSpacing": 30 },
"themeCSS": ".cluster-label { transform: translate(24px, 10px) !important; } .cluster-label span, .cluster-label div { color: #0B1340 !important; font-weight: 600 !important; }"
}}%%
flowchart LR
subgraph LEGEND ["Diagram Legend"]
direction LR
SCREEN[Data holder screen]
CALLBACK{{Callback to Ozone}}
ACTION{Action}
SUCCESS["━━━━▶ Success"]
ERROR["┅┅┅┅▶ Error"]
end
%% Keep items in one row, evenly spaced (invisible links 0-3)
SCREEN ~~~ CALLBACK ~~~ ACTION ~~~ SUCCESS ~~~ ERROR
classDef screen fill:#E8F4F6,stroke:#1C9EB8,color:#0B1340,stroke-width:2px
classDef callback fill:#0B1340,stroke:#0B1340,color:#FFFFFF,stroke-width:2px
classDef decision fill:#FDEAE5,stroke:#FD6435,color:#0B1340,stroke-width:2px
classDef success fill:#FFFFFF,stroke:#C4CBD8,color:#0B1340,stroke-width:1.5px
classDef error fill:#FFFFFF,stroke:#C4CBD8,color:#FD6435,stroke-width:1.5px
class SCREEN screen
class CALLBACK callback
class ACTION decision
class SUCCESS success
class ERROR error
style LEGEND fill:#FFFFFF,stroke:#C4CBD8,stroke-width:1.5px
linkStyle 0,1,2,3 stroke:none,stroke-width:0
%%{init: {
"themeVariables": {
"fontFamily": "Inter, Arial, sans-serif",
"fontSize": "14px",
"lineColor": "#0B1340",
"textColor": "#0B1340",
"titleColor": "#0B1340"
},
"themeCSS": "
.cluster-label span {
background-color: #F6F7FB;
color: #0B1340;
padding: 2px 8px;
border-radius: 3px;
font-weight: 600;
}
"
}}%%
flowchart TD
START([Consumer arrives at your<br/>authorization URL from ADR])
CB_AUTH{{"1. GET /auth"}}
S_AUTH[2. Authentication screen]
D_SCA{Authentication}
CB_GET{{"3. GET /consents/{consentId}"}}
S_CONSENT[4. Consent and account<br/>selection screen]
D_CHOICE{Consumer<br/>choice}
CB_PATCH{{"5. PATCH /consents/{consentId}"}}
CB_CONFIRM{{"6. POST /auth/{interactionId}/doConfirm"}}
S_OK[7. Redirect screen]
END_OK([Back in ADR app<br/>access granted])
S_ERR[Data holder error screen]
END_STOP([Journey ends<br/>at your organisation])
R_303[Redirect to ADR]
CB_FAIL{{"POST /auth/{interactionId}/doFail"}}
S_FAILREDIR[Redirect screen]
END_ERR([Back in ADR app<br/>no access])
%% Success path (links 0-9)
START --> CB_AUTH
CB_AUTH -->|200 OK| S_AUTH
S_AUTH --> D_SCA
D_SCA -->|Success| CB_GET
CB_GET -->|200 OK| S_CONSENT
S_CONSENT --> D_CHOICE
D_CHOICE -->|Approve| CB_PATCH
CB_PATCH -->|204 No Content| CB_CONFIRM
CB_CONFIRM -->|302 + authorization code| S_OK
S_OK --> END_OK
%% Error paths (links 10-19)
CB_AUTH -.->|E1: 400| S_ERR
S_ERR -.-> END_STOP
CB_AUTH -.->|E2: 302| R_303
R_303 -.-> END_ERR
D_SCA -.->|E3: Failure or timeout| CB_FAIL
CB_GET -.->|E4: 400 or no accounts| CB_FAIL
D_CHOICE -.->|E5: Decline, cancel<br/>or timeout| CB_FAIL
CB_PATCH -.->|E6: 400| CB_FAIL
CB_FAIL -.->|302 + OIDC error| S_FAILREDIR
S_FAILREDIR -.-> END_ERR
%% Start state: navy
classDef state fill:#0B1340,stroke:#0B1340,color:#FFFFFF,stroke-width:2px
%% Screens: pale teal
classDef screen fill:#E8F4F6,stroke:#1C9EB8,color:#0B1340,stroke-width:2px
%% API callbacks: navy
classDef callback fill:#0B1340,stroke:#0B1340,color:#FFFFFF,stroke-width:2px
%% Customer actions: pale orange
classDef decision fill:#FDEAE5,stroke:#FD6435,color:#0B1340,stroke-width:2px
%% Successful end: white with teal border
classDef positive fill:#FFFFFF,stroke:#1C9EB8,color:#0B1340,stroke-width:2px
%% Unsuccessful end: white with orange border
classDef negative fill:#FFFFFF,stroke:#FD6435,color:#0B1340,stroke-width:2px
class START state
class S_AUTH,S_CONSENT,S_OK,S_ERR,R_303,S_FAILREDIR screen
class CB_AUTH,CB_GET,CB_PATCH,CB_CONFIRM,CB_FAIL callback
class D_SCA,D_CHOICE decision
class END_OK positive
class END_ERR,END_STOP negative
linkStyle default stroke:#0B1340,stroke-width:1.5px
linkStyle 10,11,12,13,14,15,16,17,18,19 stroke:#FD6435,stroke-width:1.5px
Notes: Teal boxes represent consumer-facing screens. Navy boxes represent API calls. Numbers match the success path steps below; E1–E6 match the error paths.
3.4.2 Success path
| Step | What your organisation does | Response and next step |
|---|---|---|
1. GET /auth | Pass the request received at your authorization URL exactly as received, including all query parameters. Ozone validates the request | 200 OK: store the returned interactionId and consent ID, then show the authentication screen |
| 2. Authentication screen | Ask the consumer to complete authentication | Success: continue to step 3. Failure or timeout: follow E3 |
3. GET /consents/{consentId} | Retrieve the consent details and load the consumer's accounts from your core banking system | 200 OK: show the consent and account selection screen |
| 4. Consent and account selection screen | Let the consumer review the request, select the applicable accounts, and approve or decline | Approve: continue to step 5. Decline, cancel, or timeout: follow E5 |
5. PATCH /consents/{consentId} | Update the consent with the selected account IDs and the consumer's user ID (psuIdentifiers.userId). Account IDs limit the accounts available to the ADR. The user ID identifies the consumer in subsequent Ozone Connect calls and must not change for the same consumer | 204 No Content: continue to step 6. 400: follow E6 |
6. POST /auth/{interactionId}/doConfirm | Use the interactionId from step 1 to report successful authentication and consent | 302: use the returned ADR redirect URI. It includes an authorization code on success, or an error if Ozone encounters an internal failure. Redirect the consumer in either case |
| 7. Redirect screen | Redirect the consumer to the URI returned in step 6 | The consumer returns to the ADR. On success, the ADR exchanges the authorization code for tokens |
CDR: subject identifier and amendmentsSubject identifier (
sub). The Consumer Data Standards require thesubclaim in the ID token and userinfo response to be a pairwise pseudonymous identifier (PPID). Generate it from your consumer identifier – and, where the ADR registered asector_identifier_uri, from that value – so that each ADR receives a different value for the same consumer. Pass it assubin thedoConfirmrequest body. Ozone includes it in the ID token and the userinfo response.Consent amendments. When the ADR amends an existing sharing arrangement, its request includes the existing
cdr_arrangement_id. TheGET /authresponse returns it ininteraction.params.claims.cdr_arrangement_id, and the new consent keeps the same arrangement. Use Consent groups to retrieve the earlier consents in the arrangement, for example to show the consumer what is changing.
3.4.3 Error paths
| Ref | Trigger | What your organisation does |
|---|---|---|
| E1 | GET /auth returns 400: Ozone cannot verify that the request came from a valid ADR | Show your error screen and end the journey. Do not redirect to the ADR |
| E2 | GET /auth returns a redirect response: the ADR is valid, but the request cannot proceed. For CDR, Ozone returns 302 with the redirect in the Location header. | Redirect to the returned Location URI without changes. Do not call doFail: no successful interaction was started. |
| E3 | Authentication fails or times out | Call doFail |
| E4 | GET /consents/{consentId} returns 400, or the consumer has no eligible accounts | Call doFail |
| E5 | The consumer declines, cancels, or times out on the consent screen | Call doFail |
| E6 | PATCH /consents/{consentId} returns 400 | Call doFail |
For E3–E6:
- Call
POST /auth/{interactionId}/doFailusing theinteractionIdfrom step 1. - Include an OAuth
erroranderror_descriptionwhere appropriate. - Ozone returns 302 with an ADR redirect URI containing the error and no authorization code.
- Redirect the consumer to that URI.
For E1, ending the journey at your organisation protects consumers against open redirects.
Record the consent authorization outcomeUse
PATCH /consents/{consentId}to record the outcome before completing the authorization interaction:
- For a successful authorization, provide the required consumer information, selected accounts where applicable, and the status equivalent to Authorized before calling
doConfirm.- For an unsuccessful authorization, record the applicable rejected or failed status and required rejection information before calling
doFail.For CDR, a
Rejectedstatus requiresabandonedByStage, which records where the journey ended and is used for CDR metrics. See Consents for the required fields and statuses. CallingdoFaildoes not update the consent automatically.
Action 4: Implement API callbacks
- Implement the Authorization Server and Consent Manager calls at the appropriate points in your screen flow.
- Pass the incoming authorization request to
GET /authexactly as received, including all query parameters.- Handle the success and error paths, including the final consent status update.
3.5 Deployments
Deploy your consent authorization application according to the purpose of each environment.
| Environment | Deployment requirements |
|---|---|
| Staging | Deploy your application to every Staging environment used for testing. One Staging environment is provided by default. Validate the complete journey here before go-live |
| Production | Deploy the same application version tested in Staging before go-live |
Action 5: Deploy the consent applicationDeploy your consent authorization application to every applicable Staging environment and to Production, following the testing and approval process.
Updated 7 days ago