Withdraw Joint Account Sharing Approval For Grant
Withdraw an account you own from a Grant another joint account owner created.
This is the only operation in the Consent API that amends a Grant. Every other change to a Grant's composition β adding a scope, adding an account, extending its expiry β is not possible through this API at all; it requires the CDR Consumer to reauthorise the data disclosure outside it entirely. Withdrawing a joint account is the single, narrow exception, and it exists because the CDR Rules require it specifically: this operation is not a general-purpose way to edit a Grant, it is the mechanism for one obligation.
That obligation is CDR Rule 4A.13(1)(d), read with Rule 4A.12(2). A joint account has more than one holder, but only one of them β the initiating holder β controls the overall data-sharing authorisation given to the Data Recipient. The Rules nonetheless give every other joint account holder a right the initiating holder's authorisation cannot override: they can remove their own approval for their own joint account from that authorisation, without revoking it for the initiating holder and without touching any other account it shares. This operation is how a consumer dashboard lets a non-initiating joint account holder exercise exactly that right β narrowing a Grant someone else created, never editing one of their own.
Who can call this. The named userId must be an Owner of the named accountId β a Secondary User on the same account cannot withdraw it, even if they can otherwise see the Grant. A caller who is neither party to the Grant nor an owner of the account receives a 404, indistinguishable from a Grant that does not exist. A caller who can see the Grant but does not own the named account receives a 403.
Idempotency. The operation only acts on a Grant whose reported status is ACTIVE, and only when the named account is one of the Grant's accounts. For any other case β a Grant that is not ACTIVE, or an account the Grant does not share β it still returns 200 with the Grant unchanged, and writes no history entry.
Withdrawing a Grant's last account does not revoke it. The initiating holder controls the overall authorisation to the Data Recipient; a co-owner's authority reaches only their own account. So a Grant left sharing no accounts stays ACTIVE, reporting an empty accounts array β this is a valid, expected outcome, not an error. The Data Recipient is not notified of the narrowing itself; it learns of the change the next time it requests data for the withdrawn account. Access tokens already issued are revoked, so the Data Recipient is forced through a fresh token grant that reflects the narrowed account set β refresh tokens are not revoked, since the arrangement is still live for whichever accounts remain.
CDR Arrangement V1
A CDR_SHARING_ARRANGEMENT_V1_AMENDED history entry is written with an amendmentCause of JOINT_OWNER_WITHDRAWAL, naming the withdrawing owner as the acting user β distinct from CONSUMER, which is the arrangement's own creator amending their consent.
Consent APIβ
Withdraw Joint Account Sharing Approval For Grantβ
Loading...