> ## Documentation Index
> Fetch the complete documentation index at: https://developer.moneyone.in/llms.txt
> Use this file to discover all available pages before exploring further.

# Fetch Data

> Retrieve raw FI data or computed analytics for a completed PDF API upload journey.

Once the journey has reached `SUCCESSFUL` status, retrieve the data using the same
`transactionId`. You can fetch the normalized **raw FI data** or the **analytics**
computed from it.

<Note>
  All four endpoints accept both a single `transactionId` and a `transactionIds` array.
  Use the array form to merge data across multiple workflow runs into a single response.
</Note>

<Tabs>
  <Tab title="Raw FI Data — /getallfidata">
    Fetch the raw financial information extracted from the uploaded bank statements.

    ```
    POST /getallfidata
    ```

    Base URL (UAT / Production): Contact `support@moneyone.in`.

    ### Headers

    | Header | Description |
    | - | - |
    | `Content-Type` | `application/json` |
    | `client_id` | Your client ID |
    | `client_secret` | Your client secret |
    | `organisationId` | Your organisation ID |
    | `appIdentifier` | Your app identifier |

    ### Request body

    ```json theme={null}
    {
      "transactionId": "<transactionId>"
    }
    ```

    To merge data across multiple transactions:

    ```json theme={null}
    {
      "transactionIds": ["<transactionId_1>", "<transactionId_2>"]
    }
    ```

    ### Sample request

    ```bash theme={null}
    curl --request POST \
      --url 'https://<base_url>/getallfidata' \
      --header 'Content-Type: application/json' \
      --header 'client_id: <your_client_id>' \
      --header 'client_secret: <your_client_secret>' \
      --header 'organisationId: <your_organisation_id>' \
      --header 'appIdentifier: <your_app_identifier>' \
      --data '{
        "transactionId": "<transactionId>"
      }'
    ```

    ### Response

    ```json theme={null}
    {
      "ver": "1.21.0",
      "status": "success",
      "data": [
        {
          "linkReferenceNumber": "243212010002508",
          "maskedAccountNumber": "243212010002508",
          "fiType": "DEPOSIT",
          "bank": "hdfc",
          "isTampered": false,
          "dataSource": "PDF",
          "type": "PDF",
          "Profile": {
            "Holders": {
              "Holder": [
                { "name": "VAIBHAV SHUKLA", "mobile": "7307204576", "email": "vks@example.com", "pan": "" }
              ]
            }
          },
          "Summary": {
            "currentBalance": "6981.1",
            "currency": "INR",
            "balanceDateTime": "25-01-2025",
            "type": "saving",
            "ifscCode": "HDFC0001234"
          },
          "Transactions": {
            "startDate": "07-12-2024",
            "endDate": "25-01-2025",
            "Transaction": [
              {
                "type": "credit",
                "amount": "5500.0",
                "currentBalance": "5501.0",
                "transactionTimestamp": "10-12-2024",
                "valueDate": "10-12-2024",
                "narration": "SALARY DEC 2024"
              }
            ]
          }
        }
      ]
    }
    ```

    ### Error Codes

    | HTTP Status | Condition |
    | - | - |
    | `401 Unauthorized` | Credentials are missing or invalid. |
    | `500 Internal Server Error` | `transactionId` does not exist, journey has not delivered data yet, or an unexpected server error occurred. |
  </Tab>

  <Tab title="Analytics JSON — /analytics/json">
    ```
    POST /analytics/json
    ```

    Base URL (UAT / Production): Contact `support@moneyone.in`.

    ### Headers

    | Header | Description |
    | - | - |
    | `Content-Type` | `application/json` |
    | `client_id` | Your client ID |
    | `client_secret` | Your client secret |
    | `organisationId` | Your organisation ID |
    | `appIdentifier` | Your app identifier |

    ### Request body

    ```json theme={null}
    {
      "transactionId": "<transactionId>",
      "journeyId": "analytics_json_v1"
    }
    ```

    To merge analytics across multiple transactions:

    ```json theme={null}
    {
      "transactionIds": ["<transactionId_1>", "<transactionId_2>"],
      "journeyId": "analytics_json_v1"
    }
    ```

    ### Sample request

    ```bash theme={null}
    curl --request POST \
      --url 'https://<base_url>/analytics/json' \
      --header 'Content-Type: application/json' \
      --header 'client_id: <your_client_id>' \
      --header 'client_secret: <your_client_secret>' \
      --header 'organisationId: <your_organisation_id>' \
      --header 'appIdentifier: <your_app_identifier>' \
      --data '{
        "transactionId": "<transactionId>",
        "journeyId": "analytics_json_v1"
      }'
    ```

    <Note>
      The analytics output shape is configurable per product. Contact `support@moneyone.in`
      to adjust the fields and structure returned.
    </Note>

    ### Error Codes

    | HTTP Status | Condition |
    | - | - |
    | `401 Unauthorized` | Credentials are missing or invalid. |
    | `404 Not Found` | `transactionId` does not exist, or no data is available for this transaction. |
    | `500 Internal Server Error` | Analytics journey is not configured, or an unexpected server error occurred. |
  </Tab>

  <Tab title="Analytics XML — /analytics/xml">
    ```
    POST /analytics/xml
    ```

    Base URL (UAT / Production): Contact `support@moneyone.in`.

    ### Headers

    | Header | Description |
    | - | - |
    | `Content-Type` | `application/json` |
    | `client_id` | Your client ID |
    | `client_secret` | Your client secret |
    | `organisationId` | Your organisation ID |
    | `appIdentifier` | Your app identifier |

    ### Request body

    ```json theme={null}
    {
      "transactionId": "<transactionId>",
      "journeyId": "analytics_xml_v1"
    }
    ```

    To merge analytics across multiple transactions:

    ```json theme={null}
    {
      "transactionIds": ["<transactionId_1>", "<transactionId_2>"],
      "journeyId": "analytics_xml_v1"
    }
    ```

    ### Sample request

    ```bash theme={null}
    curl --request POST \
      --url 'https://<base_url>/analytics/xml' \
      --header 'Content-Type: application/json' \
      --header 'client_id: <your_client_id>' \
      --header 'client_secret: <your_client_secret>' \
      --header 'organisationId: <your_organisation_id>' \
      --header 'appIdentifier: <your_app_identifier>' \
      --data '{
        "transactionId": "<transactionId>",
        "journeyId": "analytics_xml_v1"
      }'
    ```

    ### Error Codes

    | HTTP Status | Condition |
    | - | - |
    | `401 Unauthorized` | Credentials are missing or invalid. |
    | `404 Not Found` | `transactionId` does not exist, or no data is available. |
    | `500 Internal Server Error` | Analytics journey is not configured, or an unexpected server error occurred. |
  </Tab>

  <Tab title="Analytics Excel — /analytics/excel">
    ```
    POST /analytics/excel
    ```

    Base URL (UAT / Production): Contact `support@moneyone.in`.

    ### Headers

    | Header | Description |
    | - | - |
    | `Content-Type` | `application/json` |
    | `client_id` | Your client ID |
    | `client_secret` | Your client secret |
    | `organisationId` | Your organisation ID |
    | `appIdentifier` | Your app identifier |

    ### Request body

    ```json theme={null}
    {
      "transactionId": "<transactionId>",
      "journeyId": "analytics_excel_v1"
    }
    ```

    To merge analytics across multiple transactions:

    ```json theme={null}
    {
      "transactionIds": ["<transactionId_1>", "<transactionId_2>"],
      "journeyId": "analytics_excel_v1"
    }
    ```

    ### Sample request

    ```bash theme={null}
    curl --request POST \
      --url 'https://<base_url>/analytics/excel' \
      --header 'Content-Type: application/json' \
      --header 'client_id: <your_client_id>' \
      --header 'client_secret: <your_client_secret>' \
      --header 'organisationId: <your_organisation_id>' \
      --header 'appIdentifier: <your_app_identifier>' \
      --data '{
        "transactionId": "<transactionId>",
        "journeyId": "analytics_excel_v1"
      }'
    ```

    ### Error Codes

    | HTTP Status | Condition |
    | - | - |
    | `401 Unauthorized` | Credentials are missing or invalid. |
    | `404 Not Found` | `transactionId` does not exist, or no data is available. |
    | `500 Internal Server Error` | Analytics journey is not configured, or an unexpected server error occurred. |
  </Tab>
</Tabs>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.