The end-to-end CDR data-sharing flow – from the ADR's consent request to the call that retrieves the consumer's accounts.
This diagram illustrates a CDR data-sharing journey: an accredited data recipient (ADR) initiates an authorization request, the consumer authenticates with your organisation, the data holder, and authorizes data sharing, and the ADR obtains tokens before requesting data. Get Accounts is used as the example data request.
CDR data-sharing flow
%%{init: {
"theme": "base",
"themeVariables": {
"lineColor": "#0B1340",
"textColor": "#0B1340",
"actorBkg": "#0B1340",
"actorBorder": "#0B1340",
"actorTextColor": "#FFFFFF",
"actorLineColor": "#C4CBD8",
"signalColor": "#0B1340",
"signalTextColor": "#0B1340",
"noteBkgColor": "#FFF6D9",
"noteBorderColor": "#D9B44A",
"noteTextColor": "#0B1340",
"labelBoxBkgColor": "#FDEAE5",
"labelBoxBorderColor": "#FD6435",
"labelTextColor": "#0B1340",
"loopTextColor": "#0B1340"
},
"sequence": { "mirrorActors": true, "width": 190, "messageMargin": 32, "boxMargin": 10, "noteMargin": 10 },
"themeCSS": "rect.actor { rx: 23px; ry: 23px; stroke-width: 2px; } .actor-line { stroke: #C4CBD8 !important; stroke-width: 1.5px; } .note { stroke-width: 1.5px; } rect.note[x=\"70\"] { fill: #E8F4F6 !important; stroke: #1C9EB8 !important; } .labelBox { stroke-width: 1.5px; } .messageLine0, .messageLine1 { stroke-width: 1.5px; }"
}}%%
sequenceDiagram
participant EC as Consumer
box transparent Data Recipient
participant DRA as Data Recipient App
participant DRS as Application Server
end
box transparent Ozone
participant AS as Authorization Server
participant RS as Resource Server
participant CM as Consent Manager
participant BC as Ozone Connect
end
box transparent Data Holder
participant BA as Banking App
participant DHS as Application Server
participant DHR as Resource Server
end
EC->>DRA: Get account details
DRA->>DRS: Get account details
rect rgb(246, 247, 251)
Note over EC,DHR: Stage 1: Push the authorization request (PAR)
DRS->>AS: 1000 POST /par
Note right of DRS: The request object must contain the fields<br/>specified in the CDR standards.<br/>Ozone verifies the request object in line<br/>with the CDR FAPI profile.
AS-->>DRS: 1001 request-object-urn
end
rect rgb(246, 247, 251)
Note over EC,DHR: Stage 2: Initialise the auth code grant
DRS->>DRS: 2000 Create a redirect URI with request-object-urn
Note right of DRS: The redirect URI must be created in line<br/>with the CDR FAPI profile.
DRS->>DRA: 2001 Send Redirect
DRA->>BA: 2002 GET /auth
BA->>DHS: 2003 GET /auth
DHS->>AS: 2004 GET /auth
AS->>AS: 2005 verify authorization request
Note right of AS: The authorization server verifies the<br/>PAR request and unpacks the parameters.
AS->>CM: 2006 POST /consent
Note right of CM: Assigns the sharing arrangement: validates the<br/>cdr_arrangement_id from the request (same ADR),<br/>or generates a new one.
CM-->>AS: 2007 consentId
AS->>AS: 2008 create a new Interaction
AS-->>DHS: 2009 interaction id
opt get consent
Note right of CM: At this stage, the consent as held by the Consent Manager<br/>may be retrieved by the data holder. However, under CDR,<br/>the consent holds no additional information that isn't<br/>already available in the interaction.
DHS->>CM: 2010 GET /consents/{consentId}
CM-->>DHS: 2011 Consent
end
end
rect rgb(246, 247, 251)
Note over EC,DHR: Stage 3: Authenticate the consumer and authorize sharing
DHS->>BA: 3000 Start authentication and consent approval
EC<<->>BA: 3001 Authenticate, select accounts and approve sharing
BA->>DHS: 3002 Consumer authenticated and sharing approved
Note right of DHS: Account selection applies to account-based access.<br/>Record the authorization outcome, consumer identifier<br/>and selected internal account identifiers in the consent update.
DHS->>CM: 3003 PATCH /consents/{consentId}
CM-->>DHS: 3004 OK
DHS->>AS: 3005 POST /auth/{interactionId}/doConfirm
AS-->>DHS: 3006 redirect URI
end
rect rgb(246, 247, 251)
Note over EC,DHR: Stage 4: Generate access token
DHS->>BA: 4000 send redirect
BA->>DRA: 4001 Send redirect
DRA->>DRS: 4002 Auth Code
DRS->>AS: 4003 POST /token
AS->>CM: 4004 token issued for the consent
opt amended sharing arrangement
CM->>CM: 4005 revoke the earlier consents<br/>in the arrangement (AMENDMENT)
end
AS-->>DRS: 4006 access token, refresh token<br/>and cdr_arrangement_id
end
rect rgb(246, 247, 251)
Note over EC,DHR: Stage 5: Call an API
DRS->>RS: 5000 GET /banking/accounts
RS->>BC: 5001 GET /accounts
BC->>DHR: 5002 GET /accounts
DHR-->>BC: 5003 accounts
BC-->>RS: 5004 accounts
RS-->>DRS: 5005 accounts
DRS-->>DRA: 5006 accounts
DRA-->>EC: 5007 accounts
end
Drag to move. Scroll vertically to zoom. Swipe horizontally or use Shift + scroll to move sideways.
This diagram shows a successful authorization and data-sharing journey. For rejected requests and unsuccessful interactions, see Authorization Server APIs.
In Stages 1 and 2, the request object and the redirect URI must follow the Request Object requirements and the CDR security profile of the Consumer Data Standards.
Participants
The table below relates the participant labels in the diagram to the terms used in the Guides and this API Reference.
Participant group
Labels in the diagram
Role
Consumer
Consumer
The consumer who authorizes sharing their data.
ADR
Data Recipient App, Application Server, grouped under Data Recipient
The accredited organisation requesting the consumer's data.
The Ozone API Platform. The Ozone Connect component calls your Ozone Connect APIs.
Data holder (your organisation)
Banking App, Application Server, Resource Server, grouped under Data Holder
Your organisation. The Resource Server is where your Ozone Connect implementation runs.
API directions
ADR → Ozone – the ADR calls the CDR APIs hosted by Ozone. Step 5000 uses GET /banking/accounts as the example.
Your organisation → Ozone – your application calls the Authorization Server and Consent Manager APIs to manage the consumer's authorization journey.
Ozone → your organisation – Ozone calls the Ozone Connect APIs implemented by your organisation to retrieve data. Step 5002 uses GET /accounts as the example.
Important branches
Get consent (optional, steps 2010–2011) – your organisation may retrieve the consent from the Consent Manager. Under CDR, the consent holds no information that isn't already in the interaction, so this call is optional.
Sharing arrangement (steps 2006 and 4004–4005, CDR-specific processing) – when Ozone creates the consent, the Consent Manager assigns it to a sharing arrangement: it validates the cdr_arrangement_id in an amendment request, which must belong to the same ADR, or generates a new one. When the first token is issued for an amended arrangement, the Consent Manager revokes the earlier consents in it. See Sharing arrangements and amendments.
Endpoints in this flow
Authorization Server APIs – start the authorization interaction, handle its outcomes and complete it with doConfirm or doFail.
Consents – record the consumer's authorization outcome and identifiers, and understand sharing arrangements and amendments.
Get Accounts – the Ozone Connect call in Stage 5. Other data-sharing APIs follow the same overall interaction pattern; see Data sharing resources for their specific requirements.