Draft

This is v2.2-draft — a working draft of the v2.2 standards, published for review and not yet ratified. It MUST NOT be used as the basis for a production implementation. For the current standards, switch to v2.1 using the version selector. See the v2.1 → v2.2-draft changelog for every change in this version.

LFI · Ozone Connect · Consent Events & Actions · API Guide

Consent Events & Actions — API Guide 3 min read

This guide covers the implementation of the Consent Events & Actions endpoints on your Ozone Connect server. These are endpoints your LFI exposes and the API Hub calls.

01 Prerequisites

What must already be in place

Before implementing these endpoints, ensure the following are in place:

02 Validate

POST /consent/action/validate

API Sequence Flow

The API Hub calls this endpoint during consent creation, before the consent is stored. The trigger is a TPP submitting a POST/par request to the API Hub.

Sequence diagramConsent Validation FlowClick to expand

What to validate

Your LFI SHOULD validate that the consent is one you can support. At a high level, typical checks include:

  • Does the consent version match what your LFI supports?
  • Are the requested permissions within the scope of what your LFI offers?

Each consent type defines its own specific validation rules in its Requirements page (e.g. Bank Data Sharing — Requirements). Refer to the Requirements page for each consent type your LFI supports to understand the full set of validation checks you MUST implement.

Response schema

FieldTypeRequiredDescription
data.statusstringYesvalid or invalid
data.codestringNoAn error code — returned when status is invalid
data.descriptionstringNoA human-readable description of why the consent was rejected
metaobjectYesEmpty object {}

See the POST/consent/action/validate API Reference for the full request and response schemas.

04 API Reference

Full request and response schemas