> For the complete documentation index, see [llms.txt](https://docs.udara360.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.udara360.io/udara360-docs-1/reports/report-api/customer-account-statement.md).

# 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>
