Skip to main content

Overview

The User Data API provides information about the status of a user’s PFM data and retrieves the actual data when available. This API uses configurable data structures defined by data config IDs, allowing clients to receive data in their preferred custom format. It tracks the complete data lifecycle from consent management to data availability.

Example Request

Authentication

This API requires Bearer token authentication using a JWT token:

Query Parameters

Response

Success Response (200 OK)

The API returns different responses based on the current status of the user’s data:

Data Status Values

Sample Data Field Response

When entire data is available, the data field contains comprehensive financial information structured as follows:

Error Responses (400 Bad Request / 401 Unauthorized)

When the request fails, the API returns specific error responses:

Error Handling

Usage Flow

  1. Check Data Status: Call this API to understand the current state of user’s data
  2. Handle Different Statuses:
    • NO_CONSENTS_RAISED: Direct user to onboarding flow
    • NO_APPROVED_CONSENTS: Guide user to raise new consents via the onboarding flow
    • DATA_AVAILABLE: Process and display the user’s financial data (can be partial or complete)
  3. Data Processing: When data is available, use the custom-formatted data for your application needs

Data Configuration

The id parameter refers to a data config ID that defines:
  • Custom Data Structure: The specific format and fields required by your application
  • Data Scope: Which financial information types to include (deposits, investments, etc.)
  • Response Format: How the data should be organized and presented
  • Field Mapping: Custom field names and data transformations
For testing purposes, use id=DEFAULT which provides a standard data structure.

Security Considerations

  • Token Security: Handle JWT tokens securely and avoid logging them
  • Data Privacy: Ensure proper handling of sensitive financial data returned in responses
  • Encryption Support: This API supports encryption. When encryption is enabled for your integration, both request and response payloads will be encrypted. See API Encryption Guide for details.