v1

latestOpenAPI 3.1.02026-07-13385987.3 KB
Bank statements

Gets the enriched transactions for a bank statement

get/datasources/bank_statements/{uuid}/transactions

Path parameters

uuidstring required

Query parameters

pageinteger

Page number

Page number

per_pageinteger

How many items per page

How many items per page

sort_bystring nullable

Column to sort items by, allowed values are ['date']. When not specified the default order will be used.

Column to sort items by, allowed values are ['date']. When not specified the default order will be used.

sort_order'asc' | 'desc'

Sorting direction asc or desc

Response

Successful Response

transaction_idstring required
account_holder_idstring nullable

The unique ID of the account holder of the transaction

account_holder_type'consumer' | 'business' | 'unknown'
amountnumber required

The amount of the transaction

entry_type'incoming' | 'outgoing' required
datestring date required

The date that the transaction was posted. Uses ISO 8601 format (YYYY-MM-DD)

iso_currency_codestring required

The currency of the transaction in ISO 4217 format

descriptionstring required

The description string of the transaction

locationstring nullable
countrystring nullable

The country where the transaction was made in ISO 3166-2 format

mccinteger[] nullable
account_holder_namestring nullable

The name of the account holder

logostring nullable
websitestring nullable
merchantstring nullable
merchant_idstring nullable
labelsstring[] nullable
recurrence'recurring' | 'subscription' | 'one off'
recurrence_group_idstring nullable
personstring nullable
transaction_type'business' | 'consumer' | 'unknown'
errorstring nullable
error_detailsstring nullable

Example response

[
  {
    "intermediaries": [
      {
        "id": "916bc837-55ef-3106-88f6-5a8269ca9f2a",
        "logo": "https://logos.ntropy.com/squareup.com",
        "name": "Square",
        "website": "squareup.com"
      }
    ],
    "labels": [
      "Cafes and coffee shop"
    ],
    "location": "10 Union Square East, New York, New York 10003, US",
    "location_structured": {
      "address": "10 Union Square East",
      "apple_maps_url": "https://maps.apple.com/?q=Starbucks+10+Union+Square+East&sll=40.734834,-73.989782",
      "city": "New York",
      "country": "US",
      "country_name": "United States",
      "google_maps_url": "https://www.google.com/maps/search/?api=1&query=Starbucks%2C10+Union+Square+East%2C+New+York%2C+New+York+10003%2C+US",
      "latitude": "48.734834",
      "longitude": "-73.989782",
      "postcode": "10003",
      "state": "New York"
    },
    "logo": "https://logo.clearbit.com/aws.amazon.com",
    "merchant": "Starbucks",
    "merchant_id": "d4bc3c80-ec1a-3da2-836e-2a4ca4758be5",
    "recurrence": "recurring",
    "recurrence_group": {
      "average_amount": 10,
      "first_payment_date": "2020-02-02",
      "id": "3b0c689b-e123-30a6-9f53-878f3ebf46aa",
      "latest_payment_date": "2022-02-02",
      "other_party": "starbucks.com",
      "periodicity": "monthly",
      "periodicity_in_days": 31,
      "total_amount": 240,
      "transaction_ids": [
        "b708fbd8-be76-41c2-86d5-83f8ba05ed85",
        "0e34b24d-646d-416e-8d51-fda5b6e10684"
      ]
    },
    "recurrence_group_id": "3b0c689b-e123-30a6-9f53-878f3ebf46aa",
    "transaction_id": "xbx8YP14g565Xk",
    "website": "starbucks.com"
  }
]