> For the complete documentation index, see [llms.txt](https://doklado-mnojd9vj.documentationai.com/llms.txt).
> Use it to discover all available pages before exploring further.

# Returns bank transactions for the organization assigned to the API key

Accepts only an API key that is bound to a specific organization (organization API key). The organization is derived from the API key, not from the request body.


<PlaygroundComponent />

<AuthParams schemes={["apiKey"]}>
<AuthType scheme="apiKey">
<ParamField header="api_key" param-type="string" required="true">
API Key for authentication. Provide your API key in the header.
</ParamField>
</AuthType>
</AuthParams>

<BodyParams contentTypes={["application/json"]} defaultType="application/json">
  <ContentType type="application/json">
<ParamField showLocation="false" body="data" param-type="object" required="false">

<Expandable title="Object Properties" default-open="false">

  <ParamField showLocation="false" body="dateFrom" param-type="string" required="false">
  Export bank transactions from this date.
  </ParamField>

  <ParamField showLocation="false" body="dateTo" param-type="string" required="false">
  Export bank transactions until this date.
  </ParamField>

  <ParamField showLocation="false" body="dateType" param-type="string" required="false" enum="booking_date,creation_date">
  Date field used for the date range filter. Required when dateFrom or dateTo is provided.
  </ParamField>

  <ParamField showLocation="false" body="accountIdentification" param-type="string" required="false" examples-b64="W3sibmFtZSI6ImV4YW1wbGUiLCJ2YWx1ZSI6IlNLNjgxMTAwMDAwMDAwMjkyMjg4ODg4OCJ9XQ==">
  Bank account identification (IBAN) to filter the bank transactions by.
  </ParamField>

  <ParamField showLocation="false" body="pairingStatus" param-type="string" required="false" enum="paired,not_paired,paired_manually,paired_without_document_manually,paired_without_document">
  Pairing status of the bank transaction to filter by.
  </ParamField>

  <ParamField showLocation="false" body="paymentStatus" param-type="string" required="false" enum="paid,not_paid,partially_paid,in_progress">
  Payment status of the bank transaction to filter by.
  </ParamField>

  <ParamField showLocation="false" body="orderBy" param-type="string" required="false" enum="booking_date,creation_date">
  Field to sort the bank transactions by.
  </ParamField>

  <ParamField showLocation="false" body="orderByDescending" param-type="boolean" required="false" examples-b64="W3sibmFtZSI6ImV4YW1wbGUiLCJ2YWx1ZSI6ZmFsc2V9XQ==">
  Sort in descending order. Defaults to ascending.
  </ParamField>

  <ParamField showLocation="false" body="searchAfter" param-type="array" required="false">
  Tokens for pagination taken from the last hit of the previous page.
  </ParamField>

</Expandable>
</ParamField>
  </ContentType>
</BodyParams>

<Request tabs="curl,python,javascript,go,ruby">

```bash
curl -X POST "https://api-gateway-prod-europe-west-1-7epuecvu.ew.gateway.dev/v1/organization/bank-transactions" \
  -H "Content-Type: application/json" \
  -H "api_key: YOUR_API_KEY" \
  -d '{
  "data": {
    "dateFrom": "2024-12-25T10:00:00Z",
    "dateTo": "2024-12-25T10:00:00Z",
    "dateType": "booking_date",
    "accountIdentification": "SK6811000000002922888888",
    "pairingStatus": "paired",
    "paymentStatus": "paid",
    "orderBy": "booking_date",
    "orderByDescending": false,
    "searchAfter": [
      "example_string"
    ]
  }
}'
```

```python
import requests
import json

url = "https://api-gateway-prod-europe-west-1-7epuecvu.ew.gateway.dev/v1/organization/bank-transactions"
headers = {
  "Content-Type": "application/json",
  "api_key": "YOUR_API_KEY"
}
data = {
  "data": {
    "dateFrom": "2024-12-25T10:00:00Z",
    "dateTo": "2024-12-25T10:00:00Z",
    "dateType": "booking_date",
    "accountIdentification": "SK6811000000002922888888",
    "pairingStatus": "paired",
    "paymentStatus": "paid",
    "orderBy": "booking_date",
    "orderByDescending": false,
    "searchAfter": [
      "example_string"
    ]
  }
}

response = requests.post(url, headers=headers, json=data)
print(response.json())
```

```javascript
const response = await fetch("https://api-gateway-prod-europe-west-1-7epuecvu.ew.gateway.dev/v1/organization/bank-transactions", {
  method: "POST",
  headers: {
  "Content-Type": "application/json",
  "api_key": "YOUR_API_KEY"
},
  body: JSON.stringify({
  "data": {
    "dateFrom": "2024-12-25T10:00:00Z",
    "dateTo": "2024-12-25T10:00:00Z",
    "dateType": "booking_date",
    "accountIdentification": "SK6811000000002922888888",
    "pairingStatus": "paired",
    "paymentStatus": "paid",
    "orderBy": "booking_date",
    "orderByDescending": false,
    "searchAfter": [
      "example_string"
    ]
  }
})
});

const data = await response.json();
console.log(data);
```

```go
package main

import (
    "fmt"
    "net/http"
    "bytes"
    "encoding/json"
)

func main() {
    data := []byte(`{
  "data": {
    "dateFrom": "2024-12-25T10:00:00Z",
    "dateTo": "2024-12-25T10:00:00Z",
    "dateType": "booking_date",
    "accountIdentification": "SK6811000000002922888888",
    "pairingStatus": "paired",
    "paymentStatus": "paid",
    "orderBy": "booking_date",
    "orderByDescending": false,
    "searchAfter": [
      "example_string"
    ]
  }
}`)

    req, err := http.NewRequest("POST", "https://api-gateway-prod-europe-west-1-7epuecvu.ew.gateway.dev/v1/organization/bank-transactions", bytes.NewBuffer(data))
    if err != nil {
        panic(err)
    }

    req.Header.Set("Content-Type", "application/json")
    req.Header.Set("api_key", "YOUR_API_KEY")

    client := &http.Client{}
    resp, err := client.Do(req)
    if err != nil {
        panic(err)
    }
    defer resp.Body.Close()

    fmt.Println("Response Status:", resp.Status)
}
```

```ruby
require 'net/http'
require 'json'

uri = URI('https://api-gateway-prod-europe-west-1-7epuecvu.ew.gateway.dev/v1/organization/bank-transactions')
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true

request = Net::HTTP::Post.new(uri)
request['Content-Type'] = 'application/json'
request['api_key'] = 'YOUR_API_KEY'
request.body = '{
  "data": {
    "dateFrom": "2024-12-25T10:00:00Z",
    "dateTo": "2024-12-25T10:00:00Z",
    "dateType": "booking_date",
    "accountIdentification": "SK6811000000002922888888",
    "pairingStatus": "paired",
    "paymentStatus": "paid",
    "orderBy": "booking_date",
    "orderByDescending": false,
    "searchAfter": [
      "example_string"
    ]
  }
}'

response = http.request(request)
puts response.body
```

</Request>

### Responses

<div data-component="ResponsesCollection"><Expandable title="200 - Successful operation" default-open="true">

<ResponseField name="data" field-type="object" required="false">

<Expandable title="Object Properties" default-open="false">

<ResponseField name="transactions" field-type="array" required="false">

<Expandable title="Array Items" default-open="false">

<ResponseField name="accountIdentification" field-type="string" required="false">
Bank account identification (IBAN) of the bank transaction
</ResponseField>

<ResponseField name="variableSymbol" field-type="string" required="false">
Variable symbol (variabilný symbol) of the bank transaction
</ResponseField>

<ResponseField name="constantSymbol" field-type="string" required="false">
Constant symbol (konštantný symbol) of the bank transaction
</ResponseField>

<ResponseField name="totalAmount" field-type="number" required="true">
Total amount of the bank transaction
</ResponseField>

<ResponseField name="currency" field-type="string" required="true">
Currency of the bank transaction
</ResponseField>

<ResponseField name="remittanceInformationUnstructured" field-type="string" required="false">
Remittance information unstructured of the bank transaction
</ResponseField>

<ResponseField name="additionalInfo" field-type="string" required="false">
Additional information of the bank transaction
</ResponseField>

<ResponseField name="note" field-type="string" required="false">
Note of the bank transaction
</ResponseField>

<ResponseField name="transactionPartyName" field-type="string" required="false">
Name of the transaction counterparty
</ResponseField>

<ResponseField name="transactionPartyIBAN" field-type="string" required="false">
IBAN of the transaction counterparty
</ResponseField>

<ResponseField name="pairingStatus" field-type="string" required="false" enum="paired,not_paired,paired_manually,paired_without_document,paired_without_document_manually,undefined">
Pairing status of the bank transaction
</ResponseField>

<ResponseField name="paymentStatus" field-type="string" required="false" enum="paid,not_paid,partially_paid,in_progress">
Payment status of the bank transaction
</ResponseField>

<ResponseField name="bookingDate" field-type="string" required="false">
Booking date of the bank transaction
</ResponseField>

</Expandable>
</ResponseField>

<ResponseField name="balances" field-type="array" required="false">
Current available balance per bank account of the organization.

<Expandable title="Array Items" default-open="false">

<ResponseField name="iban" field-type="string" required="true">
Bank account identification (IBAN) of the account
</ResponseField>

<ResponseField name="amount" field-type="number" required="true">
Current available balance of the account (availableLedger for TB internal accounts, interimAvailable otherwise)
</ResponseField>

<ResponseField name="currency" field-type="string" required="true">
Currency of the balance
</ResponseField>

</Expandable>
</ResponseField>

</Expandable>
</ResponseField>

<ResponseField name="success" field-type="boolean" required="false">

</ResponseField>

<ResponseField name="message" field-type="string" required="false">
optional message to help user understand error code
</ResponseField>

<ResponseField name="code" field-type="string" required="false" enum="APP_UNAUTHENTICATED,APP_INCORRECT_INPUT_DATA,SAVE_DATA_ERROR_CODE">

</ResponseField>

</Expandable>

<Expandable title="401 - Invalid API key" default-open="false">

*Invalid API key*

</Expandable>

<Expandable title="403 - API key is not bound to an organization" default-open="false">

*API key is not bound to an organization*

</Expandable>

<Expandable title="404 - Not found" default-open="false">

*Not found*

</Expandable>

<Expandable title="500 - Server invocation error" default-open="false">

*Server invocation error*

</Expandable>

</div>

<Response tabs={["200","401","403","404","500"]} dropdown="true">

```json
{
  "data": {
    "transactions": [
      {
        "accountIdentification": "SK6811000000002922888888",
        "variableSymbol": "2025001",
        "constantSymbol": "0308",
        "totalAmount": 199.99,
        "currency": "EUR",
        "remittanceInformationUnstructured": "Doklad č. 2025/001",
        "additionalInfo": "Platba za tovar",
        "note": "Doklad spárovaný s faktúrou",
        "transactionPartyName": "Acme Corp",
        "transactionPartyIBAN": "DE89370400440532013000",
        "pairingStatus": "paired",
        "paymentStatus": "paid",
        "bookingDate": "2025-01-20T10:30:00Z"
      }
    ],
    "balances": [
      {
        "iban": "SK6511000000002942081405",
        "amount": 1250.75,
        "currency": "EUR"
      }
    ]
  },
  "success": true,
  "message": "example_string",
  "code": "APP_UNAUTHENTICATED"
}
```

```json
{
  "error": "Unauthorized",
  "message": "Authentication required. Please provide a valid API token",
  "code": 401
}
```

```json
{
  "error": "Forbidden",
  "message": "You don't have permission to access this resource",
  "code": 403
}
```

```json
{
  "error": "Not Found",
  "message": "The requested resource was not found",
  "code": 404
}
```

```json
{
  "error": "Internal Server Error",
  "message": "An unexpected error occurred on the server",
  "code": 500,
  "requestId": "req_1234567890"
}
```

</Response>

