Skip to main content
POST
Error
Legacy API — This is Consent Request V2. We recommend using V3 for new integrations.

Overview

The Consent Request V2 API initiates a consent journey by creating a new consent request based on a pre-configured consent template. This API generates a consent handle that uniquely identifies the consent request and allows the FIU to track its lifecycle through subsequent status checks and webhook notifications. This is the foundational version of the consent request API that returns a consent handle without web redirection capabilities. Use this API when you plan to redirect customers through a separate mechanism or when you need just the consent handle for tracking purposes.

Endpoint

Authentication

This API requires authentication through the following headers that must be included in every request:

Request Body

The request body must be a JSON object containing the following parameters:

Important Notes

  • VUA Format: The VUA must follow the exact format identifier@onemoney where the identifier matches the party identifier value. The domain @onemoney is case-sensitive and required.
  • Party Identifier Validation: The API validates that the partyIdentifierType and partyIdentifierValue match the expected format. Mobile numbers must be exactly 10 digits, and PAN must follow the standard Indian PAN format.
  • Product ID Configuration: The productID must exist in your FinPro portal configuration before making this API call. Requests with invalid or non-existent product IDs will be rejected.
  • Account ID Uniqueness: While not enforced by the API, it’s recommended to use unique accountID values per consent request to avoid confusion when processing webhooks and tracking consent status.

Response

Success Response (200 OK)

When the consent request is successfully created, the API returns a response with the consent handle that can be used to track the consent status:

Error Response (400 Bad Request)

When the request contains invalid data or fails validation, the API returns an error response with details about what went wrong:

Common Error Codes

Example Request

Next Steps

After successfully creating a consent request with V2:
  1. Store the Consent Handle: Persist the consent_handle returned in the response to your database, linked to the accountID you provided. This allows you to track the consent lifecycle and correlate webhook events.
  2. Redirect the Customer: Since V2 does not return a web redirection URL directly, use the Web Redirection Encryption API to generate an encrypted URL that redirects the customer to the Account Aggregator consent flow. Alternatively, consider using the V3 API which returns a redirection URL in the response itself.
  3. Configure Webhooks: Ensure you have webhook endpoints configured in the FinPro admin portal to receive consent lifecycle notifications (Approve, Reject, Revoke, Expire).
  4. Monitor Status: Use the Consent List APIs to poll for consent status updates, or rely on webhook notifications for real-time status changes.
  5. Handle Customer Decision: When the customer approves the consent (notified via webhook), you can proceed to request FI data using the Data Management APIs. If rejected, handle the rejection gracefully in your application workflow.

API Version Comparison

  • V2 (this API): Returns only a consent handle with PENDING status. Requires manual customer redirection mechanism.
  • V3: Returns a webRedirectionUrl that can be used to automatically redirect customers to the AA consent interface. Supports FIP filtering and redirect URL configuration.
Choose the version that best fits your integration requirements and customer journey design.

Authorizations

client_id
string
header
required

Your unique client identifier provided by MoneyOne during FIU onboarding

client_secret
string
header
required

Your confidential client secret provided by MoneyOne

organisationId
string
header
required

Your organization's unique identifier in the FinPro system

appIdentifier
string
header
required

Application-specific identifier for tracking API calls

Body

application/json
productID
string
required

The unique identifier of the consent template configured in the FinPro admin portal.

vua
string
required

The customer's Virtual User Address (VUA) in format mobile@onemoney.

partyIdentifierType
enum<string>
required

The type of identifier being provided for the customer.

Available options:
MOBILE,
EMAIL,
PAN
partyIdentifierValue
string
required

The actual identifier value (10-digit mobile, email, or PAN).

accountID
string
required

A unique identifier from your system that links this consent request to a customer interaction.

Response

Consent request created successfully

status
string

Overall API call status

ver
string

API version

data
object