# Customer Account Statement

To retrieve a customer account statement, send a GET request to the following endpoint:\
\ <mark style="color:blue;">`GET`</mark> `/api/Report/v1/RequestCustomerAccountStatement`\
\
A successful request will return the customer's account statement with relevant information, such as the balance, transaction history, and account details.\
\
This process enables the retrieval of customer account statements, providing access to essential financial information for both customers and the organization.

**Headers**

| Name                                            | Value                |
| ----------------------------------------------- | -------------------- |
| Content-Type<mark style="color:red;">\*</mark>  | `application/json`   |
| Authorization<mark style="color:red;">\*</mark> | `Bearer <token>`     |
| Request-Reference                               | `{unique-reference}` |

**Query Parameter**

<table><thead><tr><th width="187">Name</th><th width="172">Data Type (length)</th><th>Description</th><th data-hidden>Required</th></tr></thead><tbody><tr><td><code>accountNumber</code></td><td>string</td><td>The customer's account number</td><td></td></tr><tr><td><code>financialDateFrom</code></td><td>date</td><td>Start date of financial activity</td><td></td></tr><tr><td><code>financialDateto</code></td><td>date</td><td>End date of financial activity</td><td></td></tr></tbody></table>

Here is an example request and response with a sample payload sent to the endpoint in Curl format.

<details>

<summary>Sample Request</summary>

```json
curl --location -g '{{baseurl}}/api/Report/v1/RequestCustomerAccountStatement?AccountNumber=1000029938&FinancialDateFrom=2022-01-01&FinancialDateTo=2022-03-09' \
--header 'Authorization: bearer {token}' \
--header 'request-reference: {unique_reference}' \
--header 'Content-Type: application/json' \
--data ''
```

</details>

<details>

<summary>Respose: <code>200</code></summary>

```json
{
  "status": true,
  "message": "string",
  "data": {
    "data": [
      {
        "financialDate": "string",
        "transactionDate": "2023-01-29T15:12:46.861Z",
        "accountNumber": "string",
        "postingReferenceNumber": "string",
        "debit": 0,
        "credit": 0,
        "narration": "string",
        "balance": 0
      }
    ],
    "accountNumber": "string",
    "accountName": "string",
    "address": "string",
    "passportFileUrl": "string",
    "product": "string",
    "openingBalance": 0,
    "closingBalance": 0,
    "totalCredit": 0,
    "totalDebit": 0,
    "recordCount": 0
  }
}
```

</details>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.udara360.io/udara360-docs-1/reports/report-api/customer-account-statement.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
