Admin API (HaaS)
Admin API (0.0.1-alpha.18)
Download OpenAPI specification:Download
The Admin API gives a Data Holder access for back-office tooling with the intent over time to delivery everything available within HaaS Manager. Initially the focus is on delivering the metadata required to describe Grant's, particularly those pertaining to CDR Sharing Arrangements.
The caller of this API is strictly a machine to machine client intended to be an internal application.
NOTE: The authoritative definition of these terms sits within Biza Guides.
A Grant is the term used by Biza to describe an established set of tokens providing permissions to designated APIs and is essentially a record of the permission given by the customer to use their information to execute actions. Every Grant has a grantType that describes what type of Grant it is.
Amending a Grant terminates the current consent and creates a new one. Grant history is the event stream describing how the Grant changed.
A Principal is the core-system customer the Grant is held against - the grant's owner, identified by the holder's core-system customer identifier. In the context of the CDR this is the CDR Consumer: a Non-Individual (Business, Trust, Non-profit) or Individual CDR Consumer.
A User is an authenticated person who can act on the Principal's behalf. In the context of the CDR this is someone who can authorise CDR data sharing for the CDR Consumer: the Consumer themselves, or another person named on the Grant, such as a joint account holder or an User. A Grant always relates to both. The identifiers for these Principal and Users align to the principalId and userId utilised by the Data Adapter for the specified realmName.
This version represents every Grant as CDR_SHARING_ARRANGEMENT_V1 which defines a CDR Consumer's Sharing Arrangement (GrantV1.grantType). Machine-to-machine Grants and consumer dashboard logins are a different kind of authorisation artifact and are not members of this collection, so a total never counts a Grant you cannot retrieve, and naming one directly returns 404.
CDR Data Sharing Arrangement
In addition to the reading of CDR Arrangement details this API supports issuing a single state change, revoking a grant. Amending a CDR Sharing Arrangement otherwise requires the CDR Consumer to reauthorise the data disclosure, which happens outside this API entirely.
Other systems can still change a Grant available here, for instance, a joint-account owner withdrawing their account. These events create a CDR_SHARING_ARRANGEMENT_V1_AMENDED history entry carrying its amendmentCause.
Every operation is versioned independently of every other, in both request and response, so a new version of one endpoint never forces a client to uplift the rest. Send the desired response version in x-haas-v; the served version is echoed in the x-haas-v response header and is also carried in the payload itself as the version discriminator. Call GET /{realmName}/meta/endpoints to discover which versions this deployment supports for each operation - the same path, operationId and x-haas-max-v request header as the HaaS Data Adapter specification's own endpoint discovery.
Not every response you receive on this host comes from this API. A proxy or load balancer sits in front of it and generates its own responses - on an outage, a route miss, a rate limit, or a TLS or protocol fault - and those are deliberately not described here, because this document describes what the application generates. While we try to document as many of the responses as possible it is entirely predictable that some errors may occur that cannot be described.
List Grants
List every Grant in the realm's consent store.
Authorizations:
path Parameters
| realmName required | string Example: sandbox-holder Realm name to bound the request to. A client is entitled to the realms of the space its token was issued for. |
query Parameters
| principalId | string Example: principalId=08c31a2a9016d6c517a95562228a37c0 Narrow the visible Grants to those held against this Principal in addition to the path parameters specified. |
| userId | string Example: userId=21a5472a3fd1467a901f8c86221c7ad9 Narrow the visible Grants to those held against this User in addition to the path parameters specified. |
| status | Array of strings (EnumGrantStatusV1) Items Enum: "ACTIVE" "EXPIRED" "REVOKED" Example: status=ACTIVE Restrict results to Grants with the input status. Supports multiple types using exploded If not present will return Grants in all statuses. |
| page | integer <int32> >= 1 Default: 1 Example: page=1 Page of results to request, 1-based. |
| page-size | integer <int32> [ 1 .. 1000 ] Default: 25 Example: page-size=25 Number of records to return per page. |
header Parameters
| x-haas-v required | string Example: V1 The response version requested for this operation. The version actually served is returned in the |
| x-fapi-interaction-id | string <uuid> Example: 6ba7b814-9dad-11d1-80b4-00c04fd430c8 Caller-supplied correlation identifier, echoed on the response and recorded for the interaction. |
Responses
Response samples
- 200
- 400
- 401
- 403
- 404
- 406
{- "version": "V1",
- "data": [
- {
- "grantId": "dd488573-510f-42c1-82b7-e6ecaa735545",
- "grantType": "CDR_SHARING_ARRANGEMENT_V1",
- "userId": "7c4a8d09ca3762af61e59520943dc264",
- "principalId": "08c31a2a9016d6c517a95562228a37c0",
- "status": "ACTIVE",
- "createdTime": "2021-01-01T12:30:00Z",
- "expiryTime": "2022-01-01T12:30:00Z",
- "latestTokenTime": "2021-06-01T09:00:00Z",
- "scopes": {
- "0": {
- "name": "bank:accounts.basic:read",
- "description": "Account name, type and balance"
}, - "1": {
- "name": "bank:accounts.detail:read",
- "description": "Account numbers and features"
}
}, - "dataClusters": [
- {
- "name": "Account balance and details",
- "permissionLanguage": {
- "0": "Name of account;",
- "1": "Type of account;",
- "2": "Account balance;",
- "3": "Account number;",
- "4": "Interest rates;",
- "5": "Fees;",
- "6": "Discounts;",
- "7": "Account terms;",
- "8": "Account mail address;"
}, - "includedScopes": {
- "0": {
- "name": "bank:accounts.basic:read",
- "description": "Account name, type and balance"
}, - "1": {
- "name": "bank:accounts.detail:read",
- "description": "Account balance and details"
}
}
}
], - "accounts": [
- {
- "accountId": "0b6d9c6e9d4a4e23a3b0a5d6c7e8f901"
}
], - "accountsWithheld": true,
- "participant": {
- "participantId": "4c90de1f-5cea-4b87-8269-5235f34c4ce1",
- "participantType": "CDR_SOFTWARE_PRODUCT_V1",
- "softwareProductId": "4f012edd-05e9-4129-8682-ede321fd46eb",
- "name": "Hardship Hub Casebook",
- "description": "Case management for financial counsellors: lists every creditor from a client's consented bank, energy and loan data, drafts hardship requests, tracks creditor replies against deadlines, and gives the client a plain-language read-only copy.",
- "status": "ACTIVE",
- "brandName": "Hardship Hub",
- "brandStatus": "ACTIVE",
- "legalEntityName": "Hardship Hub Pty Ltd",
- "accreditationNumber": "BNK00000013",
- "accreditationLevel": "UNRESTRICTED"
}
}
], - "meta": {
- "page": 1,
- "pageSize": 25,
- "totalPages": 2,
- "totalRecords": 40
}, - "links": {
}
}Get Grant
Resolve a Grant identifier to the Grant it names, anywhere in the realm.
A Grant identifier is unique within the realm, so no User or Principal is needed to address one. Use this when you hold an identifier and nothing else - from a log line, a support ticket or a notification - and need to discover whose Grant it is, or administer it directly.
Authorizations:
path Parameters
| realmName required | string Example: sandbox-holder Realm name to bound the request to. A client is entitled to the realms of the space its token was issued for. |
| grantId required | string <uuid> Example: dd488573-510f-42c1-82b7-e6ecaa735545 The identifier of the grant. Unique within the realm, so a Grant is addressable without naming its User or Principal. |
header Parameters
| x-haas-v required | string Example: V1 The response version requested for this operation. The version actually served is returned in the |
| x-fapi-interaction-id | string <uuid> Example: 6ba7b814-9dad-11d1-80b4-00c04fd430c8 Caller-supplied correlation identifier, echoed on the response and recorded for the interaction. |
Responses
Response samples
- 200
- 400
- 401
- 403
- 404
- 406
{- "version": "V1",
- "data": {
- "grantId": "dd488573-510f-42c1-82b7-e6ecaa735545",
- "grantType": "CDR_SHARING_ARRANGEMENT_V1",
- "userId": "7c4a8d09ca3762af61e59520943dc264",
- "principalId": "08c31a2a9016d6c517a95562228a37c0",
- "status": "ACTIVE",
- "createdTime": "2021-01-01T12:30:00Z",
- "expiryTime": "2022-01-01T12:30:00Z",
- "latestTokenTime": "2021-06-01T09:00:00Z",
- "scopes": {
- "0": {
- "name": "bank:accounts.basic:read",
- "description": "Account name, type and balance"
}, - "1": {
- "name": "bank:accounts.detail:read",
- "description": "Account numbers and features"
}
}, - "dataClusters": [
- {
- "name": "Account balance and details",
- "permissionLanguage": {
- "0": "Name of account;",
- "1": "Type of account;",
- "2": "Account balance;",
- "3": "Account number;",
- "4": "Interest rates;",
- "5": "Fees;",
- "6": "Discounts;",
- "7": "Account terms;",
- "8": "Account mail address;"
}, - "includedScopes": {
- "0": {
- "name": "bank:accounts.basic:read",
- "description": "Account name, type and balance"
}, - "1": {
- "name": "bank:accounts.detail:read",
- "description": "Account balance and details"
}
}
}
], - "accounts": [
- {
- "accountId": "0b6d9c6e9d4a4e23a3b0a5d6c7e8f901"
}
], - "accountsWithheld": true,
- "participant": {
- "participantId": "4c90de1f-5cea-4b87-8269-5235f34c4ce1",
- "participantType": "CDR_SOFTWARE_PRODUCT_V1",
- "softwareProductId": "4f012edd-05e9-4129-8682-ede321fd46eb",
- "name": "Hardship Hub Casebook",
- "description": "Case management for financial counsellors: lists every creditor from a client's consented bank, energy and loan data, drafts hardship requests, tracks creditor replies against deadlines, and gives the client a plain-language read-only copy.",
- "status": "ACTIVE",
- "brandName": "Hardship Hub",
- "brandStatus": "ACTIVE",
- "legalEntityName": "Hardship Hub Pty Ltd",
- "accreditationNumber": "BNK00000013",
- "accreditationLevel": "UNRESTRICTED"
}
}
}Revoke Grant
Revoke a Grant by identifier alone. Unlike the Consent API's user-grounded revoke, it does not require the name of the User who created the Grant because this endpoint is intended for internal administrative tooling rather than a consumer facing dashboards.
The request payload identifies the initiator of the call: SYSTEM, for revocations triggered by automated actions, or USER, for identification of Holder personnel who trigger a revocation.
The operation acts only on a Grant whose reported status is ACTIVE. For any other status it still returns 200 with the Grant unchanged, and writes no history entry.
CDR Arrangement V1
In the CDR Arrangement scenario, the Data Recipient is notified using the prescribed method. In addition a CDR_SHARING_ARRANGEMENT_V1_REVOKED history entry is written with a revocationCause of ADMIN.
Authorizations:
path Parameters
| realmName required | string Example: sandbox-holder Realm name to bound the request to. A client is entitled to the realms of the space its token was issued for. |
| grantId required | string <uuid> Example: dd488573-510f-42c1-82b7-e6ecaa735545 The identifier of the grant. Unique within the realm, so a Grant is addressable without naming its User or Principal. |
header Parameters
| x-haas-v required | string Example: V1 The response version requested for this operation. The version actually served is returned in the |
| x-fapi-interaction-id | string <uuid> Example: 6ba7b814-9dad-11d1-80b4-00c04fd430c8 Caller-supplied correlation identifier, echoed on the response and recorded for the interaction. |
Request Body schema: application/jsonrequired
| version required | string Discriminator for the request envelope version. |
required | any (ActorV1) Who or what triggered this call. Written as audit metadata onto the resulting history entry; it is never an authorization input. |
Responses
Request samples
- Payload
{- "version": "V1",
- "data": {
- "actorType": "SYSTEM"
}
}Response samples
- 200
- 400
- 401
- 403
- 404
- 406
{- "version": "V1",
- "data": {
- "grantId": "dd488573-510f-42c1-82b7-e6ecaa735545",
- "grantType": "CDR_SHARING_ARRANGEMENT_V1",
- "userId": "7c4a8d09ca3762af61e59520943dc264",
- "principalId": "08c31a2a9016d6c517a95562228a37c0",
- "status": "ACTIVE",
- "createdTime": "2021-01-01T12:30:00Z",
- "expiryTime": "2022-01-01T12:30:00Z",
- "latestTokenTime": "2021-06-01T09:00:00Z",
- "scopes": {
- "0": {
- "name": "bank:accounts.basic:read",
- "description": "Account name, type and balance"
}, - "1": {
- "name": "bank:accounts.detail:read",
- "description": "Account numbers and features"
}
}, - "dataClusters": [
- {
- "name": "Account balance and details",
- "permissionLanguage": {
- "0": "Name of account;",
- "1": "Type of account;",
- "2": "Account balance;",
- "3": "Account number;",
- "4": "Interest rates;",
- "5": "Fees;",
- "6": "Discounts;",
- "7": "Account terms;",
- "8": "Account mail address;"
}, - "includedScopes": {
- "0": {
- "name": "bank:accounts.basic:read",
- "description": "Account name, type and balance"
}, - "1": {
- "name": "bank:accounts.detail:read",
- "description": "Account balance and details"
}
}
}
], - "accounts": [
- {
- "accountId": "0b6d9c6e9d4a4e23a3b0a5d6c7e8f901"
}
], - "accountsWithheld": true,
- "participant": {
- "participantId": "4c90de1f-5cea-4b87-8269-5235f34c4ce1",
- "participantType": "CDR_SOFTWARE_PRODUCT_V1",
- "softwareProductId": "4f012edd-05e9-4129-8682-ede321fd46eb",
- "name": "Hardship Hub Casebook",
- "description": "Case management for financial counsellors: lists every creditor from a client's consented bank, energy and loan data, drafts hardship requests, tracks creditor replies against deadlines, and gives the client a plain-language read-only copy.",
- "status": "ACTIVE",
- "brandName": "Hardship Hub",
- "brandStatus": "ACTIVE",
- "legalEntityName": "Hardship Hub Pty Ltd",
- "accreditationNumber": "BNK00000013",
- "accreditationLevel": "UNRESTRICTED"
}
}
}Get Grant History
Read a grant's history based purely on the Grant Identifier.
History is the consent lifecycle: how the Grant was created, every amendment to it, changes to its composition and its revocation. It does not cover token or authorisation-code issuance; that is security telemetry rather than consent history.
Entries are returned oldest first, so replaying them in order reconstructs the grant's state. This endpoint is ungrounded: every entry on the Grant is returned and no entry is redacted, whichever User initiated it.
Authorizations:
path Parameters
| realmName required | string Example: sandbox-holder Realm name to bound the request to. A client is entitled to the realms of the space its token was issued for. |
| grantId required | string <uuid> Example: dd488573-510f-42c1-82b7-e6ecaa735545 The identifier of the grant. Unique within the realm, so a Grant is addressable without naming its User or Principal. |
query Parameters
| page | integer <int32> >= 1 Default: 1 Example: page=1 Page of results to request, 1-based. |
| page-size | integer <int32> [ 1 .. 1000 ] Default: 25 Example: page-size=25 Number of records to return per page. |
header Parameters
| x-haas-v required | string Example: V1 The response version requested for this operation. The version actually served is returned in the |
| x-fapi-interaction-id | string <uuid> Example: 6ba7b814-9dad-11d1-80b4-00c04fd430c8 Caller-supplied correlation identifier, echoed on the response and recorded for the interaction. |
Responses
Response samples
- 200
- 400
- 401
- 403
- 404
- 406
{- "version": "V1",
- "data": [
- {
- "grantHistoryId": "9824d737-5787-4ab1-97bd-0a81fa2f20c2",
- "occurrenceTime": "2021-01-01T12:30:00Z",
- "grantEventType": "CDR_SHARING_ARRANGEMENT_V1_AMENDED",
- "accountsWithheld": true
}
], - "meta": {
- "page": 1,
- "pageSize": 25,
- "totalPages": 2,
- "totalRecords": 40
}, - "links": {
}
}Get Endpoint Meta
Report what this deployment supports for each operation, and which request and response versions it will accept and serve. Because every operation is versioned independently, this is how a client discovers whether an uplift it wants is available without attempting the call.
This follows the HaaS Data Adapter specification's /meta/endpoints shape and naming - the same operationId, the same path, and the same x-haas-max-v request header - rather than this service's own x-haas-v/payload-discriminator pattern. The two specifications now describe their own capabilities the same way.
Authorizations:
path Parameters
| realmName required | string Example: sandbox-holder Realm name to bound the request to. A client is entitled to the realms of the space its token was issued for. |
header Parameters
| x-haas-max-v required | string Example: V1 The highest response version your client understands.
This is a ceiling, not an exact match and is a bound rather than a single value.
This deployment serves the highest version it supports that is at or below the ceiling provided, and never a version above it. If it supports no version at or below the provided ceiling the response is 406 |
| x-fapi-interaction-id | string <uuid> Example: 6ba7b814-9dad-11d1-80b4-00c04fd430c8 Caller-supplied correlation identifier, echoed on the response and recorded for the interaction. |
Responses
Response samples
- 200
- 400
- 401
- 403
- 404
- 406
{- "version": "V1",
- "data": {
- "listGrants": {
- "flags": { },
- "responseVersions": {
- "0": "V1"
}
}, - "getGrant": {
- "flags": { },
- "responseVersions": {
- "0": "V1"
}
}, - "getGrantHistory": {
- "flags": { },
- "responseVersions": {
- "0": "V1"
}
}, - "revokeGrant": {
- "flags": { },
- "requestVersions": {
- "0": "V1"
}, - "responseVersions": {
- "0": "V1"
}
}
}
}