build_aa_consent_request
Generate ReBIT-compliant Account Aggregator consent request JSON for open banking data sharing.
Instructions
Build AA (Account Aggregator) consent request JSON per ReBIT spec.
Use when setting up data sharing consent for open banking workflows.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| customer_id | Yes | AA customer address (e.g., user@onemoney) | |
| fi_types | Yes | FI types: DEPOSIT, MUTUAL_FUNDS, INSURANCE, NPS, EQUITIES, GSTIN_DATA, CREDIT_CARD, RECURRING_DEPOSIT | |
| date_range_from | Yes | Start date YYYY-MM-DD | |
| date_range_to | Yes | End date YYYY-MM-DD | |
| consent_expiry_days | No | Days until consent expires | |
| purpose_code | No | ReBIT purpose code (101-106) | 101 |
| fetch_type | No | ONETIME or PERIODIC | ONETIME |
| frequency_unit | No | HOUR, DAY, MONTH, YEAR for PERIODIC | |
| frequency_value | No | Frequency value for PERIODIC |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||