# Get History of Bank Statements

<mark style="color:blue;">`GET`</mark> `https://us-central1-appgregator.cloudfunctions.net/jurnalID/accounts/:id/bank_statements/`

#### Headers

| Name                                        | Type   | Description |
| ------------------------------------------- | ------ | ----------- |
| x-api-key<mark style="color:red;">\*</mark> | String | U2Fsd...    |

{% tabs %}
{% tab title="200: OK Success" %}
```javascript
{
    "header": {
        "id": 61810308,
        "bank": {
            "name": "",
            "account_no": ""
        },
        "name": "Cash",
        "number": "1-10001"
    },
    "bank_statements": []
}
```
{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="cURL" %}
```shell
curl --location --request GET 'https://us-central1-appgregator.cloudfunctions.net/jurnalID/accounts/61810308/bank_statements?name=ft-4&connection_name=intrapreneur-jurnalid-1' \
--header 'x-api-key: U2Fsd...'
```
{% endtab %}

{% tab title="NodeJs - Axios" %}
```javascript
var axios = require('axios');

var config = {
  method: 'get',
  url: 'https://us-central1-appgregator.cloudfunctions.net/jurnalID/accounts/61810308/bank_statements?name=ft-4&connection_name=intrapreneur-jurnalid-1',
  headers: { 
    'x-api-key': 'U2Fsd...'
  }
};

axios(config)
.then(function (response) {
  console.log(JSON.stringify(response.data));
})
.catch(function (error) {
  console.log(error);
});

```
{% endtab %}

{% tab title="PHP - cURL" %}

{% endtab %}
{% endtabs %}
