Skip to content
PAYCONOMIC home
OpenAPI Initiativestandardeditorial

OpenAPI Specification 3.1

A machine-readable description format for HTTP APIs, used to generate documentation, clients and tests.

How the model works

Authentication
Not an authentication mechanism. Security schemes are described in the document.
Authorisation
Not an authorisation mechanism. Scopes can be described for OAuth flows.
Consent
OpenAPI can describe consent endpoints but does not define consent semantics.
Data access
Describes endpoints, schemas, media types and responses.
Security
The contract should be versioned and validated; it is not a security control by itself.
Lifecycle
Version 3.1 aligns with JSON Schema 2020-12.

A generic sequence. Framework-specific requirements differ and are not implied.

  1. 01 · Customer and bank

    Authenticate the user

    The customer authenticates with its bank, not with the third-party provider. In a regulated PSD2 flow this uses strong customer authentication.

    A redirect must use an exact allow-listed URI and a state parameter bound to the session.

  2. 02 · Third-party provider and bank

    Create the consent

    The provider requests specific permissions (accounts, balances, transactions or a payment) and the bank returns a consent identifier.

    Scopes must be the minimum necessary; the consent is bound to the provider's certificate or client identity.

  3. 03 · Customer and bank

    Authorise access

    The customer reviews and approves the permissions. The bank records the grant.

    The customer must see which provider, which data and which duration are being approved.

  4. 04 · Third-party provider, bank and resource server

    Access data or initiate a payment

    The provider uses the consent-bound token to read the permitted resources or to submit a payment.

    The resource server checks token binding, scope and consent status on every call.

  5. 05 · Third-party provider and customer

    Renew or expire

    Consent has a defined lifetime. Renewal requires a new authorisation where the rules or the bank require it.

    Expired consent must fail closed; tokens must not be silently extended.

  6. 06 · Customer, bank and provider

    Revoke

    The customer can withdraw consent. The bank must stop serving the provider's requests and the provider must stop using the token.

    Revocation must be immediate and auditable; cached data must follow the retention policy.

Synthetic API examples

Fictional identifiers and payloads, written for teaching.

No example is stored for this standard.

OpenAPI Specification 3.1 · open banking · PAYCONOMIC