diff --git a/api-references/data/insights.json b/api-references/data/insights.json index 38d93223..78caa4d6 100644 --- a/api-references/data/insights.json +++ b/api-references/data/insights.json @@ -16,7 +16,6 @@ } ], "paths": { - "/v2/fiData": { "post": { "tags": [ @@ -773,894 +772,2433 @@ } } } + }, + "/v2/deposit/transactions": { + "post": { + "tags": [ + "List transactions" + ], + "summary": "List Deposit Transactions", + "description": "Retrieves a list of deposit account transactions based on provided filters and pagination parameters.", + "operationId": "list-deposit-transactions", + "parameters": [ + { + "required": true, + "schema": { + "type": "string", + "title": "x-product-instance-id" + }, + "name": "x-product-instance-id", + "in": "header" + }, + { + "required": true, + "schema": { + "type": "string", + "title": "x-client-id" + }, + "name": "x-client-id", + "in": "header" + }, + { + "required": true, + "schema": { + "type": "string", + "title": "x-client-secret" + }, + "name": "x-client-secret", + "in": "header" + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InsightListDepositTransactionsRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InsightListDepositTransactionsResponse" + }, + "examples": { + "SuccessResponse": { + "summary": "SuccessResponse", + "value": { + "status": "Success", + "body": [ + { + "totalCount": 3, + "data": [ + { + "id": "01XYZHR0K3SGPV3CTPF7TPF5F4", + "refId": "3642496001329000000", + "dataId": "", + "consentId": "", + "linkedAccRef": "5af25502-6b0f-4e10-906f-b8a11ae6c999", + "fipId": "setu-fip-2", + "txnId": "FDYG00500930000000", + "txnType": "DEBIT", + "txnMode": "ATM", + "txnTimestamp": "2023-01-13T20:18:16Z", + "txnValueDate": "2023-01-14T20:18:16Z", + "narration": "ATM/DE/193384537054/Pihu Wadhwa/IGHE/10042865", + "reference": "152804000", + "transactionMode": "CASH", + "counterparty": "Pihu Wadhwa", + "categoryL1": "Cash Withdrawal", + "categoryL2": "Cash Withdrawal", + "categoryManual": "", + "amount": 49300.00, + "currentBalance": 232900.00 + }, + { + "id": "01JWBHR0BH6J5NVXTY7TB0ABC5", + "refId": "3642496001253000000", + "dataId": "", + "consentId": "", + "linkedAccRef": "fa85b8b4-52c6-4ae6-81b3-d8d625b19999", + "fipId": "setu-fip-2", + "txnId": "FDYG00500930999999", + "txnType": "DEBIT", + "txnMode": "ATM", + "txnTimestamp": "2023-01-13T20:18:16Z", + "txnValueDate": "2023-01-14T20:18:16Z", + "narration": "ATM/DE/193384537054/Pihu Wadhwa/IGHE/10042865", + "reference": "152804999", + "transactionMode": "CASH", + "counterparty": "Pihu Wadhwa", + "categoryL1": "Cash Withdrawal", + "categoryL2": "Cash Withdrawal", + "categoryManual": "", + "amount": 49399.99, + "currentBalance": 232999.99 + }, + { + "id": "01JWBHR0K3X98W0FRB2QQP7XYZ", + "refId": "3642496001329001111", + "dataId": "", + "consentId": "", + "linkedAccRef": "5af25502-6b0f-4e10-906f-b8a11ae6c777", + "fipId": "setu-fip-2", + "txnId": "DUIX70560000000000", + "txnType": "CREDIT", + "txnMode": "FT", + "txnTimestamp": "2023-03-11T00:00:52Z", + "txnValueDate": "2023-03-12T00:00:52Z", + "narration": "FT/CR/401095631252/Pihu Wadhwa/QIKB/51614914", + "reference": "204584000", + "transactionMode": "OTHERS", + "counterparty": "Pihu Wadhwa", + "categoryL1": "Transfer", + "categoryL2": "P2A Inward", + "categoryManual": "", + "amount": 17900.00, + "currentBalance": 241300.00 + } + ] + } + ] + } + } + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InsightTransactionServiceBadRequest" + }, + "examples": { + "BadRequestResponse": { + "summary": "BadRequestResponse", + "value": { + "message": "Product instance ID required" + } + } + } + } + } + }, + "401": { + "description": "Authentication Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InsightTransactionServiceUnauthorized" + }, + "examples": { + "AuthenticationErrorResponse": { + "summary": "AuthenticationErrorResponse", + "value": { + "message": "Unauthorized" + } + } + } + } + } + } + } + } + }, + "/v2/equities/transactions": { + "post": { + "tags": [ + "List transactions" + ], + "summary": "List equities transactions", + "description": "Retrieves a list of equity investment transactions based on provided filters and pagination parameters.", + "operationId": "list-equities-transactions", + "parameters": [ + { + "required": true, + "schema": { + "type": "string", + "title": "x-product-instance-id" + }, + "name": "x-product-instance-id", + "in": "header" + }, + { + "required": true, + "schema": { + "type": "string", + "title": "x-client-id" + }, + "name": "x-client-id", + "in": "header" + }, + { + "required": true, + "schema": { + "type": "string", + "title": "x-client-secret" + }, + "name": "x-client-secret", + "in": "header" + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InsightListEquitiesTransactionsRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InsightListEquitiesTransactionsResponse" + }, + "examples": { + "SuccessResponse": { + "summary": "SuccessResponse", + "value": { + "status": "Success", + "body": [ + { + "totalCount": 1, + "data": [ + { + "id": "01SAMPLE04R46QZNQ28YM2C6E4S", + "createdAt": "2024-10-31T18:35:00Z", + "updatedAt": "2024-10-31T18:35:00Z", + "isDeleted": false, + "refId": "sample-equity-ref-001", + "dataId": "equity-data-block-001", + "consentId": "equity-consent-12345", + "linkedAccRef": "NSDLLINK00000000000000SAMPLE", + "productAccountId": "prod-equity-acc-001", + "fipId": "fip@nsdl", + "txnId": "EQUITY123456789", + "txnType": "BUY", + "txnDateTime": "2024-10-31T18:30:00Z", + "orderId": "ORD2024103101", + "exchange": "NSE", + "isin": "INE002A01018", + "isinDescription": "Reliance Industries Limited", + "companyName": "RELIANCE INDUSTRIES LIMITED", + "equityCategory": "EQUITY", + "narration": "Purchase of equity shares", + "exchangeRate": 1338.65, + "units": 11, + "dematId": "DEMAT123456" + } + ] + } + ] + } + } + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InsightTransactionServiceBadRequest" + }, + "examples": { + "BadRequestResponse": { + "summary": "BadRequestResponse", + "value": { + "message": "Product instance ID required" + } + } + } + } + } + }, + "401": { + "description": "Authentication Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InsightTransactionServiceUnauthorized" + }, + "examples": { + "UnauthorizedResponse": { + "summary": "UnauthorizedResponse", + "value": { + "message": "Unauthorized" + } + } + } + } + } + } + } + } + }, + "/v2/etf/transactions": { + "post": { + "tags": [ + "List transactions" + ], + "summary": "List etf transactions", + "description": "Retrieves a list of ETF (Exchange Traded Fund) transactions based on provided filters and pagination parameters.", + "operationId": "list-etf-transactions", + "parameters": [ + { + "required": true, + "schema": { + "type": "string", + "title": "x-product-instance-id" + }, + "name": "x-product-instance-id", + "in": "header" + }, + { + "required": true, + "schema": { + "type": "string", + "title": "x-client-id" + }, + "name": "x-client-id", + "in": "header" + }, + { + "required": true, + "schema": { + "type": "string", + "title": "x-client-secret" + }, + "name": "x-client-secret", + "in": "header" + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InsightListETFTransactionsRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InsightListETFTransactionsResponse" + }, + "examples": { + "SuccessResponse": { + "summary": "SuccessResponse", + "value": { + "status": "Success", + "body": { + "totalCount": 2, + "data": [ + { + "id": "01SAMPLE1PAGPEKV9FXTKQ9JWN5", + "refId": "etf-sample-ref-001", + "dataId": "etf-data-block-001", + "consentId": "etf-consent-12345", + "linkedAccRef": "sample-etf-acc-ref-001", + "fipId": "setu-fip", + "txnId": "ETF63944T6", + "txnType": "BUY", + "transactionDateTime": "2015-10-07T18:20:00Z", + "brokerCode": "BRK001", + "isin": "INUSETF001625-0", + "isinDescription": "Sample ETF Index Fund", + "narration": "Purchase of ETF units", + "nav": 2100, + "amount": 42000, + "units": 20, + "dematId": "DEMAT567890" + }, + { + "id": "02SAMPLE2PAVDAY0MY8F4YTATRV", + "refId": "etf-sample-ref-001", + "dataId": "etf-data-block-002", + "consentId": "etf-consent-12345", + "linkedAccRef": "sample-etf-acc-ref-001", + "fipId": "setu-fip", + "txnId": "ETF63944T6", + "txnType": "SELL", + "transactionDateTime": "2021-01-12T18:20:00Z", + "brokerCode": "BRK001", + "isin": "INUSETF001625-0", + "isinDescription": "Sample ETF Index Fund", + "narration": "Sale of ETF units", + "nav": 2100, + "amount": 31500, + "units": 15, + "dematId": "DEMAT567890" + } + ] + } + } + } + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InsightTransactionServiceBadRequest" + }, + "examples": { + "BadRequestResponse": { + "summary": "BadRequestResponse", + "value": { + "message": "Product instance ID required" + } + } + } + } + } + }, + "401": { + "description": "Authentication Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InsightTransactionServiceUnauthorized" + }, + "examples": { + "UnauthorizedResponse": { + "summary": "UnauthorizedResponse", + "value": { + "message": "Unauthorized" + } + } + } + } + } + } + } + } + }, + "/v2/mutual-funds/transactions": { + "post": { + "tags": [ + "List transactions" + ], + "summary": "List mutual-funds transactions", + "description": "Retrieves a list of mutual fund transactions based on provided filters and pagination parameters.", + "operationId": "list-mutual-funds-transactions", + "parameters": [ + { + "required": true, + "schema": { + "type": "string", + "title": "x-product-instance-id" + }, + "name": "x-product-instance-id", + "in": "header" + }, + { + "required": true, + "schema": { + "type": "string", + "title": "x-client-id" + }, + "name": "x-client-id", + "in": "header" + }, + { + "required": true, + "schema": { + "type": "string", + "title": "x-client-secret" + }, + "name": "x-client-secret", + "in": "header" + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InsightListMutualFundsTransactionsRequest" + } + } + }, + "required": true, + "description": "List of Equities Transactions" + }, + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InsightListMutualFundsTransactionsResponse" + }, + "examples": { + "SuccessResponse": { + "summary": "SuccessResponse", + "value": { + "status": "Success", + "body": { + "totalCount": 1, + "data": [ + { + "id": "01SAMPLE04R46QZNQ28YM2C6E4S", + "refId": "sample-equity-ref-001", + "dataId": "equity-data-block-001", + "consentId": "equity-consent-12345", + "linkedAccRef": "NSDLLINK00000000000000SAMPLE", + "fipId": "fip@nsdl", + "txnId": "EQUITY123456789", + "txnType": "BUY", + "txnDateTime": "2024-10-31T18:30:00Z", + "orderId": "ORD2024103101", + "exchange": "NSE", + "isin": "INE002A01018", + "isinDescription": "Reliance Industries Limited", + "companyName": "RELIANCE INDUSTRIES LIMITED", + "equityCategory": "EQUITY", + "narration": "Purchase of equity shares", + "exchangeRate": 1338.65, + "units": 11, + "dematId": "DEMAT123456" + } + ] + } + } + } + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InsightTransactionServiceBadRequest" + }, + "examples": { + "BadRequestResponse": { + "summary": "BadRequestResponse", + "value": { + "message": "Product instance ID required" + } + } + } + } + } + }, + "401": { + "description": "Authentication Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InsightTransactionServiceUnauthorized" + }, + "examples": { + "UnauthorizedResponse": { + "summary": "UnauthorizedResponse", + "value": { + "message": "Unauthorized" + } + } + } + } + } + } + } + } } }, "components": { "schemas": { "AccountTS": { "properties": { - "profile": { - "$ref": "#/components/schemas/amon_amarth__schema__rebit__etf__Profile" + "profile": { + "$ref": "#/components/schemas/amon_amarth__schema__rebit__etf__Profile" + }, + "summary": { + "$ref": "#/components/schemas/amon_amarth__schema__rebit__etf__Summary" + }, + "transactions": { + "$ref": "#/components/schemas/amon_amarth__schema__rebit__etf__Transactions" + }, + "linkedAccRef": { + "type": "string", + "title": "Linkedaccref" + }, + "maskedAccNumber": { + "type": "string", + "title": "Maskedaccnumber" + }, + "version": { + "type": "string", + "title": "Version" + }, + "type": { + "type": "string", + "title": "Type", + "default": "etf" + } + }, + "type": "object", + "required": [ + "linkedAccRef", + "maskedAccNumber", + "version" + ], + "title": "AccountTS" + }, + "AccountType": { + "type": "string", + "enum": [ + "SAVINGS", + "CURRENT" + ], + "title": "AccountType", + "description": "An enumeration." + }, + "AggregationFunctions": { + "type": "string", + "enum": [ + "MIN", + "MAX", + "AVG", + "SUM", + "SD", + "COUNT", + "CV", + "AVG_RATIO", + "INC", + "DEC", + "COUNT_LT_10" + ], + "title": "AggregationFunctions", + "description": "An enumeration." + }, + "Body_create_template_v1_template_post": { + "properties": { + "name": { + "type": "string", + "title": "Name" + }, + "insights": { + "items": { + "type": "string" + }, + "type": "array", + "title": "List of Insight masters to be included in the template" + } + }, + "type": "object", + "required": [ + "name", + "insights" + ], + "title": "Body_create_template_v1_template_post" + }, + "Body_create_template_v2_template_post": { + "properties": { + "name": { + "type": "string", + "title": "Name" + }, + "keywordMaps": { + "items": { + "type": "integer" + }, + "type": "array", + "title": "List of ids of keyword category maps to be included in the template", + "default": [] + }, + "categorisationMode": { + "allOf": [ + { + "$ref": "#/components/schemas/CategorisationMode" + } + ], + "title": "Categorisation Mode to use client provided maps strictly or inclusively", + "default": "INCLUSIVE" + }, + "staticInsights": { + "items": { + "type": "string" + }, + "type": "array", + "title": "List of Insight masters to be included in the template", + "default": [] + }, + "configurableInsights": { + "items": { + "$ref": "#/components/schemas/InsightMap" + }, + "type": "array", + "title": "List of congurable insight masters with their configurations to be included in the template", + "default": [] + }, + "compoundInsights": { + "items": { + "$ref": "#/components/schemas/CompoundMasterRequest" + }, + "type": "array", + "title": "List of compound insight masters with their formula to be included in the template", + "default": [] + } + }, + "type": "object", + "required": [ + "name" + ], + "title": "Body_create_template_v2_template_post" + }, + "Body_process_insights_v1_insight_post": { + "properties": { + "templateId": { + "type": "string", + "format": "uuid", + "title": "Template ID for which insights are needed" + }, + "dataIds": { + "items": { + "type": "string" + }, + "type": "array", + "title": "List of data blocks to process" + }, + "refIds": { + "items": { + "type": "string" + }, + "type": "array", + "title": "Refids" + }, + "linkedAccRefs": { + "items": { + "type": "string" + }, + "type": "array", + "title": "Linkedaccrefs" + }, + "additionalInfo": { + "additionalProperties": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "integer" + }, + { + "type": "number" + } + ] + }, + "type": "object", + "title": "Additionalinfo" + }, + "filters": { + "allOf": [ + { + "$ref": "#/components/schemas/CreateInsightsFilters" + } + ], + "title": "Filters for PFM", + "default": {} + } + }, + "type": "object", + "required": [ + "templateId" + ], + "title": "Body_process_insights_v1_insight_post" + }, + "Body_process_insights_v2_insight_post": { + "properties": { + "templateId": { + "type": "string", + "format": "uuid", + "title": "Template ID for which insights are needed" + }, + "refIds": { + "items": { + "type": "string" + }, + "type": "array", + "title": "Refids" + }, + "linkedAccRefs": { + "items": { + "type": "string" + }, + "type": "array", + "title": "Linkedaccrefs" + }, + "additionalInfo": { + "additionalProperties": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "integer" + }, + { + "type": "number" + } + ] + }, + "type": "object", + "title": "Additionalinfo" + }, + "filters": { + "allOf": [ + { + "$ref": "#/components/schemas/CreateInsightsFilters" + } + ], + "title": "Filters for PFM", + "default": {} + } + }, + "type": "object", + "required": [ + "templateId" + ], + "title": "Body_process_insights_v2_insight_post" + }, + "Body_process_pdf_insights_v1_insight_pdf_post": { + "properties": { + "templateId": { + "type": "string", + "title": "Template ID for which insights are needed" }, - "summary": { - "$ref": "#/components/schemas/amon_amarth__schema__rebit__etf__Summary" + "applicantName": { + "type": "string", + "title": "Applicant Name for associated PDF" }, - "transactions": { - "$ref": "#/components/schemas/amon_amarth__schema__rebit__etf__Transactions" + "applicantType": { + "type": "string", + "title": "Applicant Type for associated PDF", + "default": "retail" }, - "linkedAccRef": { + "bankCode": { "type": "string", - "title": "Linkedaccref" + "title": "Bank Code for associated PDF", + "default": "" }, - "maskedAccNumber": { + "bankName": { "type": "string", - "title": "Maskedaccnumber" + "title": "Bank Name for associated PDF", + "default": "" }, - "version": { + "password": { "type": "string", - "title": "Version" + "title": "Password for associated PDF", + "default": "" }, - "type": { + "dataFile": { "type": "string", - "title": "Type", - "default": "etf" + "format": "binary", + "title": "PDF Bank Statement", + "description": "Upload the pdf-file to process" } }, "type": "object", "required": [ - "linkedAccRef", - "maskedAccNumber", - "version" - ], - "title": "AccountTS" - }, - "AccountType": { - "type": "string", - "enum": [ - "SAVINGS", - "CURRENT" - ], - "title": "AccountType", - "description": "An enumeration." - }, - "AggregationFunctions": { - "type": "string", - "enum": [ - "MIN", - "MAX", - "AVG", - "SUM", - "SD", - "COUNT", - "CV", - "AVG_RATIO", - "INC", - "DEC", - "COUNT_LT_10" + "templateId", + "applicantName", + "dataFile" ], - "title": "AggregationFunctions", - "description": "An enumeration." + "title": "Body_process_pdf_insights_v1_insight_pdf_post" }, - "Body_create_template_v1_template_post": { + "Body_retry_report_v1_retry_post": { "properties": { - "name": { + "reportId": { "type": "string", - "title": "Name" - }, - "insights": { - "items": { - "type": "string" - }, - "type": "array", - "title": "List of Insight masters to be included in the template" + "title": "Report ID which needs to be re-processed" } }, "type": "object", "required": [ - "name", - "insights" + "reportId" ], - "title": "Body_create_template_v1_template_post" + "title": "Body_retry_report_v1_retry_post" }, - "Body_create_template_v2_template_post": { + "Body_update_fi_data_v1_fiData_put": { "properties": { - "name": { - "type": "string", - "title": "Name" - }, - "keywordMaps": { - "items": { - "type": "integer" - }, - "type": "array", - "title": "List of ids of keyword category maps to be included in the template", - "default": [] - }, - "categorisationMode": { - "allOf": [ - { - "$ref": "#/components/schemas/CategorisationMode" - } - ], - "title": "Categorisation Mode to use client provided maps strictly or inclusively", - "default": "INCLUSIVE" - }, - "staticInsights": { + "dataIds": { "items": { "type": "string" }, "type": "array", - "title": "List of Insight masters to be included in the template", - "default": [] - }, - "configurableInsights": { - "items": { - "$ref": "#/components/schemas/InsightMap" - }, - "type": "array", - "title": "List of congurable insight masters with their configurations to be included in the template", - "default": [] + "title": "List of data blocks to process" }, - "compoundInsights": { - "items": { - "$ref": "#/components/schemas/CompoundMasterRequest" - }, - "type": "array", - "title": "List of compound insight masters with their formula to be included in the template", - "default": [] + "refId": { + "type": "string", + "title": "Refid" } }, "type": "object", "required": [ - "name" + "refId" ], - "title": "Body_create_template_v2_template_post" + "title": "Body_update_fi_data_v1_fiData_put" }, - "Body_process_insights_v1_insight_post": { + "CategorisationMode": { + "type": "string", + "enum": [ + "STRICT", + "STRICT_W_SALARY", + "KW_INCLUSIVE", + "INCLUSIVE" + ], + "title": "CategorisationMode", + "description": "An enumeration." + }, + "Category": { + "type": "string", + "enum": [ + "Cash Deposit", + "Cash Withdrawal", + "Bounced Cheque", + "Salary", + "Salary Paid", + "Bank Charges", + "Credit Card", + "Dividend", + "Education", + "Entertainment", + "Food & Drinks", + "Health", + "Investments", + "Jewellery", + "Loan", + "Pension", + "Reimbursement", + "Shopping", + "Sports", + "Subsidy", + "Tax", + "Travel and Transport", + "Utility Payments", + "Others", + "Gifts, Celebrations", + "Charity", + "Business Expense", + "Interest", + "Transfer", + "Transfer to Individual", + "Cash Withdrawals", + "Rent", + "Vehicle", + "Groceries", + "Transportation", + "Insurance", + "Refunds", + "Professional Services", + "Counseling", + "Donations", + "Fines", + "Bounced I/W Cheque", + "Bounced O/W Cheque", + "Bonus", + "Business Income", + "Bill", + "Gaming", + "Other Bank Charge", + "Fund Transfer", + "Account Verification", + "Self Transfer" + ], + "title": "Category", + "description": "An enumeration." + }, + "CompoundMasterRequest": { "properties": { - "templateId": { + "fiu_id": { "type": "string", "format": "uuid", - "title": "Template ID for which insights are needed" + "title": "Fiu Id" + }, + "name": { + "type": "string", + "title": "Name" + }, + "formula": { + "type": "string", + "title": "Formula" }, - "dataIds": { - "items": { - "type": "string" - }, - "type": "array", - "title": "List of data blocks to process" + "ref_key": { + "type": "string", + "title": "Ref Key" }, - "refIds": { - "items": { - "type": "string" - }, - "type": "array", - "title": "Refids" + "description": { + "type": "string", + "title": "Description" }, - "linkedAccRefs": { + "req_insights": { "items": { "type": "string" }, "type": "array", - "title": "Linkedaccrefs" - }, - "additionalInfo": { - "additionalProperties": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "integer" - }, - { - "type": "number" - } - ] - }, - "type": "object", - "title": "Additionalinfo" + "title": "Req Insights" }, - "filters": { - "allOf": [ - { - "$ref": "#/components/schemas/CreateInsightsFilters" - } - ], - "title": "Filters for PFM", - "default": {} + "insight": { + "type": "string", + "title": "Insight" } }, "type": "object", "required": [ - "templateId" + "formula", + "ref_key", + "req_insights", + "insight" ], - "title": "Body_process_insights_v1_insight_post" + "title": "CompoundMasterRequest" }, - "Body_process_insights_v2_insight_post": { + "CreateInsightsFilters": { "properties": { - "templateId": { - "type": "string", - "format": "uuid", - "title": "Template ID for which insights are needed" - }, - "refIds": { - "items": { - "type": "string" - }, - "type": "array", - "title": "Refids" + "dateRange": { + "$ref": "#/components/schemas/DateRangeFilter" }, - "linkedAccRefs": { + "accounts": { "items": { "type": "string" }, "type": "array", - "title": "Linkedaccrefs" - }, - "additionalInfo": { - "additionalProperties": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "integer" - }, - { - "type": "number" - } - ] - }, - "type": "object", - "title": "Additionalinfo" + "title": "Accounts" + } + }, + "type": "object", + "title": "CreateInsightsFilters" + }, + "DateRangeFilter": { + "properties": { + "startDate": { + "type": "string", + "format": "date", + "title": "Startdate" }, - "filters": { - "allOf": [ + "endDate": { + "type": "string", + "format": "date", + "title": "Enddate" + } + }, + "type": "object", + "required": [ + "startDate", + "endDate" + ], + "title": "DateRangeFilter" + }, + "DepositData": { + "properties": { + "account": { + "$ref": "#/components/schemas/amon_amarth__schema__rebit__deposit__Account" + } + }, + "type": "object", + "required": [ + "account" + ], + "title": "DepositData" + }, + "ETFData": { + "properties": { + "account": { + "anyOf": [ { - "$ref": "#/components/schemas/CreateInsightsFilters" + "$ref": "#/components/schemas/amon_amarth__schema__rebit__etf__Account" + }, + { + "$ref": "#/components/schemas/AccountTS" } ], - "title": "Filters for PFM", - "default": {} + "title": "Account" } }, "type": "object", "required": [ - "templateId" + "account" ], - "title": "Body_process_insights_v2_insight_post" + "title": "ETFData" }, - "Body_process_pdf_insights_v1_insight_pdf_post": { + "EquitiesData": { "properties": { - "templateId": { - "type": "string", - "title": "Template ID for which insights are needed" - }, - "applicantName": { + "account": { + "$ref": "#/components/schemas/amon_amarth__schema__rebit__equities__Account" + } + }, + "type": "object", + "required": [ + "account" + ], + "title": "EquitiesData" + }, + "EquityCategory": { + "type": "string", + "enum": [ + "EQUITY" + ], + "title": "EquityCategory", + "description": "An enumeration." + }, + "ErrorResponse": { + "properties": { + "errorCode": { "type": "string", - "title": "Applicant Name for associated PDF" + "title": "Errorcode" }, - "applicantType": { + "errorMsg": { "type": "string", - "title": "Applicant Type for associated PDF", - "default": "retail" + "title": "Errormsg" }, - "bankCode": { + "timestamp": { "type": "string", - "title": "Bank Code for associated PDF", - "default": "" + "format": "date-time", + "title": "Timestamp" }, - "bankName": { + "ver": { "type": "string", - "title": "Bank Name for associated PDF", - "default": "" + "title": "Ver", + "default": "1" }, - "password": { + "txnid": { "type": "string", - "title": "Password for associated PDF", + "title": "Txnid", "default": "" - }, - "dataFile": { - "type": "string", - "format": "binary", - "title": "PDF Bank Statement", - "description": "Upload the pdf-file to process" } }, "type": "object", "required": [ - "templateId", - "applicantName", - "dataFile" + "errorCode", + "errorMsg" ], - "title": "Body_process_pdf_insights_v1_insight_pdf_post" + "title": "ErrorResponse" }, - "Body_retry_report_v1_retry_post": { + "FIData": { + "anyOf": [ + { + "$ref": "#/components/schemas/DepositData" + }, + { + "$ref": "#/components/schemas/MutualFundsData" + }, + { + "$ref": "#/components/schemas/EquitiesData" + }, + { + "$ref": "#/components/schemas/ETFData" + } + ], + "title": "FIData" + }, + "FIDataBlockCreateResponse": { "properties": { - "reportId": { + "status": { "type": "string", - "title": "Report ID which needs to be re-processed" + "title": "Status", + "default": "Success" + }, + "statusDescription": { + "type": "string", + "title": "Statusdescription" + }, + "body": { + "$ref": "#/components/schemas/FIDataBlockResponse" } }, "type": "object", "required": [ - "reportId" + "body" ], - "title": "Body_retry_report_v1_retry_post" + "title": "FIDataBlockCreateResponse" }, - "Body_update_fi_data_v1_fiData_put": { + "FIDataBlockResponse": { "properties": { - "dataIds": { - "items": { - "type": "string" - }, - "type": "array", - "title": "List of data blocks to process" + "dataId": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "string" + } + ], + "title": "Dataid" }, "refId": { "type": "string", "title": "Refid" + }, + "fiSchema": { + "type": "string", + "title": "Fischema" + }, + "expiryDate": { + "type": "string", + "format": "date-time", + "title": "Expirydate" } }, "type": "object", "required": [ - "refId" - ], - "title": "Body_update_fi_data_v1_fiData_put" - }, - "CategorisationMode": { - "type": "string", - "enum": [ - "STRICT", - "STRICT_W_SALARY", - "KW_INCLUSIVE", - "INCLUSIVE" + "fiSchema" ], - "title": "CategorisationMode", - "description": "An enumeration." + "title": "FIDataBlockResponse" }, - "Category": { - "type": "string", - "enum": [ - "Cash Deposit", - "Cash Withdrawal", - "Bounced Cheque", - "Salary", - "Salary Paid", - "Bank Charges", - "Credit Card", - "Dividend", - "Education", - "Entertainment", - "Food & Drinks", - "Health", - "Investments", - "Jewellery", - "Loan", - "Pension", - "Reimbursement", - "Shopping", - "Sports", - "Subsidy", - "Tax", - "Travel and Transport", - "Utility Payments", - "Others", - "Gifts, Celebrations", - "Charity", - "Business Expense", - "Interest", - "Transfer", - "Transfer to Individual", - "Cash Withdrawals", - "Rent", - "Vehicle", - "Groceries", - "Transportation", - "Insurance", - "Refunds", - "Professional Services", - "Counseling", - "Donations", - "Fines", - "Bounced I/W Cheque", - "Bounced O/W Cheque", - "Bonus", - "Business Income", - "Bill", - "Gaming", - "Other Bank Charge", - "Fund Transfer", - "Account Verification", - "Self Transfer" - ], - "title": "Category", - "description": "An enumeration." + "FIDataList": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/components/schemas/DepositData" + }, + { + "$ref": "#/components/schemas/MutualFundsData" + }, + { + "$ref": "#/components/schemas/EquitiesData" + }, + { + "$ref": "#/components/schemas/ETFData" + } + ] + }, + "title": "FIDataList" }, - "CompoundMasterRequest": { + "FIUConfig": { "properties": { - "fiu_id": { + "fiuId": { "type": "string", - "format": "uuid", - "title": "Fiu Id" + "title": "Fiuid" }, - "name": { + "notificationEndpoint": { "type": "string", - "title": "Name" + "title": "Notificationendpoint" }, - "formula": { + "webhookId": { "type": "string", - "title": "Formula" + "title": "Webhookid" }, - "ref_key": { + "expiryDelta": { + "type": "integer", + "title": "Expirydelta", + "default": 30 + }, + "bertSalaryEnabled": { + "type": "boolean", + "title": "Bertsalaryenabled", + "default": true + }, + "account_ids_path": { "type": "string", - "title": "Ref Key" + "title": "Account Ids Path" }, - "description": { + "webhookAuthMechanism": { "type": "string", - "title": "Description" + "title": "Webhookauthmechanism", + "default": "None" }, - "req_insights": { - "items": { - "type": "string" - }, - "type": "array", - "title": "Req Insights" + "webhookAuthParams": { + "type": "object", + "title": "Webhookauthparams", + "default": {} }, - "insight": { - "type": "string", - "title": "Insight" + "isVLLMInferenceEnabled": { + "type": "boolean", + "title": "Isvllminferenceenabled", + "default": false + }, + "transactionTTLDays": { + "type": "integer", + "title": "Transactionttldays" } }, "type": "object", "required": [ - "formula", - "ref_key", - "req_insights", - "insight" + "fiuId", + "notificationEndpoint", + "account_ids_path" ], - "title": "CompoundMasterRequest" + "title": "FIUConfig" }, - "CreateInsightsFilters": { + "HTTPValidationError": { "properties": { - "dateRange": { - "$ref": "#/components/schemas/DateRangeFilter" - }, - "accounts": { + "detail": { "items": { - "type": "string" + "$ref": "#/components/schemas/ValidationError" }, "type": "array", - "title": "Accounts" + "title": "Detail" } }, "type": "object", - "title": "CreateInsightsFilters" + "title": "HTTPValidationError" }, - "DateRangeFilter": { + "HoldersType": { + "type": "string", + "enum": [ + "SINGLE", + "JOINT", + "PROPRIETOR", + "OTHERS" + ], + "title": "HoldersType", + "description": "An enumeration." + }, + "InsightGetResponse": { "properties": { - "startDate": { + "status": { "type": "string", - "format": "date", - "title": "Startdate" + "title": "Status", + "default": "Success" }, - "endDate": { + "statusDescription": { "type": "string", - "format": "date", - "title": "Enddate" + "title": "Statusdescription" + }, + "body": { + "type": "object", + "title": "Body" } }, "type": "object", "required": [ - "startDate", - "endDate" + "body" ], - "title": "DateRangeFilter" + "title": "InsightGetResponse" }, - "DepositData": { + "InsightMap": { "properties": { - "account": { - "$ref": "#/components/schemas/amon_amarth__schema__rebit__deposit__Account" + "ref_key": { + "type": "string", + "title": "Ref Key" + }, + "title": { + "type": "string", + "title": "Title" + }, + "description": { + "type": "string", + "title": "Description" + }, + "params": { + "$ref": "#/components/schemas/InsightParam" + }, + "insight": { + "type": "string", + "title": "Insight" } }, "type": "object", "required": [ - "account" + "ref_key", + "title", + "params", + "insight" ], - "title": "DepositData" + "title": "InsightMap" }, - "ETFData": { + "InsightMaster": { "properties": { - "account": { - "anyOf": [ - { - "$ref": "#/components/schemas/amon_amarth__schema__rebit__etf__Account" - }, - { - "$ref": "#/components/schemas/AccountTS" - } - ], - "title": "Account" + "insightId": { + "type": "string", + "format": "uuid", + "title": "Insightid" + }, + "name": { + "type": "string", + "title": "Name" + }, + "title": { + "type": "string", + "title": "Title" + }, + "description": { + "type": "string", + "title": "Description" } }, "type": "object", "required": [ - "account" + "insightId", + "name", + "title" ], - "title": "ETFData" + "title": "InsightMaster" }, - "EquitiesData": { + "InsightMasterGetResponse": { "properties": { - "account": { - "$ref": "#/components/schemas/amon_amarth__schema__rebit__equities__Account" + "status": { + "type": "string", + "title": "Status", + "default": "Success" + }, + "statusDescription": { + "type": "string", + "title": "Statusdescription" + }, + "body": { + "items": { + "$ref": "#/components/schemas/InsightMaster" + }, + "type": "array", + "title": "Body" } }, "type": "object", "required": [ - "account" - ], - "title": "EquitiesData" - }, - "EquityCategory": { - "type": "string", - "enum": [ - "EQUITY" + "body" ], - "title": "EquityCategory", - "description": "An enumeration." + "title": "InsightMasterGetResponse" }, - "ErrorResponse": { + "InsightParam": { "properties": { - "errorCode": { + "refKey": { "type": "string", - "title": "Errorcode" + "title": "Refkey" }, - "errorMsg": { - "type": "string", - "title": "Errormsg" + "lastNMonths": { + "type": "integer", + "title": "Lastnmonths" }, - "timestamp": { - "type": "string", - "format": "date-time", - "title": "Timestamp" + "offsetMonths": { + "type": "integer", + "title": "Offsetmonths", + "default": 0 }, - "ver": { + "aggregateFunction": { + "$ref": "#/components/schemas/AggregationFunctions" + }, + "transactionType": { + "$ref": "#/components/schemas/amon_amarth__schema__rebit__deposit__TransactionType" + }, + "transactionMode": { + "$ref": "#/components/schemas/TransactionMode" + }, + "transactionCategory": { + "$ref": "#/components/schemas/Category" + }, + "startDate": { "type": "string", - "title": "Ver", - "default": "1" + "format": "date", + "title": "Startdate" }, - "txnid": { + "endDate": { "type": "string", - "title": "Txnid", - "default": "" + "format": "date", + "title": "Enddate" } }, "type": "object", - "required": [ - "errorCode", - "errorMsg" - ], - "title": "ErrorResponse" + "title": "InsightParam" }, - "FIData": { - "anyOf": [ - { - "$ref": "#/components/schemas/DepositData" + "InsightListDepositTransactionsRequest": { + "type": "object", + "properties": { + "limit": { + "type": "integer", + "maximum": 500 }, - { - "$ref": "#/components/schemas/MutualFundsData" + "offset": { + "type": "integer" }, - { - "$ref": "#/components/schemas/EquitiesData" + "refIds": { + "type": "array", + "items": { + "type": "string" + } }, - { - "$ref": "#/components/schemas/ETFData" + "orderBy": { + "type": "array", + "items": { + "type": "object", + "properties": { + "field": { + "type": "string", + "enum": [ + "ref_id", + "data_id", + "linked_acc_ref", + "product_account_id", + "txn_id", + "txn_mode", + "txn_type", + "txn_timestamp", + "txn_value_date", + "narration", + "amount", + "current_balance", + "reference", + "category_l1", + "category_l2", + "category_manual" + ] + }, + "order": { + "type": "string", + "enum": [ + "asc", + "desc" + ] + } + }, + "required": [ + "field", + "order" + ] + } + }, + "where": { + "type": "array", + "items": { + "type": "object", + "properties": { + "txnId": { + "type": "string" + }, + "txnType": { + "type": "string" + }, + "txnMode": { + "type": "string" + }, + "txnTimestamp": { + "type": "string", + "format": "date-time" + }, + "txnValueDate": { + "type": "string", + "format": "date-time" + }, + "narration": { + "type": "string" + }, + "amount": { + "type": "number", + "minimum": 0.0 + }, + "currentBalance": { + "type": "number", + "minimum": 0.0 + }, + "reference": { + "type": "string" + }, + "transactionMode": { + "type": "string" + }, + "counterparty": { + "type": "string" + }, + "categoryL1": { + "type": "string" + }, + "categoryL2": { + "type": "string" + }, + "categoryManual": { + "type": "string" + }, + "amount_gte": { + "type": "number", + "minimum": 0.0 + }, + "amount_lte": { + "type": "number", + "minimum": 0.0 + }, + "txnTimestamp_gte": { + "type": "string", + "format": "date-time" + }, + "txnTimestamp_lte": { + "type": "string", + "format": "date-time" + }, + "categoryL1_list": { + "type": "array", + "items": { + "type": "string" + } + }, + "categoryL2_list": { + "type": "array", + "items": { + "type": "string" + } + }, + "categoryManual_list": { + "type": "array", + "items": { + "type": "string" + } + } + } + } } - ], - "title": "FIData" + } }, - "FIDataBlockCreateResponse": { + "InsightListDepositTransactionsResponse": { "properties": { - "status": { - "type": "string", - "title": "Status", - "default": "Success" + "totalCount": { + "type": "integer" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "refId": { + "type": "string" + }, + "dataId": { + "type": "string" + }, + "consentId": { + "type": "string" + }, + "linkedAccRef": { + "type": "string" + }, + "fipId": { + "type": "string" + }, + "txnId": { + "type": "string" + }, + "txnType": { + "type": "string" + }, + "txnMode": { + "type": "string" + }, + "txnTimestamp": { + "type": "string", + "format": "date-time" + }, + "txnValueDate": { + "type": "string", + "format": "date-time" + }, + "narration": { + "type": "string" + }, + "reference": { + "type": "string" + }, + "transactionMode": { + "type": "string" + }, + "counterparty": { + "type": "string" + }, + "categoryL1": { + "type": "string" + }, + "categoryL2": { + "type": "string" + }, + "categoryManual": { + "type": "string" + }, + "amount": { + "type": "number", + "format": "float" + }, + "currentBalance": { + "type": "number", + "format": "float" + } + } + } + } + } + }, + "InsightListEquitiesTransactionsRequest": { + "type": "object", + "properties": { + "refIds": { + "type": "array", + "items": { + "type": "string" + }, + "description": "List of reference IDs to filter transactions" + }, + "where": { + "type": "array", + "items": { + "type": "object", + "properties": { + "txnId": { + "type": "string" + }, + "txnType": { + "type": "string" + }, + "txnDateTime": { + "type": "string", + "format": "date-time" + }, + "orderId": { + "type": "string" + }, + "exchange": { + "type": "string" + }, + "isin": { + "type": "string" + }, + "isinDescription": { + "type": "string" + }, + "companyName": { + "type": "string" + }, + "equityCategory": { + "type": "string" + }, + "narration": { + "type": "string" + }, + "dematId": { + "type": "string" + }, + "units": { + "type": "number", + "minimum": 0.0 + }, + "units_gte": { + "type": "number", + "minimum": 0.0 + }, + "units_lte": { + "type": "number", + "minimum": 0.0 + }, + "exchangeRate": { + "type": "number", + "minimum": 0.0 + }, + "exchangeRate_gte": { + "type": "number", + "minimum": 0.0 + }, + "exchangeRate_lte": { + "type": "number", + "minimum": 0.0 + }, + "transactionDateTime_gte": { + "type": "string", + "format": "date-time" + }, + "transactionDateTime_lte": { + "type": "string", + "format": "date-time" + } + }, + "additionalProperties": false + }, + "description": "Filter conditions for the query" }, - "statusDescription": { - "type": "string", - "title": "Statusdescription" + "orderBy": { + "type": "array", + "items": { + "type": "object", + "properties": { + "field": { + "type": "string", + "enum": [ + "id", + "ref_id", + "data_id", + "consent_id", + "linked_acc_ref", + "product_account_id", + "fip_id", + "txn_id", + "order_id", + "company_name", + "transaction_date_time", + "exchange", + "isin", + "isin_description", + "equity_category", + "narration", + "exchange_rate", + "units", + "type", + "demat_id" + ], + "description": "Field to sort by (must be one of the allowed fields)" + }, + "order": { + "type": "string", + "enum": [ + "asc", + "desc" + ], + "description": "Sort order (ascending or descending)" + } + }, + "required": [ + "field", + "order" + ], + "additionalProperties": false + }, + "description": "Sorting criteria for the results" }, - "body": { - "$ref": "#/components/schemas/FIDataBlockResponse" + "limit": { + "type": "integer", + "description": "Maximum number of records to return", + "maximum": 500 + }, + "offset": { + "type": "integer", + "description": "Number of records to skip for pagination" } - }, - "type": "object", - "required": [ - "body" - ], - "title": "FIDataBlockCreateResponse" + } }, - "FIDataBlockResponse": { + "InsightListEquitiesTransactionsResponse": { + "type": "object", "properties": { - "dataId": { - "anyOf": [ - { - "type": "string", - "format": "uuid" - }, - { - "type": "string" - } - ], - "title": "Dataid" - }, - "refId": { - "type": "string", - "title": "Refid" - }, - "fiSchema": { - "type": "string", - "title": "Fischema" + "totalCount": { + "type": "integer" }, - "expiryDate": { - "type": "string", - "format": "date-time", - "title": "Expirydate" + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "refId": { + "type": "string" + }, + "dataId": { + "type": "string" + }, + "consentId": { + "type": "string" + }, + "linkedAccRef": { + "type": "string" + }, + "fipId": { + "type": "string" + }, + "txnId": { + "type": "string" + }, + "txnType": { + "type": "string" + }, + "txnDateTime": { + "type": "string", + "format": "date-time" + }, + "orderId": { + "type": "string" + }, + "exchange": { + "type": "string" + }, + "isin": { + "type": "string" + }, + "isinDescription": { + "type": "string" + }, + "companyName": { + "type": "string" + }, + "equityCategory": { + "type": "string" + }, + "narration": { + "type": "string" + }, + "exchangeRate": { + "type": "number" + }, + "units": { + "type": "number" + }, + "dematId": { + "type": "string" + } + } + }, + "description": "Array of equity transaction objects" } - }, - "type": "object", - "required": [ - "fiSchema" - ], - "title": "FIDataBlockResponse" - }, - "FIDataList": { - "type": "array", - "items": { - "anyOf": [ - { - "$ref": "#/components/schemas/DepositData" - }, - { - "$ref": "#/components/schemas/MutualFundsData" - }, - { - "$ref": "#/components/schemas/EquitiesData" + } }, - { - "$ref": "#/components/schemas/ETFData" - } - ] - }, - "title": "FIDataList" -}, - "FIUConfig": { + "InsightListETFTransactionsRequest": { + "type": "object", "properties": { - "fiuId": { - "type": "string", - "title": "Fiuid" - }, - "notificationEndpoint": { - "type": "string", - "title": "Notificationendpoint" - }, - "webhookId": { - "type": "string", - "title": "Webhookid" - }, - "expiryDelta": { + "limit": { "type": "integer", - "title": "Expirydelta", - "default": 30 - }, - "bertSalaryEnabled": { - "type": "boolean", - "title": "Bertsalaryenabled", - "default": true - }, - "account_ids_path": { - "type": "string", - "title": "Account Ids Path" - }, - "webhookAuthMechanism": { - "type": "string", - "title": "Webhookauthmechanism", - "default": "None" + "maximum": 500 }, - "webhookAuthParams": { - "type": "object", - "title": "Webhookauthparams", - "default": {} + "offset": { + "type": "integer" }, - "isVLLMInferenceEnabled": { - "type": "boolean", - "title": "Isvllminferenceenabled", - "default": false + "refIds": { + "type": "array", + "items": { + "type": "string" + } }, - "transactionTTLDays": { - "type": "integer", - "title": "Transactionttldays" - } - }, - "type": "object", - "required": [ - "fiuId", - "notificationEndpoint", - "account_ids_path" - ], - "title": "FIUConfig" - }, - "HTTPValidationError": { - "properties": { - "detail": { + "orderBy": { + "type": "array", "items": { - "$ref": "#/components/schemas/ValidationError" - }, + "type": "object", + "properties": { + "field": { + "type": "string", + "enum": [ + "id", + "ref_id", + "data_id", + "consent_id", + "linked_acc_ref", + "product_account_id", + "fip_id", + "txn_id", + "transaction_date_time", + "broker_code", + "isin", + "isin_description", + "nav", + "narration", + "amount", + "units", + "txn_type", + "demat_id" + ] + }, + "order": { + "type": "string", + "enum": [ + "asc", + "desc" + ] + } + }, + "required": [ + "field", + "order" + ] + } + }, + "where": { "type": "array", - "title": "Detail" + "items": { + "type": "object", + "properties": { + "amount": { + "type": "number", + "minimum": 0.0 + }, + "amount_gte": { + "type": "number", + "minimum": 0.0 + }, + "amount_lte": { + "type": "number", + "minimum": 0.0 + }, + "brokerCode": { + "type": "string" + }, + "dematId": { + "type": "string" + }, + "isin": { + "type": "string" + }, + "isinDescription": { + "type": "string" + }, + "narration": { + "type": "string" + }, + "nav": { + "type": "number", + "minimum": 0.0 + }, + "nav_gte": { + "type": "number", + "minimum": 0.0 + }, + "nav_lte": { + "type": "number", + "minimum": 0.0 + }, + "transactionDateTime": { + "type": "string", + "format": "date-time" + }, + "transactionDateTime_gte": { + "type": "string", + "format": "date-time" + }, + "transactionDateTime_lte": { + "type": "string", + "format": "date-time" + }, + "txnId": { + "type": "string" + }, + "txnType": { + "type": "string" + }, + "units": { + "type": "number", + "minimum": 0.0 + }, + "units_gte": { + "type": "number", + "minimum": 0.0 + }, + "units_lte": { + "type": "number", + "minimum": 0.0 + } + } + } } - }, - "type": "object", - "title": "HTTPValidationError" - }, - "HoldersType": { - "type": "string", - "enum": [ - "SINGLE", - "JOINT", - "PROPRIETOR", - "OTHERS" - ], - "title": "HoldersType", - "description": "An enumeration." + } }, - "InsightGetResponse": { + "InsightListETFTransactionsResponse": { + "type": "object", "properties": { - "status": { - "type": "string", - "title": "Status", - "default": "Success" + "totalCount": { + "type": "integer" }, - "statusDescription": { - "type": "string", - "title": "Statusdescription" - }, - "body": { - "type": "object", - "title": "Body" + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "refId": { + "type": "string" + }, + "dataId": { + "type": "string" + }, + "consentId": { + "type": "string" + }, + "linkedAccRef": { + "type": "string" + }, + "fipId": { + "type": "string" + }, + "txnId": { + "type": "string" + }, + "txnType": { + "type": "string" + }, + "transactionDateTime": { + "type": "string", + "format": "date-time" + }, + "brokerCode": { + "type": "string" + }, + "isin": { + "type": "string" + }, + "isinDescription": { + "type": "string" + }, + "narration": { + "type": "string" + }, + "nav": { + "type": "number" + }, + "amount": { + "type": "number" + }, + "units": { + "type": "number" + }, + "dematId": { + "type": "string" + } + } + }, + "description": "Array of ETF transaction objects" } - }, - "type": "object", - "required": [ - "body" - ], - "title": "InsightGetResponse" + } }, - "InsightMap": { + "InsightListMutualFundsTransactionsRequest": { + "type": "object", "properties": { - "ref_key": { - "type": "string", - "title": "Ref Key" + "limit": { + "type": "integer", + "maximum": 500 }, - "title": { - "type": "string", - "title": "Title" + "offset": { + "type": "integer" }, - "description": { - "type": "string", - "title": "Description" + "refIds": { + "type": "array", + "items": { + "type": "string" + } }, - "params": { - "$ref": "#/components/schemas/InsightParam" + "orderBy": { + "type": "array", + "items": { + "type": "object", + "properties": { + "field": { + "type": "string", + "enum": [ + "id", + "ref_id", + "data_id", + "consent_id", + "linked_acc_ref", + "product_account_id", + "fip_id", + "txn_id", + "txn_mode", + "txn_type", + "txn_date", + "amc", + "registrar", + "scheme_code", + "scheme_plan", + "isin", + "isin_description", + "amfi_code", + "ucc", + "amount", + "nav_date", + "lock_in_flag", + "lock_in_days", + "narration", + "units", + "amc_full_name", + "mutual_fund_name" + ] + }, + "order": { + "type": "string", + "enum": [ + "asc", + "desc" + ] + } + }, + "required": [ + "field", + "order" + ] + } }, - "insight": { - "type": "string", - "title": "Insight" + "where": { + "type": "array", + "items": { + "type": "object", + "properties": { + "txnId": { + "type": "string" + }, + "txnType": { + "type": "string" + }, + "txnDate": { + "type": "string", + "format": "date" + }, + "txnMode": { + "type": "string" + }, + "amc": { + "type": "string" + }, + "registrar": { + "type": "string" + }, + "schemeCode": { + "type": "string" + }, + "schemePlan": { + "type": "string" + }, + "isin": { + "type": "string" + }, + "isinDescription": { + "type": "string" + }, + "amfiCode": { + "type": "string" + }, + "ucc": { + "type": "string" + }, + "navDate": { + "type": "string", + "format": "date" + }, + "lockInFlag": { + "type": "string" + }, + "lockInDays": { + "type": "string" + }, + "narration": { + "type": "string" + }, + "amcFullName": { + "type": "string" + }, + "mutualFundName": { + "type": "string" + }, + "amount": { + "type": "number", + "minimum": 0 + }, + "amount_gte": { + "type": "number", + "minimum": 0 + }, + "amount_lte": { + "type": "number", + "minimum": 0 + }, + "units": { + "type": "number", + "minimum": 0 + }, + "units_gte": { + "type": "number", + "minimum": 0 + }, + "units_lte": { + "type": "number", + "minimum": 0 + }, + "nav": { + "type": "number", + "minimum": 0 + }, + "nav_gte": { + "type": "number", + "minimum": 0 + }, + "nav_lte": { + "type": "number", + "minimum": 0 + }, + "txnDate_gte": { + "type": "string", + "format": "date" + }, + "txnDate_lte": { + "type": "string", + "format": "date" + } + } + } } - }, - "type": "object", - "required": [ - "ref_key", - "title", - "params", - "insight" - ], - "title": "InsightMap" + } }, - "InsightMaster": { - "properties": { - "insightId": { - "type": "string", - "format": "uuid", - "title": "Insightid" - }, - "name": { - "type": "string", - "title": "Name" - }, - "title": { - "type": "string", - "title": "Title" - }, - "description": { - "type": "string", - "title": "Description" - } - }, + "InsightListMutualFundsTransactionsResponse": { "type": "object", - "required": [ - "insightId", - "name", - "title" - ], - "title": "InsightMaster" - }, - "InsightMasterGetResponse": { "properties": { - "status": { - "type": "string", - "title": "Status", - "default": "Success" - }, - "statusDescription": { - "type": "string", - "title": "Statusdescription" + "totalCount": { + "type": "integer", + "description": "Total number of equity transactions matching the filter" }, - "body": { - "items": { - "$ref": "#/components/schemas/InsightMaster" - }, + "data": { "type": "array", - "title": "Body" + "items": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "refId": { + "type": "string" + }, + "dataId": { + "type": "string" + }, + "consentId": { + "type": "string" + }, + "linkedAccRef": { + "type": "string" + }, + "fipId": { + "type": "string" + }, + "txnId": { + "type": "string" + }, + "txnType": { + "type": "string" + }, + "txnDate": { + "type": "string", + "format": "date-time" + }, + "txnMode": { + "type": "string" + }, + "amc": { + "type": "string" + }, + "registrar": { + "type": "string" + }, + "schemeCode": { + "type": "string" + }, + "schemePlan": { + "type": "string" + }, + "isin": { + "type": "string" + }, + "isinDescription": { + "type": "string" + }, + "amfiCode": { + "type": "string" + }, + "ucc": { + "type": "string" + }, + "nav": { + "type": "number" + }, + "amount": { + "type": "number" + }, + "navDate": { + "type": "string", + "format": "date-time" + }, + "lockInFlag": { + "type": "string" + }, + "lockInDays": { + "type": "string" + }, + "narration": { + "type": "string" + }, + "units": { + "type": "number" + }, + "amcFullName": { + "type": "string" + }, + "mutualFundName": { + "type": "string" + } + } + } } - }, - "type": "object", - "required": [ - "body" - ], - "title": "InsightMasterGetResponse" + } }, - "InsightParam": { + "InsightTransactionServiceBadRequest": { + "type": "object", "properties": { - "refKey": { - "type": "string", - "title": "Refkey" - }, - "lastNMonths": { - "type": "integer", - "title": "Lastnmonths" - }, - "offsetMonths": { - "type": "integer", - "title": "Offsetmonths", - "default": 0 - }, - "aggregateFunction": { - "$ref": "#/components/schemas/AggregationFunctions" - }, - "transactionType": { - "$ref": "#/components/schemas/amon_amarth__schema__rebit__deposit__TransactionType" - }, - "transactionMode": { - "$ref": "#/components/schemas/TransactionMode" - }, - "transactionCategory": { - "$ref": "#/components/schemas/Category" - }, - "startDate": { - "type": "string", - "format": "date", - "title": "Startdate" - }, - "endDate": { - "type": "string", - "format": "date", - "title": "Enddate" + "message": { + "type": "string" } - }, + } + }, + "InsightTransactionServiceUnauthorized": { "type": "object", - "title": "InsightParam" + "properties": { + "message": { + "type": "string" + } + } }, "KeywordMap": { "properties": {