# ამონაწერი გადაფასებით
სერვისი უზრუნველყოფს მითითებული ანგარიშის საბანკო ამონაწერის მიღებას არჩეულ თარიღის შუალედში, გადაფასების (Revaluation) ჩანაწერების ჩათვლით. გადაფასების ჩანაწერების მისაღებად საჭიროა პარამეტრის `revaluation=true` მითითება.

ერთ მოთხოვნაზე შესაძლებელია მაქსიმუმ 1000 ტრანზაქციის მიღება. თუ არჩეულ პერიოდში ტრანზაქციების რაოდენობა აღემატება აღნიშნულ ზღვარს, დამატებითი მონაცემების მისაღებად საჭიროა მომდევნო [მოთხოვნის](https://api.bog.ge/docs/docs/bonline/statement/pagingV2) გაგზავნა შესაბამისი გვერდის პარამეტრით (pagination-ის გამოყენებით).

## Query პარამეტრები

- `accountNumber` — string, required

  ანგარიშის ნომერი

- `currency` — string, required

  ანგარიშის ვალუტა

- `startDate` — date, required

  დაწყების თარიღი, ფორმატი: 2025-12-31

- `endDate` — date, required

  დასრულების თარიღი, ფორმატი: 2025-12-31

- `includeToday` — boolean

  დღევანდელი ოპერაციების ჩათვლა (path, არასავალდებულო)

- `orderByDate` — boolean

  თარიღით დალაგება (path, არასავალდებულო)

- `take` — integer

  ჩანაწერების ლიმიტი (query, არასავალდებულო)

- `revaluation` — boolean

  გადაფასების ჩანაწერების ჩვენება (query, არასავალდებულო)

**REQUEST**

```api
GET api/v2/statement/{accountNumber}/{currency}/{startDate}/{endDate}/{includeToday}/{orderByDate}?take={take}&revaluation={revaluation}
```

## დაბრუნებული პარამეტრები

- `Id` — integer

  უნიკალური იდენტიფიკატორი

- `Count` — integer

  ჩანაწერების რაოდენობა

- `TotalCount` — integer

  მოთხოვნილ პერიოდში არსებული ჩანაწერების საერთო რაოდენობა, გვერდების დაყოფის მიუხედავად.

- `Records` — object

  ჩანაწერები, ტრანზაქციის დეტალები

  - `EntryDate` — date

    გატარების თარიღი

  - `EntryDocumentNumber` — string

    გატარების ნომერი

  - `EntryAccountNumber` — string

    გატარების ანგარიშის ნომერი

  - `EntryAmountDebit` — decimal number

    გატარების თანხა (დებიტი)

  - `EntryAmountDebitBase` — decimal number

    დებეტი ექვივალენტი ლარში

  - `EntryAmountCredit` — decimal number

    გატარების თანხა (კრედიტი)

  - `EntryAmountCreditBase` — decimal number

    კრედიტი ექვივალენტი ლარში

  - `EntryAmountBase` — decimal number

    თანხა ექვივალენტი ლარში

  - `EntryAmount` — decimal number

    შემოსვლის თანხა

  - `EntryComment` — string

    გატარების კომენტარი, ოპერაციის შინაარსი

  - `DocumentProductGroup` — string

    ოპერაციის ტიპი, დოკუმენტის პროდუქტის ჯგუფი

  - `DocumentValueDate` — date

    დოკუმენტის საბუთის ბანკში გატარების თარიღი

  - `SenderDetails` — object

    გამომგზავნის/გამგზავნის ინფორმაცია

    - `Name` — string

      დასახელება

    - `Inn` — string

      საიდენტიფიკაციო კოდი

    - `AccountNumber` — string

      ანგარიშის ნომერი

    - `BankCode` — string

      ბანკის კოდი

    - `BankName` — string

      ბანკის დასახელება

  - `BeneficiaryDetails` — object

    მიმღების ინფორმაცია

    - `Name` — string

      დასახელება

    - `Inn` — string

      საიდენტიფიკაციო კოდი

    - `AccountNumber` — string

      ანგარიშის ნომერი

    - `BankCode` — string

      ბანკის კოდი

    - `BankName` — string

      ბანკის დასახელება

  - `DocumentTreasuryCode` — string

    სახაზინო კოდი

  - `DocumentNomination` — string

    გადარიცხვის საფუძველი, დანიშნულება / მაქსიმუმ 250 სიმბოლო

  - `DocumentInformation` — string

    დამატებითი ინფორმაცია

  - `DocumentSourceAmount` — decimal number

    საწყისი თანხა

  - `DocumentSourceCurrency` — string

    საწყისი ვალუტა

  - `DocumentDestinationAmount` — decimal number

    საბოლოო თანხა

  - `DocumentDestinationCurrency` — string

    საბოლოო ვალუტა

  - `DocumentReceiveDate` — date

    მიღების თარიღი

  - `DocumentRate` — decimal number

    კონვერტაციის კურსი (ეროვნული ბანკის მიერ დადგენილი კურსი)

  - `DocumentKey` — decimal number

    დოკუმენტის უნიკალური ნომერი (ბანკში)

  - `EntryId` — decimal number

    გატარების უნიკალური ნომერი

  - `DocumentPayerName` — string

    გადამხდელის სახელი

  - `DocumentPayerInn` — string

    გადამხდელის – ფიზიკური პირის პირადი ნომერი, იურიდიული პირის საიდენტიფიკაციო კოდი
    ივსება მხოლოდ! ბიუჯეტის სასარგებლოდ მესამე პირის ნაცვლად/მაგივრად გადარიცხვის შესრულებისას, მიუთითეთ მესამე პირის საიდენტიფიკაციო კოდი

  - `DocComment` — string

    გატარების კომენტარი, ოპერაციის შინაარსი. შედგება გატარების რამდენიმე ატრიბუტის მნიშვნელობის გაერთიანებით. (მაგალითად: "ავტომატური გადახდების მომსახურებით გადასახდელის გადახდა, 22/12/2021 , სს ""სადაზღვევო კომპანია"", : სახელი გვარი GE75BG00000000000000000GEL სს ""საქართველოს ბანკი"" BAGAGE22")

  - `AuthDate` — date

    ოპერაციის ავტორიზაციის თარიღი.

**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>
```
