GuidesAPI ReferenceRelease Notes
Log In
API Reference

Fail authorization

Ends the interaction with a failure. Call this endpoint when the interaction has completed without the customer granting access – for example, when the customer declines, cancels or doesn't provide the right credentials.

Heimdall updates the interaction state, generates an OIDC error, and returns the response for the TPP. The financial institution can specify the error and error_description as application/x-www-form-urlencoded parameters.

By default, Heimdall returns 302 with a redirect URI in the Location header. Redirect the customer to this URI. Set redirect=false to receive the error directly as an HTTP 400 response.

This endpoint updates the interaction, not the consent status. Where the consent must be marked as Rejected, update it separately through the Consent Manager and include the required abandonedByStage.

Path Params
string
required

Identifier for the interaction

Form Data
string
Defaults to general_error

An OAuth 2.0 or OIDC error code. If omitted, Ozone uses general_error.

string
Defaults to generic error

A description of the authorization failure. If omitted, Ozone uses generic error.

string
enum
Defaults to true

Whether to return a redirect response. Send true for HTTP 302 with a Location header, or false for a direct HTTP 400 error response. Values are form-encoded strings.

Allowed:
Responses

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