Listing account transactions

List account transactions

GET /api/public/v1/accounts/:id/transactions

This endpoint returns the complete transaction history for a single account.

Headers

NameValue

Content-Type

application/json

Authorization

Bearer <api_key>

Path Parameters

NameTypeDescription

id

string

Account ID.

Query Parameters

NameTypeDescription

order

string

Order in which the list of transactions should be returned. Can be either created_at, amount or balance.

order_type

string

Order type. Can be either asc or desc.

per_page

number

Number of transactions per page to return.

page

number

Page for which you want to return transactions.

Response

{
  "data": [
    {
      "id": "fb942a50-83c9-468f-acd0-84cf4a9b8b43",
      "type": "transaction_logs",
      "attributes": {
        "createdAt": "2024-04-19T09:26:56.345Z",
        "state": "completed",
        "transactionType": "ExchangeTransaction",
        "amount": "-1062.12",
        "balance": "18981.20"
      },
      "relationships": {
        "account": {
          "data": {
            "type": "accounts",
            "id": "746e3b21-595e-4540-8436-4658cb508d11"
          }
        }
      }
    },
    {
      "id": "c4cec149-b8ae-4f51-bb45-abddd4b02b2d",
      "type": "transaction_logs",
      "attributes": {
        "createdAt": "2024-04-18T08:29:24.666Z",
        "state": "completed",
        "transactionType": "ExchangeTransaction",
        "amount": "980.94",
        "balance": "20043.32"
      },
      "relationships": {
        "account": {
          "data": {
            "type": "accounts",
            "id": "746e3b21-595e-4540-8436-4658cb508d11"
          }
        }
      }
    }
  ],
  "included": [
    {
      "id": "746e3b21-595e-4540-8436-4658cb508d11",
      "type": "accounts",
      "attributes": {
        "currencyCode": "TRY",
        "balance": "18981.20",
        "currencyType": "fiat"
      },
      "relationships": {
        "company": {
          "meta": {
            "included": false
          }
        },
        "networks": {
          "meta": {
            "included": false
          }
        }
      }
    }
  ],
  "meta": {
    "page": 1,
    "per_page": "2",
    "total": 9
  },
  "jsonapi": {
    "version": "1.0"
  }
}

Response Body

NameTypeDescription

data.id

string

Transaction ID.

data.type

string

Entity type returned. Always transaction_logs.

data.attributes

object

A set of transaction attributes.

data.attributes.createdAt

string

Transaction creation timestamp in UTC+0. Refer to the Date and time format page.

data.attributes.state

string

Transaction status.

data.attributes.transactionType

string

Transaction type. Can be either ExchangeTransaction, CoinDeposit or ManualEntry.

data.attributes.amount

string

Transaction amount.

data.attributes.balance

string

This is what your account balance was when Txn processed the transaction.

data.relationships

object

Additional data on the transaction relationship.

data.relationships.account.type

string

Type of the entity returned in the data.relationships.account.id string. Always accounts.

data.relationships.account.id

string

Account ID which the transaction belongs to.

meta

object

Object that contains the pagination data.

meta.page

string

Current page number you are on.

meta.per_page

string

Number of transactions per page.

meta.total

number

Total number of pages returned.

Last updated