GuidesAPI ReferenceRelease Notes
Log In
API Reference

Update consent

Updates supported top-level consent fields and fields within consentBody. Your financial institution calls this operation to record the authorization outcome and the customer and account information associated with the consent.

Parameters

Send only the supported fields that you intend to update. Properties such as consentBody.data.status are literal dotted keys in the JSON request; psuIdentifiers is a nested object. The request example shows this distinction.

  • psuIdentifiers.userId – identifies the customer. Populate it for successful authorization. If the journey ends before the customer is identified, do not invent an identifier.
  • accountIds – the internal account identifiers selected for account-based access. If supplied, the array must contain at least one identifier.
  • consentBody.data.status – the authorization outcome: Authorized when approved or Rejected when rejected or abandoned.
  • consentBody.data.abandonedByStage – required when the same request sets the status to Rejected. Omit it otherwise. Enum values retain their defined spelling, including preAuthorisation.

Ozone maintains interactionId; your financial institution must not set it. See the individual field descriptions for other supported updates and baseline validation limitations.

Outcomes

A successful request returns 204 without a response body. After recording successful authorization, call the Authorization Server's doConfirm operation. For an unsuccessful journey, record the applicable rejection information before calling doFail; doFail does not update the consent itself.

This operation does not complete the Authorization Server interaction. Use the dedicated revoke operations when withdrawing consent rather than manually populating revocation fields.

Path Params
string
required

Identifies the consent by an id

Body Params
psuIdentifiers
object

Identifies the customer associated with the consent. The object may include institution-specific identifiers, but must contain userId whenever supplied. Populate it for successful authorization; the consent is initially created without an identified customer.

accountIds
array of strings
length ≥ 1

Internal account identifiers covered by the consent. Populate this field when authorizing access to selected accounts. If supplied in a PATCH request, the array must contain at least one identifier.

accountIds
supplementaryInformation
object

Additional information supplied by your financial institution.

string

Authorization Server interaction identifier. Ozone maintains this field; your financial institution must not set it.

string
enum

The current status of the consent

Allowed:
string
enum

Stage at which authorization was abandoned or rejected. Required when the same PATCH request sets consentBody.data.status to Rejected; otherwise, omit this field. Enum values retain their defined spelling.

Allowed:
string
enum

Who or what initiated revocation:

  • ADR – withdrawal through the TPP.
  • CONSUMER – withdrawal through the consent dashboard.
  • COLLEAGUE – a colleague withdraws consent on the customer's behalf.
  • REGISTER – revocation following a TPP status change on the CDR Register.
  • EXPIRATION – expiry of the consent.
  • AMENDMENT – replacement of the consent while the sharing arrangement continues.
Allowed:
string
($date-time)

Revocation timestamp. The baseline PATCH validator uses the legacy pattern shown here, which does not accept a normal ISO date-time. Use the revoke operation; Ozone sets the timestamp.

number

Maximum sharing duration of the consent, in seconds.

string

Legacy PATCH field declared as a string by the baseline validator. To record the customer who initiated revocation, use the revoke operation with the revokedByPsu object instead.

number

The time, in milliseconds, when the last token was issued.

string
length between 2 and 2

The member state in which this consent is valid. If specified, for every API call made using this consent, Ozone will ensure that the TPP has a relevant permission in the member state. If not specified a member-state check will not be made.

paymentContext
object
string

Bearer token used in the Authorization header for the Ozone Connect calls that support this token.

Responses
204

The request was successful. No content is returned.

Language
Credentials
Bearer
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json