> 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/fixed-deposit-account/search-fixed-deposit-account.md).

# Search Fixed Deposit Account

To search for an existing fixed deposit account, you need to make a GET request to the specified endpoint:

<mark style="color:green;">`GET`</mark> `/api/FixedDepositAccount/v1/Search`\
\
This process allows you to retrieve information about existing fixed deposit accounts based on specific search parameters.

\
A successful request will return the details of the fixed deposit account that matches the search criteria.

**Headers**

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

**Query Parameter**

<table><thead><tr><th width="196">Name</th><th width="177">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 unique number identifying the account</td><td></td></tr><tr><td><code>customerID</code></td><td>string</td><td>The unique identifier of the customer associated with the account</td><td></td></tr><tr><td><code>accountName</code></td><td>string</td><td>The name associated with the account</td><td></td></tr><tr><td><code>productCode</code></td><td>string</td><td>The code of the product associated with the account</td><td></td></tr><tr><td><code>accountOfficerCode</code></td><td>string</td><td>The code of the account officer managing the account</td><td></td></tr><tr><td><code>accountStatus</code></td><td>string</td><td>The current status of the account (e.g., Active, Inactive)</td><td></td></tr><tr><td><code>hasDisbursed</code></td><td>boolean</td><td>Indicates whether funds have been disbursed from the account using <code>true</code> or <code>false</code></td><td></td></tr><tr><td><code>startDate</code></td><td>date</td><td>The start date of the account activity</td><td></td></tr><tr><td><code>endDate</code></td><td>date</td><td>The end date of the account activity</td><td></td></tr><tr><td><code>pageNumber</code></td><td>integer</td><td>The current page number for pagination</td><td></td></tr><tr><td><code>pageSize</code></td><td>integer</td><td>The number of records per page</td><td></td></tr><tr><td><code>sortColumn</code></td><td>string</td><td>The column by which the results are sorted</td><td></td></tr><tr><td><code>direction</code></td><td>string</td><td>The direction of the sort (e.g., ascending or  descending)</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/FixedDepositAccount/v1/Search?AccountNumber=1000002993&CustomerID=001&AccountName=Test&ProductCode=001&AccountOfficerCode=003&AccountStatus=Active&HasDisbursed=true&StartDate=2022-01-01&EndDate=2022-03-04&PageNumber=1&PageSize=10&SortColumn=DateCreated&Direction=asc' \
--header 'Authorization: bearer {token}' \
--header 'request-reference: {unique_reference}' \
--header 'Content-Type: application/json' \
--data ''
```

</details>

<details>

<summary>Response: <code>200</code></summary>

```json
{
  "status": true,
  "message": "string",
  "data": {
    "data": [
      {
        "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
        "accountNumber": "string",
        "name": "string",
        "productCode": "string",
        "productName": "string",
        "accountOfficerName": "string",
        "branchCode": "string",
        "branchName": "string",
        "ledgerBalance": 0,
        "accruedInterest": 0,
        "customerID": "string",
        "liquidationAccountType": "string",
        "liquidationAccount": "string",
        "referenceNumber": "string",
        "accountStatus": "string",
        "enableEmailNotification": true,
        "enableSMSNotification": true,
        "principalAmount": 0,
        "tenure": 0,
        "commencementDate": "2023-01-29T15:03:06.912Z",
        "maturityDate": "2023-01-29T15:03:06.912Z",
        "useProductInterestRate": true,
        "applicableInterestID": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
        "applicableInterestCode": "string",
        "applicableInterestRate": 0,
        "partLiquidationCharge": 0,
        "holdFundAtMaturity": true,
        "applyRollover": true,
        "rolloverOption": "string",
        "hasDisbursed": true,
        "dateCreated": "2023-01-29T15:03:06.912Z",
        "dateLastModified": "2023-01-29T15:03:06.912Z",
        "mandateRuleIndex": "string",
        "isGroupAccount": true,
        "linkedAccountName": "string",
        "linkedAccountProductName": "string",
        "linkedAccountLedgerBalance": "string",
        "linkedAccountAvailableBalance": "string",
        "linkedAccountBranch": "string",
        "linkedAccountStatus": "string",
        "pocketName": "string",
        "rolloverCount": 0
      }
    ],
    "recordCount": 0
  }
}
```

</details>
