# Transaction

### Bank statement

<table><thead><tr><th width="180.33333333333331">Parameters</th><th width="178">Required</th><th>Description</th></tr></thead><tbody><tr><td>startDate</td><td>YES</td><td>Starting time range with ISO-8601 format</td></tr><tr><td>endDate</td><td>YES</td><td>Ending time range  with ISO-8601 format</td></tr></tbody></table>

{% hint style="danger" %}
**bankStatement** requires an access token as an authorization bearer. use **withTokenB2b** to use **bankStatement** metho&#x64;**.** [See detail](https://php-snap-bi.gitbook.io/docs/authentication#with-token-b2b)
{% endhint %}

```php
<?php

use Otnansirk\SnapBI\Services\SnapBi;
...

$response = SnapBi::bca()
                ->withTokenB2b()
                ->bankStatement(
                   "2023-08-22T00:00:00+07:00", 
                   "2023-08-22T00:00:00+07:00"
                );

```
