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.