Open Finance Malaysia - Data Provider Documentation Portal (1.2.3)

Download OpenAPI specification:Download

Overview

The PayNet Open Finance Platform (OFP) enables secure, user-consented sharing of financial data between institutions. As a Data Provider, your institution sits at the heart of this ecosystem, you are the source of truth for your customers' financial data.

Party Role
Data Consumer (DC) A third-party application (e.g. a PFM or lending platform) that requests access to a user's financial data
Data Provider (DP) Your institution, you authenticate the user, obtain their consent, and return their financial data when requested
PayNet OFP The intermediary platform that orchestrates consent, authentication, and secure data exchange between DC and DP

How data flows to your institution:

Unlike a DC, which calls PayNet's APIs, as a Data Provider you primarily operate as a server that PayNet calls. PayNet OFP forwards requests to your endpoints (called webhooks) for actions like user authentication, consent notification, and data retrieval. Your responsibility is to implement these webhook endpoints correctly and respond according to the v1.2.2 specification.

PayNet OFP exposes two server components relevant to you:

  • Authorization Server (AS): manages the consent and authentication flow; your institution receives redirect webhooks and consent notifications from this component

  • Resource Server (RS): forwards data requests (accounts, balances, transactions) from DCs to your institution

Understanding the Journey

Before you start, you can simulate the User Experience as an End User starting from DC Simulator, Paynet Aggregator, and DP Simulator, for Consent Initiation up to Retrieve Balance Flow.

DP consent initiation screen

Run this Journey

  1. Access Paynet DC Simulator at https://dc-sim.uat.inet.ofm.my
  2. Start the Linking Account Process as per the UX Flow above
  3. DP Login credentials are:
    • Username: paynet
    • Password: paynet

Configuration & Pre-Requisite as a Data Provider

In this period, PayNet will support manual onboarding for participants into PayNet Open Finance Platform.

Step 1: Submit Your Security Certificates

PayNet OFP enforces financial-grade security protocols. As a DP, you are required to upload certificates for the following two protocols.

Protocol Purpose
mTLS Mutual TLS, establishes authenticated, encrypted communication between your institution and PayNet OFP
JWS JSON Web Signature, signs your API responses so PayNet and DCs can verify the data has not been tampered with

How to Submit the Certificates:

Detailed instructions on how to submit the certificates will be provided during the onboarding process.

Step 2: Register Your API Base URLs

PayNet needs to know where to send requests. You must register the base URLs for both your Authorization Server and Resource Server endpoints.

How to Submit the API Base URL:

Detailed instructions on how to submit the API Base URL will be provided during the onboarding process.

mTLS Requirements by Endpoint

All endpoints marked ✅ require Mutual TLS (mTLS). For outbound calls from your DP to PayNet, present your registered client certificate. For inbound webhook endpoints called by PayNet, your server must require and validate the client certificate presented by PayNet. Access tokens issued over mTLS are sender-constrained, so the same certificate used during token issuance must be presented on protected calls.

Endpoint Method mTLS Required Who Establishes mTLS Notes
/oauth/jwks/ofm GET ❌ - Public endpoint
/v1/authorize GET ✅ PayNet -> DP Inbound webhook
/v1/userinfo GET ✅ PayNet -> DP Inbound webhook
/oauth/jwks/{dc_id} GET ✅ PayNet -> DP Inbound webhook
/v1/health GET ✅ PayNet -> DP Inbound health check
/v1/consents/events POST ✅ PayNet -> DP Inbound consent webhook
/v1/accounts/{account_id} GET ✅ PayNet -> DP Inbound account webhook
/v1/accounts/{account_id}/balances GET ✅ PayNet -> DP Inbound balances webhook
/v1/accounts/{account_id}/transactions GET ✅ PayNet -> DP Inbound transactions webhook
/v1/consents/{consent_id} (Update Consent) PATCH ✅ DP -> PayNet Outbound to PayNet
/v1/consents/{consent_id} (Retrieve Consent) GET ✅ DP -> PayNet Outbound to PayNet
/v1/consents/{consent_id}/revoke POST ✅ DP -> PayNet Outbound to PayNet

What You Need to Build

User Interface Requirements

Your institution must provide a user-facing authorization interface, this is the login and consent approval page your customers see when they are redirected from a DC's application.

At minimum, this should include:

  • Login Page: where the user authenticates with their credentials
  • Account Selection Screen: where the user selects which accounts to share with the DC
  • Consent Review Screen: where the user reviews and either approves or rejects the data sharing request
  • Result Screen: confirmation or rejection message after the user makes their decision

Refer to the sample of UI mockup provided below for the expected screen flows as a Data Provider:

DP consent initiation screen

Mandatory Endpoints to Build

As a DP, your role is fundamentally different from a DC. Rather than calling APIs, you are building the APIs that PayNet will call. The table below summarises every endpoint your institution must implement.

  1. All Authorization Server Endpoints
  2. Resource Server Endpoints, for Drop 1:
    • Webhook Consent Event
    • Webhook Account Balance
    • Update Consent (DP call PayNet)

API Integration Guide

Client Authentication

For Authorization Server token issuance, PayNet OFP supports two FAPI 2.0 client authentication methods for Data Providers:

  • private_key_jwt
  • tls_client_auth (Mutual TLS / mTLS)

Method 1: private_key_jwt

Use these parameters when requesting tokens with JWT client authentication.

Parameter Required Description
client_assertion_type ✅ Must be urn:ietf:params:oauth:client-assertion-type:jwt-bearer
client_id ✅ Registered Data Provider Client ID
client_assertion ✅ Signed JWS client assertion

The signed JWS must comply with the following structure.

JWS Header

Element Required Description
alg ✅ Must be PS256
kid ✅ Base64url-encoded SHA-256 thumbprint (x5t#S256) of your X.509 certificate

JWS Body (Claims)

Claim Required Description
iss ✅ Client ID
sub ✅ Client ID
aud ✅ Authorization Server issuer value from /.well-known/openid-configuration
exp ✅ Expiry Unix timestamp (maximum 10 minutes from iat)
iat ✅ Issued-at Unix timestamp
jti ✅ Unique JWT ID used to prevent replay attacks
nbf Optional Not-before Unix timestamp

Method 2: tls_client_auth

When using mTLS client authentication, your DP establishes mTLS and includes:

Parameter Required Description
client_id ✅ Registered Data Provider ID

Endpoint Authentication Summary (DP)

DP → PayNet OFP (Outbound)

Endpoint Auth Required Notes
GET /oauth/jwks ❌ Not Required Public endpoint
OST /token (client credentials) ✅ Required private_key_jwt or tls_client_auth — to obtain client access token
POST /v1/consents/{consent_id} (Update Consent) ❌ Not required at AS level Authenticated via Bearer client access token in Authorization header
GET /v1/consents/{consent_id} (Retrieve Consent) ❌ Not required at AS level Authenticated via Bearer client access token
POST /v1/consents/{consent_id}/revoke (Consent LCM) ❌ Not required at AS level Authenticated via Bearer client access token

PayNet OFP → DP (Inbound Webhooks)

Endpoint Auth Required Notes
GET /v1/authorize (Webhook Authorization) ❌ Not Required PN presents signature in query param
GET /v1/userinfo (Webhook User Info) ❌ Not required Protected by mTLS from OFP
GET /v1/health (Health Check) ❌ Not required Called by OFP
POST /v1/consents/events (Consent Event) ❌ Not required Protected by mTLS; DP must verify JWS signature with PN cert
GET /v1/accounts/* (Account Webhooks) ❌ Not required Protected by mTLS; DP must verify JWS x-signature with DC cert

Important for DP webhook endpoints: While these endpoints do not require outbound client authentication by the DP, the DP must protect all webhook endpoints with Mutual TLS and validate the incoming JWS signature using the appropriate certificate (PN cert for consent events; DC cert for account webhooks).

Serving Financial Data (Resource Webhooks)

Once a user has approved consent, a DC can request financial data through PayNet. PayNet forwards these requests to your institution's Resource Server webhooks. Your institution must retrieve the relevant data, encrypt it using the DC's JWE certificate, and return it wrapped inside a JWS-signed response.

Sequence Overview

DP Sequence Overview

Account Balances Webhook

POST https://{DP_URL}/v1/accounts/{account_id}/balances

PayNet forwards a balance request from a DC. Your institution must:

  1. Validate the incoming JWS signature on the request (signed by PayNet using your institution's cert kid)
  2. Look up the balance for the account_id
  3. Encrypt the balance data using the DC's encryption certificate (x-enc-kid)
  4. Return the encrypted payload wrapped in a JWS

Balance data to return:

Field Description
account_id The unique account identifier assigned during authorization
current_balance Real-time balance excluding pending transactions

🔒 This is the request from PayNet to your DP which must be made over mTLS using the certificate bound to your client_id.

curl --location --request GET \
  'https://{DP_URL}/v1/accounts/acc-550e8400-e29b-41d4-a716-446655440010/balances?consent_id=550e8400-e29b-41d4-a716-446655440001' \
  --cert /path/to/paynet-client.crt \
  --key /path/to/paynet-client.key \
  --cacert /path/to/ca.crt \
  --header 'x-fapi-interaction-id: 550e8400-e29b-41d4-a716-446655440000' \
  --header 'x-enc-kid: <base64url-SHA256-thumbprint-of-DC-cert>' \
  --header 'x-fapi-signature: eyJhbGciOiJQUzI1NiIsImtpZCI6IkFCQ0RFRkdISUpLTE1OT1BRUlNUVVZXWFlaYWJjZGVmZ2g....<JWS_COMPACT_SERIALIZATION>'

💡 The same request-validation and JWS-wrapped JWE response pattern applies to the Account and Account Transactions webhooks. Refer to the full DP API Spec v1.2.2 for the complete field definitions.

Security

This section applies to Data Consumers and Data Providers. It summarizes certificate usage, mTLS requirements, message signing, and security-related HTTP headers.

Certificates

Certificate Type Description
PN Signature Certificate PayNet signs payloads; receivers verify using PayNet public key from JWKS (use = sig).
DC Signature Certificate DC signs applicable requests; receivers verify using DC public key from JWKS (use = sig).
DP Signature Certificate DP signs responses; receivers verify using DP public key from JWKS (use = sig).
DC Encryption Certificate DP encrypts payloads for DC using x-enc-kid; DC decrypts with matching private key (use = enc).

During certificate rotation, old and new keys may coexist with different kid values. Cache JWKS responses for up to 15 minutes.

Mutual TLS (mTLS)

mTLS is mandatory for protected integration paths.

  • Outbound DP calls to PayNet must present your registered client certificate.
  • Inbound webhook calls from PayNet must be protected by server-side mTLS certificate validation.
  • Sender-constrained tokens require using the same certificate across token issuance and protected API calls.

mTLS Requirements by Endpoint (DP)

Endpoint Method mTLS Required Caller Direction
/oauth/jwks/ofm GET ❌ Public
/v1/authorize GET ✅ PayNet -> DP
/v1/userinfo GET ✅ PayNet -> DP
/oauth/jwks/{dc_id} GET ✅ PayNet -> DP
/v1/health GET ✅ PayNet -> DP
/v1/consents/events POST ✅ PayNet -> DP
/v1/accounts/{account_id} GET ✅ PayNet -> DP
/v1/accounts/{account_id}/balances GET ✅ PayNet -> DP
/v1/accounts/{account_id}/transactions GET ✅ PayNet -> DP
/v1/consents/{consent_id} PATCH ✅ DP -> PayNet
/v1/consents/{consent_id} GET ✅ DP -> PayNet
/v1/consents/{consent_id}/revoke POST ✅ DP -> PayNet

JWS Message Signing

JWS protects message integrity and provides non-repudiation.

  • Use PS256 for signatures.
  • Set kid to the certificate thumbprint (x5t#S256) used to sign payloads.
  • Validate iat/nbf/exp and replay-sensitive jti.

Relevant HTTP Headers

Header Purpose
x-signature JWS signature for message integrity and verification.
x-enc-kid Indicates DC encryption key for DP response payload encryption.
x-fapi-interaction-id Correlation ID for end-to-end tracing and troubleshooting.
Authorization Bearer access token for protected endpoints.
Content-Type application/jwt for JWS payloads (and JWE-wrapped response content when applicable).

Testing Guide

Test Your DP Against Mock Data Consumer

This is your primary integration test which will be initiated from Mock Data Consumer.

Pre-work Checklist

Before signalling readiness to test, confirm the following:

  • All prerequisites steps are complete (certificates uploaded, base URLs registered)
  • All mandatory webhook endpoints are implemented and accessible
  • Your authorization UI (login, account selection, consent approval) is functional
  • Your endpoints are protected by mTLS and return correctly signed/encrypted responses

Backend Initiated Test

  1. Inform PayNet that your DP implementation is ready for testing. PayNet will coordinate directly with you to initiate the test.
  2. PayNet will share a PyTest suite to initiate DC call with mock DC credentials setup
  3. Update the API Base URL and Certificates to direct PayNet OFP calls into your DP

End-to-End Test Journey

The following table describes each step of the test, which party drives it, and the expected outcomes as per UI, Backend API, and API Integration Guide in the previous sections. You can focus on the bold rows for your DP testing purpose.

Step Actor Action UI Expected Outcome DP Backend Expected Outcome
1 Mock DC User navigates to the account linking screen Linking screen displayed -
2 Mock DC User selects a Data Provider from the list DP selection -
3 Mock DC User reviews consent details on DC UI Consent review screen displayed as per request -
4 Mock DC User confirms and submits consent User is redirected to Mock DP UI -
5 Real DP User is redirected to the Mock DP login page Mock DP login screen displayed Expose: /consents/events and /authorize
6a Real DP User logs in with valid preset credentials (positive) Login succeeds; account selection screen displayed DP internal implementation
6b Real DP User enters incorrect password (negative) Login fails; error message displayed DP internal implementation
7 Real DP User selects one or more accounts to link Accounts selected DP internal implementation
8 Real DP User reviews consent at the DP side Consent review screen displayed DP internal implementation
9a Real DP User approves consent (positive) User redirected to DP success page Call Update Consent consents/{consent_id} with positive status
9b Real DP User rejects consent (negative) User redirected back to DC with rejection error Call Update Consent consents/{consent_id} with negative status
10 Real DP User gets Success confirmation and click Back to DC User redirected back to DC with authorization_code -
11a Mock DC Consent approved callback received DC retrieves and displays account balance Expose /balance
11b Mock DC Consent rejected callback received DC displays "Account not linked" message to user -

Definition of Done

Your build is considered complete for this phase when all of the following have been demonstrated with your Certificates and Base URL setup:

  • Consent handled successfully: Your DP exposes the Consent Event endpoint (POST /v1/consents/events), validates the incoming JWS signature, and returns the correct response
  • User authenticated properly: Your DP exposes the Authorize endpoint (GET /v1/authorize), and your end user is correctly redirected through the DP authentication flow through to the point of consent approval or rejection
  • PayNet updated: Your DP calls Update Consent (PATCH /v1/consents/{consent_id}) to PayNet appropriately, with a positive status on approval and a negative status on rejection
  • Resource API functional: Your DP's Get Balance endpoint (GET /v1/accounts/{account_id}/balances) is functional and returns the correct encrypted and signed response

Test Your DP Against a Real Data Consumer

This phase verifies interoperability between your institution and a live DC in a controlled bilateral pairing session.

⚠️ Prerequisite: Your institution must have **passed all tests as a DP** before this phase can begin.

How to proceed:

Contact PayNet to schedule a bilateral testing session with a Real DC. PayNet will identify a suitable DC partner, facilitate the pairing, and provide guidance on the specific scenarios to execute together.

Error Codes

HTTP Status Codes

Code Description
200 OK
201 Created
204 No Content
303 Redirect
400 Bad Request
401 Unauthorized
403 Forbidden
404 Not Found
405 Method Not Allowed
429 Too Many Requests
500 Internal Server Error
503 Service Unavailable

OAuth 2.0 Error Codes

Returned in error responses from authorization and token endpoints.

Code Description
invalid_request Missing or invalid parameter.
invalid_client Client authentication failed.
invalid_grant Invalid, expired, or revoked grant/code.
unauthorized_client Client not authorized for this grant type.
unsupported_grant_type Grant type not supported.
access_denied Resource owner or AS denied the request.
invalid_scope Invalid or unknown scope.
server_error Unexpected server-side condition.
temporarily_unavailable Server overloaded or in maintenance.

Account & Application Error Codes

Code Description
Consent.AccountTemporarilyBlocked Account temporarily blocked by DP business rule.
Consent.PermanentAccountAccessFailure Account permanently unavailable.
Consent.TransientAccountAccessFailure Account unavailable due to transient failure.
AccessToken.InvalidScope Token does not have required scope.
Consent.Invalid Consent is in an invalid state.
Consent.BusinessRuleViolation DP business rule prevents the operation.
JWS.InvalidSignature JWS signature verification failed.
JWS.InvalidClaim One or more JWS claims failed validation.
JWE.DecryptionError JWE decryption failure.

Error Response Format

Error Response Body

{
  "error": "invalid_grant",
  "error_description": "The authorization code has expired."
}

Authorization Server

JSON Web Key Set (Hub/OFM)

Returns the JSON Web Key Set for the Hub (OFM Authorization Server).

Responses

Response samples

Content type
application/json
{
  • "keys": [
    ]
}

JSON Web Key Set (DC)

Returns the JSON Web Key Set for the given Distribution Partner (DC).

path Parameters
dc_id
required
string

Distribution Partner (DC) identifier

Responses

Response samples

Content type
application/json
{
  • "keys": [
    ]
}

Webhook – Authorization

Invoked by PN (PayNet) to obtain authorization; DP responds with 303 redirect.

query Parameters
consent_id
required
string <= 36 characters

Unique identification as assigned to identify the consent.

redirect_uri
required
string <= 300 characters

PN redirection URI to which the response will be sent.

signature
required
string

Compact JWS (alg=PS256) signed by the OFM Hub private key. The JWS payload is a JWT carrying the full v1.2.3 §11 claim table, all Required: iss ("ofm"), sub (consent_id), aud (dp_id), exp, nbf, iat (NumericDate seconds), jti (= x-fapi-interaction-id when that header is sent on the redirect), method ("GET"), url (this {DP_URL}/v1/authorize endpoint, byte-exact), and qpm ({consent_id, redirect_uri} matching the query parameters). The DP MUST reject the request if any Required claim is missing or does not bind to the active consent, this DP, or this endpoint.

Responses

Webhook – User Info

Invoked by the AS to retrieve end-user info. The Hub calls this webhook over mutual TLS, presenting its client certificate (§11.2), and signs the request (x-signature). The bank answers 200 with a JWS it signs, whose data claim is the user info object.

query Parameters
consent_id
required
string

Unique identification as assigned to identify the consent.

header Parameters
x-signature
required
string

The Hub's request signature: a compact JWS (PS256) with iss = ofm, sub = consent_id, aud = dp_id, exp, nbf, iat, jti = x-fapi-interaction-id, method = GET, url = this webhook's URL without the query, and qpm = {consent_id} (v1.2.3 §3). Verify it with the Hub's signing key from /oauth/jwks/ofm.

x-fapi-interaction-id
required
string <uuid>

An UUID used as a correlation id.

Responses

Response samples

Content type
No sample

Resource Server

Retrieve Consent (Data Provider)

Data Provider retrieves an existing consent using the consent ID (v1.2.3 /providers prefix). mTLS + x-signature request; OFP-signed application/jwt response.

path Parameters
consent_id
required
string

ConsentID is the unique consent identifier (path parameter).

header Parameters
x-signature
required
string

The bank's request signature: a compact JWS signed by the bank (PS256, kid = the x5t#S256 of its signing certificate) whose payload is iss = dp_id, sub = consent_id, aud = ofm, exp, nbf, iat, jti = x-fapi-interaction-id, method = GET and url = this route's URL without the query (v1.2.3 §3). The Hub verifies it with the bank's registered signing key.

x-fapi-interaction-id
required
string <uuid>

A UUID identifying this request. The Hub echoes it on the response; a missing or non-UUID value is refused with 400.

Responses

Response samples

Content type
No sample

Account

PayNet retrieves a consented account from DP. The Hub calls this webhook over mutual TLS, presenting its client certificate (§11.2), and passes on the Data Consumer's signed request (x-signature). The bank answers 200 with a JWS it signs, whose data claim is the Account object encrypted to the Data Consumer's key named by x-enc-kid.

path Parameters
account_id
required
string

AccountID is the account identifier (path).

query Parameters
consent_id
required
string <= 36 characters

ConsentID is the consent the Data Consumer reads the account under.

header Parameters
x-signature
required
string

The Data Consumer's request signature, passed on unchanged by the Hub: a compact JWS (PS256) with iss = dc_id, sub = consent_id, aud = ["ofm", dp_id], exp, nbf, iat, jti = x-fapi-interaction-id, method = GET, url = the Hub's resource-server URL for this path, without the query, and qpm = the query parameters (v1.2.3 §3). The Data Consumer signed the Hub's URL, not the bank's (§11.3), so a bank checks the url claim's path, not its host. Verify it with the Data Consumer's signing key from the Hub's JWKS for that dc_id (/oauth/jwks/{dc_id}).

x-enc-kid
required
string <= 44 characters

The base64url-encoded SHA-256 thumbprint (x5t#S256) of the Data Consumer certificate to encrypt the answer to: the kid of an enc key in the Hub's JWKS for that dc_id (/oauth/jwks/{dc_id}).

x-fapi-interaction-id
required
string <uuid>

A UUID the Hub sends as the request's correlation id. The request's signature and the bank's answer carry it as jti.

Responses

Response samples

Content type
No sample

Account Balances

PayNet retrieves an account balances information from DP. The Hub calls this webhook over mutual TLS, presenting its client certificate (§11.2), and passes on the Data Consumer's signed request (x-signature). The bank answers 200 with a JWS it signs, whose data claim is the Balance object encrypted to the Data Consumer's key named by x-enc-kid.

path Parameters
account_id
required
string

AccountID is the account identifier (path).

query Parameters
consent_id
required
string <= 36 characters

ConsentID is the consent the Data Consumer reads the balances under.

header Parameters
x-signature
required
string

The Data Consumer's request signature, passed on unchanged by the Hub: a compact JWS (PS256) with iss = dc_id, sub = consent_id, aud = ["ofm", dp_id], exp, nbf, iat, jti = x-fapi-interaction-id, method = GET, url = the Hub's resource-server URL for this path, without the query, and qpm = the query parameters (v1.2.3 §3). The Data Consumer signed the Hub's URL, not the bank's (§11.3), so a bank checks the url claim's path, not its host. Verify it with the Data Consumer's signing key from the Hub's JWKS for that dc_id (/oauth/jwks/{dc_id}).

x-enc-kid
required
string <= 44 characters

The base64url-encoded SHA-256 thumbprint (x5t#S256) of the Data Consumer certificate to encrypt the answer to: the kid of an enc key in the Hub's JWKS for that dc_id (/oauth/jwks/{dc_id}).

x-fapi-interaction-id
required
string <uuid>

A UUID the Hub sends as the request's correlation id. The request's signature and the bank's answer carry it as jti.

Responses

Response samples

Content type
No sample

Account Transactions

PayNet retrieves a page of a consented account's transactions from DP, newest first with a stable order among equal timestamps (§5.8, §9). The Hub calls this webhook over mutual TLS, presenting its client certificate (§11.2), and passes on the Data Consumer's signed request (x-signature). The bank answers 200 with a JWS it signs, whose data claim is the page of Transaction objects and its Meta object, encrypted to the Data Consumer's key named by x-enc-kid.

path Parameters
account_id
required
string

AccountID is the account identifier (path).

query Parameters
consent_id
required
string <= 36 characters

ConsentID is the consent the Data Consumer reads the transactions under.

from_date
string <date>

FromDate returns only transactions whose transaction_date is on or after this date (§7 Date, YYYY-MM-DD).

to_date
string <date>

ToDate returns only transactions whose transaction_date is on or before this date (§7 Date, YYYY-MM-DD).

page_size
integer <int32> [ 10 .. 500 ]
Default: 100

PageSize is the number of records per page, 10 to 500, default 100 (§9). Any other value is refused with 400 Request.InvalidParameter.

next_page_params
string <= 300 characters

NextPageParams is the URL-encoded parameter string of the next page, from the previous page's meta (§9).

header Parameters
x-signature
required
string

The Data Consumer's request signature, passed on unchanged by the Hub: a compact JWS (PS256) with iss = dc_id, sub = consent_id, aud = ["ofm", dp_id], exp, nbf, iat, jti = x-fapi-interaction-id, method = GET, url = the Hub's resource-server URL for this path, without the query, and qpm = the query parameters (v1.2.3 §3). The Data Consumer signed the Hub's URL, not the bank's (§11.3), so a bank checks the url claim's path, not its host. Verify it with the Data Consumer's signing key from the Hub's JWKS for that dc_id (/oauth/jwks/{dc_id}).

x-enc-kid
required
string <= 44 characters

The base64url-encoded SHA-256 thumbprint (x5t#S256) of the Data Consumer certificate to encrypt the answer to: the kid of an enc key in the Hub's JWKS for that dc_id (/oauth/jwks/{dc_id}).

x-fapi-interaction-id
required
string <uuid>

A UUID the Hub sends as the request's correlation id. The request's signature and the bank's answer carry it as jti.

Responses

Response samples

Content type
No sample

Consent Event

Description: PayNet notifies DP when consent is created or updated. The Hub calls this webhook over mutual TLS, presenting its client certificate (§11.2), with a body it signs: a JWS whose data claim is the event. The bank acknowledges with 204 and its own signature in x-signature.

header Parameters
x-fapi-interaction-id
required
string <uuid>

A UUID the Hub sends as the request's correlation id. The request's signature and the bank's answer carry it as jti.

Request Body schema: application/jwt
string^[A-Za-z0-9_-]+\.[A-Za-z0-9_-]*\.[A-Za-z0-9_-...

A compact JWS signed by the Hub (PS256, kid = the x5t#S256 of its signing certificate) with iss = ofm, sub = consent_id, aud = dp_id, exp, nbf, iat, jti = x-fapi-interaction-id, method = POST and url = this webhook's URL (v1.2.3 §3). Its data claim is the JSON object named by x-paynet-plaintext. Verify it with the Hub's signing key from /oauth/jwks/ofm.

Responses

Response samples

Content type
application/json
{
  • "error": "string",
  • "error_description": "string"
}

Update Consent

DP updates consent status and user info after the user authorizes the consent. The bank calls this over mutual TLS with its registered certificate, with a body it signs: a JWS whose data claim is the update. The Hub answers 204 with its signed receipt in x-signature.

path Parameters
consent_id
required
string

ConsentID is the consent identifier (from path parameter).

header Parameters
x-fapi-interaction-id
required
string <uuid>

A UUID identifying this request. The Hub echoes it on the response; a missing or non-UUID value is refused with 400.

Request Body schema: application/jwt
string^[A-Za-z0-9_-]+\.[A-Za-z0-9_-]*\.[A-Za-z0-9_-...

A compact JWS signed by the bank (PS256, kid = the x5t#S256 of its signing certificate) with iss = dp_id, sub = consent_id, aud = ofm, exp, nbf, iat, jti = x-fapi-interaction-id, method = PATCH and url = this route's URL (v1.2.3 §3). Its data claim is the JSON object named by x-paynet-plaintext.

Responses

Response samples

Content type
application/json
{
  • "error": "string",
  • "error_description": "string"
}

Webhook – Health Check

PayNet periodically invokes this endpoint to monitor the DP service availability (§5.1). It takes no parameters, and the bank answers 200 with no body while it is available. Unlike the other webhooks it requires no client certificate: the bank serves it to a caller that presents none.

Responses

Response samples

Content type
application/json
{
  • "error": "string",
  • "error_description": "string"
}

Consent LCM

Consent lifecycle management on the Data Provider prefix /providers/v1: suspend, reactivate and revoke a consent held with your institution. These routes are authenticated by mTLS with your registered certificate and a request signed with your registered key (see each operation). A successful change answers 201 with a response signed by the Hub, and the Data Consumer is notified by a consent event.

Reactivate Consent (Data Provider)

Data Provider reactivates the consent. Authenticated by mTLS and a DP-signed compact JWS request body (Content-Type application/jwt; aud ofm, sub bound to the consent id, payload in the data claim); no bearer token.

path Parameters
consent_id
required
string

ConsentID from the URL path.

header Parameters
x-fapi-interaction-id
required
string <uuid>

A UUID identifying this request. The Hub echoes it on the response; a missing or non-UUID value is refused with 400.

Request Body schema: application/jwt
string^[A-Za-z0-9_-]+\.[A-Za-z0-9_-]*\.[A-Za-z0-9_-...

A compact JWS signed by the bank (PS256, kid = the x5t#S256 of its signing certificate) with iss = dp_id, sub = consent_id, aud = ofm, exp, nbf, iat, jti = x-fapi-interaction-id, method = POST and url = this route's URL (v1.2.3 §3). Its data claim is the JSON object named by x-paynet-plaintext.

Responses

Response samples

Content type
No sample

Revoke Consent (Data Provider)

Data Provider revokes the consent. Authenticated by mTLS and a DP-signed compact JWS request body (Content-Type application/jwt; aud ofm, sub bound to the consent id, payload in the data claim); no bearer token.

path Parameters
consent_id
required
string

ConsentID from the URL path.

header Parameters
x-fapi-interaction-id
required
string <uuid>

A UUID identifying this request. The Hub echoes it on the response; a missing or non-UUID value is refused with 400.

Request Body schema: application/jwt
string^[A-Za-z0-9_-]+\.[A-Za-z0-9_-]*\.[A-Za-z0-9_-...

A compact JWS signed by the bank (PS256, kid = the x5t#S256 of its signing certificate) with iss = dp_id, sub = consent_id, aud = ofm, exp, nbf, iat, jti = x-fapi-interaction-id, method = POST and url = this route's URL (v1.2.3 §3). Its data claim is the JSON object named by x-paynet-plaintext.

Responses

Response samples

Content type
No sample

Suspend Consent (Data Provider)

Data Provider suspends the consent. Authenticated by mTLS and a DP-signed compact JWS request body (Content-Type application/jwt; aud ofm, sub bound to the consent id, payload in the data claim); no bearer token.

path Parameters
consent_id
required
string

ConsentID from the URL path.

header Parameters
x-fapi-interaction-id
required
string <uuid>

A UUID identifying this request. The Hub echoes it on the response; a missing or non-UUID value is refused with 400.

Request Body schema: application/jwt
string^[A-Za-z0-9_-]+\.[A-Za-z0-9_-]*\.[A-Za-z0-9_-...

A compact JWS signed by the bank (PS256, kid = the x5t#S256 of its signing certificate) with iss = dp_id, sub = consent_id, aud = ofm, exp, nbf, iat, jti = x-fapi-interaction-id, method = POST and url = this route's URL (v1.2.3 §3). Its data claim is the JSON object named by x-paynet-plaintext.

Responses

Response samples

Content type
No sample