# Statement generation
The service provides bank statement for the specified account within the selected period.

A maximum of 1,000 transactions can be retrieved per request. If the number of transactions in the selected period exceeds this limit, additional data can be obtained by sending subsequent requests with the appropriate page parameter (using pagination).

## Query params

- `accountNumber` — string, required

  An account number.

- `currency` — string, required

  An account currency.

- `startDate` — date, required

  A start date.

- `endDate` — date, required

  An end date.

**REQUEST**

```api
GET api/v2/statement/{accountNumber}/{currency}/{startDate}/{endDate}

```

## Response

- `Id` — integer

  A unique ID.

- `Count` — integer

  A number of records.

- `TotalCount` — integer

  The total number of records in the requested period, regardless of paging.

- `Records` — object

  Records, transaction details.

  - `EntryDate` — date

    An entry date.

  - `EntryDocumentNumber` — string

    An entry document number.

  - `EntryAccountNumber` — string

    An entry account number.

  - `EntryAmountDebit` — decimal number

    An entry amount (debit).

  - `EntryAmountDebitBase` — decimal number

    A debit equivalent in GEL.

  - `EntryAmountCredit` — decimal number

    An entry amount (credit).

  - `EntryAmountCreditBase` — decimal number

    A credit equivalent in GEL.

  - `EntryAmountBase` — decimal number

    An amount equivalent in GEL.

  - `EntryAmount` — decimal number

    An entry amount.

  - `EntryComment` — string

    An entry comment, a content of the transaction.

  - `DocumentProductGroup` — string

    A transaction type, document product group.

  - `DocumentValueDate` — date

    A date of document entry in the bank system.

  - `SenderDetails` — object

    A sender info.

    - `Name` — string

      A name.

    - `Inn` — string

      An identification number.

    - `AccountNumber` — string

      An account number.

    - `BankCode` — string

      A bank code.

    - `BankName` — string

      A bank name.

  - `BeneficiaryDetails` — object

    A recipient info.

    - `Name` — string

      A name.

    - `Inn` — string

      An identification number.

    - `AccountNumber` — string

      An account number.

    - `BankCode` — string

      A bank code.

    - `BankName` — string

      A bank name.

  - `DocumentTreasuryCode` — string

    A treasury code.

  - `DocumentNomination` — string

    A reason, purpose of the transaction / 250 symbols max.

  - `DocumentInformation` — string

    An additional info.

  - `DocumentSourceAmount` — decimal number

    A starting amount.

  - `DocumentSourceCurrency` — string

    A starting currency.

  - `DocumentDestinationAmount` — decimal number

    A document destination amount.

  - `DocumentDestinationCurrency` — string

    A document destination currency.

  - `DocumentReceiveDate` — date

    A document receival date.

  - `DocumentRate` — decimal number

    A conversion rate.

  - `DocumentKey` — decimal number

    A document unique number in a bank.

  - `EntryId` — decimal number

    An entry unique ID.

  - `DocumentPayerName` — string

    A document payee name.

  - `DocumentPayerInn` — string

    A Personal Identification Number of a taxpayer individual, or an Identification Code of a legal entity. Should be filled only when a transaction is performed towards the budget on behalf of a third party (in this case an identification code of a said the third party should be filled).

  - `DocComment` — string

    An entry comment, a content of the transaction. Is concatenated from several transactional attributes. (for example: "Automatic payment, 22/12/2021 , JSC ""Insurance Company"", : Name Surname GE75BG00000000000000000GEL JSC "Bank of Georgia" BAGAGE22")

  - `AuthDate` — date

    The authorisation date of the operation.

**JSON**

```json
{
  "id": 1,
  "count": 2,
  "totalCount": 2,
  "records": [
    {
      "entryDate": "2021-06-18T16:26:53.4094325+04:00",
      "entryDocumentNumber": "sample string 1",
      "entryAccountNumber": "sample string 2",
      "entryAmountDebit": 1.0,
      "entryAmountDebitBase": 1.0,
      "entryAmountCredit": 1.0,
      "entryAmountCreditBase": 1.0,
      "entryAmountBase": 1.0,
      "entryAmount": 1.0,
      "entryComment": "sample string 3",
      "documentProductGroup": "sample string 6",
      "documentValueDate": "2021-06-18T16:26:53.4094325+04:00",
      "senderDetails": {
        "name": "sample string 1",
        "inn": "sample string 2",
        "accountNumber": "sample string 3",
        "bankCode": "sample string 4",
        "bankName": "sample string 5"
      },
      "beneficiaryDetails": {
        "name": "sample string 1",
        "inn": "sample string 2",
        "accountNumber": "sample string 3",
        "bankCode": "sample string 4",
        "bankName": "sample string 5"
      },
      "documentTreasuryCode": "sample string 7",
      "documentNomination": "sample string 8",
      "documentInformation": "sample string 9",
      "documentSourceAmount": 1.0,
      "documentSourceCurrency": "sample string 10",
      "documentDestinationAmount": 1.0,
      "documentDestinationCurrency": "sample string 11",
      "documentReceiveDate": "2021-06-18T16:26:53.4094325+04:00",
      "documentRate": 1.0,
      "documentKey": 1.0,
      "entryId": 1.0,
      "documentPayerName": "sample string 21",
      "documentPayerInn": "sample string 22",
      "authDate": "2021-06-21T10:56:19.8506404+04:00",
      "docComment": "sample string 23"
    },
    {
      "entryDate": "2021-06-18T16:26:53.4094325+04:00",
      "entryDocumentNumber": "sample string 1",
      "entryAccountNumber": "sample string 2",
      "entryAmountDebit": 1.0,
      "entryAmountDebitBase": 1.0,
      "entryAmountCredit": 1.0,
      "entryAmountCreditBase": 1.0,
      "entryAmountBase": 1.0,
      "entryAmount": 1.0,
      "entryComment": "sample string 3",
      "documentProductGroup": "sample string 6",
      "documentValueDate": "2021-06-18T16:26:53.4094325+04:00",
      "senderDetails": {
        "name": "sample string 1",
        "inn": "sample string 2",
        "accountNumber": "sample string 3",
        "bankCode": "sample string 4",
        "bankName": "sample string 5"
      },
      "beneficiaryDetails": {
        "name": "sample string 1",
        "inn": "sample string 2",
        "accountNumber": "sample string 3",
        "bankCode": "sample string 4",
        "bankName": "sample string 5"
      },
      "documentTreasuryCode": "sample string 7",
      "documentNomination": "sample string 8",
      "documentInformation": "sample string 9",
      "documentSourceAmount": 1.0,
      "documentSourceCurrency": "sample string 10",
      "documentDestinationAmount": 1.0,
      "documentDestinationCurrency": "sample string 11",
      "documentReceiveDate": "2021-06-18T16:26:53.4094325+04:00",
      "documentRate": 1.0,
      "documentKey": 1.0,
      "entryId": 1.0,
      "documentPayerName": "sample string 21",
      "documentPayerInn": "sample string 22",
      "authDate": "2021-06-21T10:56:19.8506404+04:00",
      "docComment": "sample string 23"
    }
  ]
}
```

**xml**

```xml
<Statement xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CIBApi.Models">
  <Count>2</Count>
  <TotalCount>2</TotalCount>
  <Id>1</Id>
  <Records>
    <StatementDetail>
      <AuthDate>2021-06-21T10:56:19.8506404+04:00</AuthDate>
      <BeneficiaryDetails>
        <AccountNumber>sample string 3</AccountNumber>
        <BankCode>sample string 4</BankCode>
        <BankName>sample string 5</BankName>
        <Inn>sample string 2</Inn>
        <Name>sample string 1</Name>
      </BeneficiaryDetails>
      <DocComment>sample string 23</DocComment>
      <DocumentDestinationAmount>1</DocumentDestinationAmount>
      <DocumentDestinationCurrency>sample string 11</DocumentDestinationCurrency>
      <DocumentInformation>sample string 9</DocumentInformation>
      <DocumentKey>1</DocumentKey>
      <DocumentNomination>sample string 8</DocumentNomination>
      <DocumentPayerInn>sample string 22</DocumentPayerInn>
      <DocumentPayerName>sample string 21</DocumentPayerName>
      <DocumentProductGroup>sample string 6</DocumentProductGroup>
      <DocumentRate>1</DocumentRate>
      <DocumentReceiveDate>2021-06-18T16:26:53.4094325+04:00</DocumentReceiveDate>
      <DocumentSourceAmount>1</DocumentSourceAmount>
      <DocumentSourceCurrency>sample string 10</DocumentSourceCurrency>
      <DocumentTreasuryCode>sample string 7</DocumentTreasuryCode>
      <DocumentValueDate>2021-06-18T16:26:53.4094325+04:00</DocumentValueDate>
      <EntryAccountNumber>sample string 2</EntryAccountNumber>
      <EntryAmount>1</EntryAmount>
      <EntryAmountBase>1</EntryAmountBase>
      <EntryAmountCredit>1</EntryAmountCredit>
      <EntryAmountCreditBase>1</EntryAmountCreditBase>
      <EntryAmountDebit>1</EntryAmountDebit>
      <EntryAmountDebitBase>1</EntryAmountDebitBase>
      <EntryComment>sample string 3</EntryComment>
      <EntryDate>2021-06-18T16:26:53.4094325+04:00</EntryDate>
      <EntryDocumentNumber>sample string 1</EntryDocumentNumber>
      <EntryId>1</EntryId>
      <SenderDetails>
        <AccountNumber>sample string 3</AccountNumber>
        <BankCode>sample string 4</BankCode>
        <BankName>sample string 5</BankName>
        <Inn>sample string 2</Inn>
        <Name>sample string 1</Name>
      </SenderDetails>
    </StatementDetail>
    <StatementDetail>
      <AuthDate>2021-06-21T10:56:19.8506404+04:00</AuthDate>
      <BeneficiaryDetails>
        <AccountNumber>sample string 3</AccountNumber>
        <BankCode>sample string 4</BankCode>
        <BankName>sample string 5</BankName>
        <Inn>sample string 2</Inn>
        <Name>sample string 1</Name>
      </BeneficiaryDetails>
      <DocComment>sample string 23</DocComment>
      <DocumentDestinationAmount>1</DocumentDestinationAmount>
      <DocumentDestinationCurrency>sample string 11</DocumentDestinationCurrency>
      <DocumentInformation>sample string 9</DocumentInformation>
      <DocumentKey>1</DocumentKey>
      <DocumentNomination>sample string 8</DocumentNomination>
      <DocumentPayerInn>sample string 22</DocumentPayerInn>
      <DocumentPayerName>sample string 21</DocumentPayerName>
      <DocumentProductGroup>sample string 6</DocumentProductGroup>
      <DocumentRate>1</DocumentRate>
      <DocumentReceiveDate>2021-06-18T16:26:53.4094325+04:00</DocumentReceiveDate>
      <DocumentSourceAmount>1</DocumentSourceAmount>
      <DocumentSourceCurrency>sample string 10</DocumentSourceCurrency>
      <DocumentTreasuryCode>sample string 7</DocumentTreasuryCode>
      <DocumentValueDate>2021-06-18T16:26:53.4094325+04:00</DocumentValueDate>
      <EntryAccountNumber>sample string 2</EntryAccountNumber>
      <EntryAmount>1</EntryAmount>
      <EntryAmountBase>1</EntryAmountBase>
      <EntryAmountCredit>1</EntryAmountCredit>
      <EntryAmountCreditBase>1</EntryAmountCreditBase>
      <EntryAmountDebit>1</EntryAmountDebit>
      <EntryAmountDebitBase>1</EntryAmountDebitBase>
      <EntryComment>sample string 3</EntryComment>
      <EntryDate>2021-06-18T16:26:53.4094325+04:00</EntryDate>
      <EntryDocumentNumber>sample string 1</EntryDocumentNumber>
      <EntryId>1</EntryId>
      <SenderDetails>
        <AccountNumber>sample string 3</AccountNumber>
        <BankCode>sample string 4</BankCode>
        <BankName>sample string 5</BankName>
        <Inn>sample string 2</Inn>
        <Name>sample string 1</Name>
      </SenderDetails>
    </StatementDetail>
  </Records>
</Statement>
```
