Skip to main content
GET
/
core
/
accounts
/
{accountId}
/
transactions
List account transactions
curl --request GET \
  --url https://api.enterprise.sandbox.uphold.com/core/accounts/{accountId}/transactions \
  --header 'Authorization: Bearer <token>'
import requests

url = "https://api.enterprise.sandbox.uphold.com/core/accounts/{accountId}/transactions"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch('https://api.enterprise.sandbox.uphold.com/core/accounts/{accountId}/transactions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://api.enterprise.sandbox.uphold.com/core/accounts/{accountId}/transactions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"net/http"
"io"
)

func main() {

url := "https://api.enterprise.sandbox.uphold.com/core/accounts/{accountId}/transactions"

req, _ := http.NewRequest("GET", url, nil)

req.Header.Add("Authorization", "Bearer <token>")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.get("https://api.enterprise.sandbox.uphold.com/core/accounts/{accountId}/transactions")
.header("Authorization", "Bearer <token>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.enterprise.sandbox.uphold.com/core/accounts/{accountId}/transactions")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
{
  "transactions": [
    {
      "id": "623000c8-9bdf-4a2b-aa3d-6a6b44a7f6a0",
      "origin": {
        "amount": "100.00",
        "asset": "GBP",
        "rate": "47619.04761904762",
        "node": {
          "type": "account",
          "id": "b98e4f0d-a67d-4126-a99d-666f7e0315d9",
          "ownerId": "e4ce04dc-67b7-4e9f-af91-482cb6f9fc4a"
        }
      },
      "destination": {
        "amount": "0.0021",
        "asset": "BTC",
        "rate": "0.000021",
        "node": {
          "type": "account",
          "id": "555a99a1-620d-4431-a0ac-b43e1aad2bdc",
          "ownerId": "e4ce04dc-67b7-4e9f-af91-482cb6f9fc4a"
        }
      },
      "denomination": {
        "amount": "100.00",
        "asset": "GBP",
        "target": "origin",
        "rate": "1"
      },
      "fees": [],
      "status": "completed",
      "quotedAt": "2024-07-24T15:02:39.000Z",
      "createdAt": "2024-07-24T15:22:39.000Z",
      "updatedAt": "2024-07-24T15:33:08.000Z"
    }
  ],
  "pagination": {
    "first": "https://api.enterprise.uphold.com/core/accounts/555a99a1-620d-4431-a0ac-b43e1aad2bdc/transactions?page=1&perPage=1",
    "next": "https://api.enterprise.uphold.com/core/accounts/555a99a1-620d-4431-a0ac-b43e1aad2bdc/transactions?page=2&perPage=1"
  }
}
{
"code": "entity_not_found",
"message": "The account cannot be found",
"details": {
"entity": "account"
}
}

Authorizations

Authorization
string
header
required

OAuth 2.0 authentication.

Path Parameters

accountId
string<uuid>
required

The account id.

Query Parameters

perPage
integer<int32>
default:10

The number of items per page.

Required range: 1 <= x <= 100

Response

Transactions retrieved.

transactions
object[]
required
pagination
object
required

The pagination information.