Skip to content

Commit 1da6927

Browse files
Anubhav kumarAnubhav kumar
Anubhav kumar
authored and
Anubhav kumar
committed
fix(AG-1478) updated Get Consent API response
1 parent d87071e commit 1da6927

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

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

+9-4
Original file line numberDiff line numberDiff line change
@@ -223,14 +223,17 @@ If the consent is approved, the status in the response will be `ACTIVE`. After t
223223
<h5>Response</h5>
224224
<CodeBlockWithCopy language="json">
225225
{`{
226+
"id": "e082b325-2692-47cd-88cf-875068df9051"
226227
"url": "https://fiu.setu.co/consents/v2/webview/e082b325-2692-47cd-88cf-875068df9051",
227228
"status": "PENDING",
228229
"context": [],
229-
"vua": "999999999@onemoney",
230-
"consentStart": "2023-04-04T07:10:41.165Z",
231-
"consentExpiry": "2023-08-02T12:40:41.165Z",
230+
"detail": {
231+
"vua": "9999999999@onemoney",
232+
"consentStart": "2023-04-04T07:10:41.165Z",
233+
"consentExpiry": "2023-08-02T12:40:41.165Z"
234+
},
235+
"accountsLinked": [],
232236
"traceId": "26b8bc4c-5d33-43a1-a58f-be5d4d0acbd0"
233-
}
234237
}`}
235238
</CodeBlockWithCopy>
236239
<p>
@@ -239,6 +242,7 @@ If the consent is approved, the status in the response will be `ACTIVE`. After t
239242
</p>
240243
<CodeBlockWithCopy language="json">
241244
{`{
245+
"id": "73633c01-d14d-4dbb-8a82-d82e53df5920",
242246
"url": "https://fiu.setu.co/v2/consents/webview/73633c01-d14d-4dbb-8a82-d82e53df5920",
243247
"status": "PENDING",
244248
"detail": {
@@ -283,6 +287,7 @@ If the consent is approved, the status in the response will be `ACTIVE`. After t
283287
"lastUsed": null,
284288
"count": "0"
285289
},
290+
"accountsLinked": [],
286291
"traceId": "74d3032a-597e-40e1-859b-67b035e8a0e0"
287292
}`}
288293
</CodeBlockWithCopy>

content/data/account-aggregator/api-integration/data-apis.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,7 @@ Auto-Fetch data feature aims to absorb this complexity from the FIUs. With Auto-
568568
<CodeBlockWithCopy language="json">
569569
{`POST /your-webhook-endpoint
570570
{
571-
"type": "FI_DATA_FAILURE",
571+
"type": "FI_DATA_FAILED",
572572
"timestamp": "2023-08-28T17:12:51.521Z",
573573
"consentId": "af43608a-ed6e-4c65-9745-0386ba5fd91b",
574574
"success": true,

0 commit comments

Comments
 (0)