API explorerPay APIsData APIs

Theme switcher

Create Consent

Body Parameters

client_idstring Required

API client identifier

Max length
128
client_secretstring

API client secret for authentication. Required for internal (non-OAuth2) authentication mode (e.g., test-only). Not required when using OAuth2 (Bearer token) authentication.

Max length
128
ais_methodobject

Filter criteria for selecting AIS methods/providers

ShowΒ child attributes

consentobject Required

ShowΒ child attributes

optionsobject

ShowΒ child attributes

trackingobject

Tracking identifiers for billing, audit, and IBAN whitelisting purposes.

Configuration Requirements:

  • Both fields are optional by default, but may be required based on API client configuration
  • When required, the API will return a 401 error if the required tracking ID is missing

Validation Rules (applies to both fields):

  • Length: 1-128 characters
  • First character: lowercase letter (a-z) or digit (0-9)
  • Remaining characters: lowercase letters, digits, hyphens (-), o...

ShowΒ child attributes

Response

200
Object

Consent created successfully

Response Attributes

request_idstring

Unique identifier for the API request (from x-request-id header)

created_atstring

Timestamp when the consent was created

expires_atstring

Timestamp when the consent link expires (based on expires_in option)

consent_validity_daysinteger

Number of days the consent remains valid for data access after authorization

api_client_appstring

Name of the API client application

consent_idstring

Internal UUID identifier for the consent

web_idstring

Public identifier for the consent (used in web URLs)

web_urlstring | null

URL where the end-user can complete the consent authorization flow. null for direct_sca/redirect_sca consents resolved to a decoupled AIS method (no SCA URL exists β€” see message).

messagestring

Present only for direct_sca/redirect_sca consents resolved to a decoupled AIS method (e.g. BRD): instruction to display to the end user, who authorises the consent in their banking mobile app instead of via a redirect. Localised and processed per the AIS method's message configuration; may include the bank consent id.

400
Object

Validation error or invalid request

Response Attributes

error_idstring Required

Unique identifier for this error instance

request_idstring Required

Request identifier for tracking and correlation

codestring Required

Machine-readable error code for 400 errors:

  • bad_request: Generic validation or request error
  • validation_error: Request payload validation failed
  • invalid_input: Invalid input data provided
  • internal_error: AIS-side unexpected internal error
  • external_api_unavailable: External provider HTTP failure (timeout, connection refused, DNS, etc.). Surfaced as HTTP 400 instead of a gateway 504.
  • external_api_error: External provider returned a structured error during the AIS ...
Enum values:
bad_requestvalidation_errorinvalid_inputinternal_errorexternal_api_unavailableexternal_api_errorcooldown_failedconsent_not_activejob_in_progressmethod_selection_error
... 2 other enums
messagestring Required

Human-readable error message

401
Object

Authentication failed

Response Attributes

error_idstring Required

Unique identifier for this error instance

request_idstring Required

Request identifier for tracking and correlation

codestring Required

Machine-readable error code for 401 errors:

  • unauthorized: Authentication failed or insufficient permissions
Enum values:
unauthorized
messagestring Required

Human-readable error message

Was this section helpful?

POST

/

Select
1

Response

Was this section helpful?
View as Markdown

Ask an AI

Open in ChatGPTOpen in ClaudeOpen in Perplexity

Code with AI

Open in Copilot