Skip to content

Commit af22837

Browse files
riyasuntwalriyasuntwal
riyasuntwal
authored and
riyasuntwal
committed
added tags feature for AA framework
1 parent 2515885 commit af22837

File tree

2 files changed

+59
-1
lines changed

2 files changed

+59
-1
lines changed

content/data/account-aggregator/api-integration/consent-flow.mdx

+16-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,10 @@ Call this API to create a consent request. The details of the request will be pr
3838
"to": "2023-01-01T00:00:00Z"
3939
},
4040
"context": [
41-
]
41+
],
42+
"additionalParams": {
43+
"tags": ["Loan_Tracking", "Partner_X"]
44+
}
4245
}`}
4346
</CodeBlockWithCopy>
4447
<Row>
@@ -97,6 +100,10 @@ Call this API to create a consent request. The details of the request will be pr
97100
"count": "0",
98101
"lastUsed": null
99102
},
103+
"tags": [
104+
"Loan_Tracking",
105+
"Partner_X"
106+
],
100107
"traceId": "1-6433a06a-4b99c3a81b538bc762b5aa08"
101108
}
102109
`}
@@ -234,6 +241,10 @@ If the consent is approved, the status in the response will be `ACTIVE`. After t
234241
"consentExpiry": "2023-08-02T12:40:41.165Z"
235242
},
236243
"accountsLinked": [],
244+
"tags": [
245+
"Loan_Tracking",
246+
"Partner_X"
247+
],
237248
"traceId": "26b8bc4c-5d33-43a1-a58f-be5d4d0acbd0"
238249
}`}
239250
</CodeBlockWithCopy>
@@ -289,6 +300,10 @@ If the consent is approved, the status in the response will be `ACTIVE`. After t
289300
"count": "0"
290301
},
291302
"accountsLinked": [],
303+
"tags": [
304+
"Loan_Tracking",
305+
"Partner_X"
306+
],
292307
"traceId": "74d3032a-597e-40e1-859b-67b035e8a0e0"
293308
}`}
294309
</CodeBlockWithCopy>

content/data/account-aggregator/consent-object.mdx

+43
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@ Consent object contains the information about all the different types of data th
1818

1919
<br />
2020

21+
<Callout type="info">
22+
Tagging helps you organize and track consent requests, reports, and analytics more effectively. With this feature, you can add relevant labels (tags) to different consent requests and data-fetch reports without creating separate product instances. Tags make it easier to segment, analyze, and track data for different use cases, such as monitoring traffic for specific partners or campaigns.
23+
</Callout>
24+
25+
<br />
26+
2127
### Consent request object
2228

2329
| Property name | Description | Mandatory? |
@@ -36,6 +42,7 @@ Consent object contains the information about all the different types of data th
3642
| `dataFilter` | Allows you to specify conditions for filtering the data being fetched. For example, fetch transactions where the `TRANSACTIONAMOUNT` is greater than or equal to INR 20,000. You can use the `type`, `operator` like `>, <, <=, >=` and `value` like `5000` keys to set the filters. | No |
3743
| `redirectUrl` | Redirect your users back to your application once the consent is reviewed. By default, the redirectURL is https://setu.co/. | Yes |
3844
| `context` | Allows you to specify an FIP OR Account type (Current, Savings, Insurance, etc) as a key value pair for you to be able to customise the accounts fetched on the consent flow. We support the context filters `accounttype` which takes the Key as `accounttype` where values can be `CURRENT` or `SAVINGS` and `fipid` with the `FIP ID` as the value(s). | No |
45+
| `additionalParams` | Allows you to specify additional parameters for the consent request. Currently, we have `tags` specified under it. | No |
3946

4047
#### Context property examples
4148

@@ -83,4 +90,40 @@ Consent object contains the information about all the different types of data th
8390
| `status` | Consent status of the consent request `id`. This will be `PENDING` for a newly created consent. |
8491
| `Usage` | This field specifies `lastUsed` and `count` which corresponds to data fetches against the consent id. It is also available in Get Consent Status response. |
8592

93+
<hr class="primary" />
94+
95+
### Understanding Tags in AA Framework
96+
97+
• Tags must first be created at the product instance level before they can be used in any requests.
98+
99+
• Tags can be created and managed while setting up or updating a product instance. They are unique identifiers (max 100 characters) that can be linked to multiple product instances.
100+
101+
• Tags are visible in consent and data-fetch reports, and serve as filters in analytics dashboards. Use them to track user journeys, monitor failures, analyze behavior, measure campaign performance, and generate custom insights.
102+
103+
• Key limitations and rules:
104+
- Tags are case-insensitive (e.g., "partnerA" = "PartnerA")
105+
- Duplicate tags are not allowed
106+
- Bulk tagging for historical data is not supported
107+
- Number of tags per FIU is configurable
108+
- Invalid characters will trigger errors
109+
- System issues may prevent tag application (with error notifications)
110+
111+
• Best practice: Use clear, consistent, and easily understandable tag names for effective tracking.
112+
113+
• To add tags to a consent request, include them under the `additionalParams` field:
114+
115+
<CodeBlockWithCopy language="json">
116+
{`{
117+
"consentDetail": {
118+
...
119+
},
120+
...,
121+
"additionalParams": {
122+
"tags": ["Loan_Tracking", "Partner_X"]
123+
}
124+
}`}
125+
</CodeBlockWithCopy>
126+
127+
<br />
128+
86129
<WasPageHelpful />

0 commit comments

Comments
 (0)