Get Transactions
curl --request GET \
--url https://ob.flinksapp.com/api/fdx/5/accounts/{account_id}/transactions \
--header 'Authorization: Bearer <token>'import requests
url = "https://ob.flinksapp.com/api/fdx/5/accounts/{account_id}/transactions"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://ob.flinksapp.com/api/fdx/5/accounts/{account_id}/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://ob.flinksapp.com/api/fdx/5/accounts/{account_id}/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://ob.flinksapp.com/api/fdx/5/accounts/{account_id}/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://ob.flinksapp.com/api/fdx/5/accounts/{account_id}/transactions")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://ob.flinksapp.com/api/fdx/5/accounts/{account_id}/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{
"page": {
"nextOffset": "97fcd39f-6e32-470b-a107-d4cb1080abcc",
"totalElements": 32
},
"links": {
"next": {
"href": "https://ob-preprod.flinksapp.dev/api/fdx/5/accounts/11/transactions?startTime=2020-01-01&endTime=2020-02-01&limit=1&offset=97fcd39f-6e32-470b-a107-d4cb1080abcc"
}
},
"transactions": [
{
"locTransaction": {
"accountId": "11",
"transactionId": "1",
"postedTimestamp": "2020-02-01T00:00:00.0000000Z",
"transactionTimestamp": "2020-02-01T00:00:00.0000000Z",
"description": "Transaction TrxLoc@Cr0.01",
"debitCreditMemo": "CREDIT",
"amount": 1.1,
"status": "POSTED"
}
}
]
}
{
"transactions": [
{
"locTransaction": {
"accountId": "11",
"transactionId": "31",
"postedTimestamp": "2020-03-01T00:00:00.0000000Z",
"transactionTimestamp": "2020-03-01T00:00:00.0000000Z",
"description": "Transaction TrxLoc@Cr0.01",
"debitCreditMemo": "CREDIT",
"amount": 1.1,
"status": "POSTED"
}
}
]
}
{
"transactions": [
{
"depositTransaction": {
"accountId": "string",
"transactionId": "string",
"referenceTransactionId": "string",
"category": "string",
"subCategory": "string",
"postedTimestamp": "string",
"transactionTimestamp": "string",
"description": "string",
"debitCreditMemo": "CREDIT",
"amount": 1.1,
"foreignAmount": 1.1,
"foreignCurrency": "string",
"status": "AUTHORIZATION",
"fiAttributes": [
{
"name": "string",
"value": "string"
}
],
"transactionType": "ADJUSTMENT",
"payee": "string"
},
"loanTransaction": {
"accountId": "string",
"transactionId": "string",
"referenceTransactionId": "string",
"category": "string",
"subCategory": "string",
"postedTimestamp": "string",
"transactionTimestamp": "string",
"description": "string",
"debitCreditMemo": "CREDIT",
"amount": 1.1,
"foreignAmount": 1.1,
"foreignCurrency": "string",
"status": "AUTHORIZATION",
"fiAttributes": [
{
"name": "string",
"value": "string"
}
],
"transactionType": "PAYMENT"
},
"locTransaction": {
"accountId": "string",
"transactionId": "string",
"referenceTransactionId": "string",
"category": "string",
"subCategory": "string",
"postedTimestamp": "string",
"transactionTimestamp": "string",
"description": "string",
"debitCreditMemo": "CREDIT",
"amount": 1.1,
"foreignAmount": 1.1,
"foreignCurrency": "string",
"status": "AUTHORIZATION",
"fiAttributes": [
{
"name": "string",
"value": "string"
}
],
"transactionType": "PAYMENT"
},
"investmentTransaction": {
"accountId": "string",
"transactionId": "string",
"referenceTransactionId": "string",
"category": "string",
"subCategory": "string",
"postedTimestamp": "string",
"transactionTimestamp": "string",
"description": "string",
"debitCreditMemo": "CREDIT",
"amount": 1.1,
"foreignAmount": 1.1,
"foreignCurrency": "string",
"status": "AUTHORIZATION",
"fiAttributes": [
{
"name": "string",
"value": "string"
}
],
"transactionType": "PURCHASED",
"shares": 1.1,
"securityIdType": "CUSIP",
"orderType": "BUY",
"securityType": "BOND",
"inv401kSource": "AFTERTAX",
"incomeType": "CGLONG",
"subAccountSec": "CASH",
"subAccountFund": "CASH",
"unitType": "CURRENCY",
"transactionReason": "CALL",
"positionType": "LONG",
"faceValue": 1.1,
"price": 1.1,
"securityId": "string",
"symbol": "string",
"markup": 1.1,
"commission": 1.1,
"taxes": 1.1,
"fees": 1.1,
"load": 1.1,
"confirmationNumber": "string",
"fractionalCash": 1.1,
"oldUnits": 1.1,
"splitRatioNumerator": 0,
"splitRatioDenominator": 0,
"newUnits": 1.1,
"loanId": "string",
"loanPrincipal": 1.1,
"loanInterest": 1.1,
"payrollDate": "string",
"priorYearContrib": true,
"withholding": 1.1,
"taxExempt": true,
"gain": 1.1,
"stateWithholding": 1.1,
"penalty": 1.1,
"runningBalance": 1.1,
"unitPrice": 1.1,
"units": 1.1,
"accruedInterest": 1.1,
"digitalUnits": "string",
"transferAction": "IN"
}
}
]
}
{
"code": 702,
"message": "Invalid start or end date",
"debugMessage": "Start time is invalid"
}
{
"code": 500,
"message": "Internal Server Error",
"debugMessage": "An unexpected error occured"
}
FDX
Get Transactions
Use the /api/fdx/5/accounts//transactions endpoint to get the transaction history for a particular account.
GET
/
api
/
fdx
/
5
/
accounts
/
{account_id}
/
transactions
Get Transactions
curl --request GET \
--url https://ob.flinksapp.com/api/fdx/5/accounts/{account_id}/transactions \
--header 'Authorization: Bearer <token>'import requests
url = "https://ob.flinksapp.com/api/fdx/5/accounts/{account_id}/transactions"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://ob.flinksapp.com/api/fdx/5/accounts/{account_id}/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://ob.flinksapp.com/api/fdx/5/accounts/{account_id}/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://ob.flinksapp.com/api/fdx/5/accounts/{account_id}/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://ob.flinksapp.com/api/fdx/5/accounts/{account_id}/transactions")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://ob.flinksapp.com/api/fdx/5/accounts/{account_id}/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{
"page": {
"nextOffset": "97fcd39f-6e32-470b-a107-d4cb1080abcc",
"totalElements": 32
},
"links": {
"next": {
"href": "https://ob-preprod.flinksapp.dev/api/fdx/5/accounts/11/transactions?startTime=2020-01-01&endTime=2020-02-01&limit=1&offset=97fcd39f-6e32-470b-a107-d4cb1080abcc"
}
},
"transactions": [
{
"locTransaction": {
"accountId": "11",
"transactionId": "1",
"postedTimestamp": "2020-02-01T00:00:00.0000000Z",
"transactionTimestamp": "2020-02-01T00:00:00.0000000Z",
"description": "Transaction TrxLoc@Cr0.01",
"debitCreditMemo": "CREDIT",
"amount": 1.1,
"status": "POSTED"
}
}
]
}
{
"transactions": [
{
"locTransaction": {
"accountId": "11",
"transactionId": "31",
"postedTimestamp": "2020-03-01T00:00:00.0000000Z",
"transactionTimestamp": "2020-03-01T00:00:00.0000000Z",
"description": "Transaction TrxLoc@Cr0.01",
"debitCreditMemo": "CREDIT",
"amount": 1.1,
"status": "POSTED"
}
}
]
}
{
"transactions": [
{
"depositTransaction": {
"accountId": "string",
"transactionId": "string",
"referenceTransactionId": "string",
"category": "string",
"subCategory": "string",
"postedTimestamp": "string",
"transactionTimestamp": "string",
"description": "string",
"debitCreditMemo": "CREDIT",
"amount": 1.1,
"foreignAmount": 1.1,
"foreignCurrency": "string",
"status": "AUTHORIZATION",
"fiAttributes": [
{
"name": "string",
"value": "string"
}
],
"transactionType": "ADJUSTMENT",
"payee": "string"
},
"loanTransaction": {
"accountId": "string",
"transactionId": "string",
"referenceTransactionId": "string",
"category": "string",
"subCategory": "string",
"postedTimestamp": "string",
"transactionTimestamp": "string",
"description": "string",
"debitCreditMemo": "CREDIT",
"amount": 1.1,
"foreignAmount": 1.1,
"foreignCurrency": "string",
"status": "AUTHORIZATION",
"fiAttributes": [
{
"name": "string",
"value": "string"
}
],
"transactionType": "PAYMENT"
},
"locTransaction": {
"accountId": "string",
"transactionId": "string",
"referenceTransactionId": "string",
"category": "string",
"subCategory": "string",
"postedTimestamp": "string",
"transactionTimestamp": "string",
"description": "string",
"debitCreditMemo": "CREDIT",
"amount": 1.1,
"foreignAmount": 1.1,
"foreignCurrency": "string",
"status": "AUTHORIZATION",
"fiAttributes": [
{
"name": "string",
"value": "string"
}
],
"transactionType": "PAYMENT"
},
"investmentTransaction": {
"accountId": "string",
"transactionId": "string",
"referenceTransactionId": "string",
"category": "string",
"subCategory": "string",
"postedTimestamp": "string",
"transactionTimestamp": "string",
"description": "string",
"debitCreditMemo": "CREDIT",
"amount": 1.1,
"foreignAmount": 1.1,
"foreignCurrency": "string",
"status": "AUTHORIZATION",
"fiAttributes": [
{
"name": "string",
"value": "string"
}
],
"transactionType": "PURCHASED",
"shares": 1.1,
"securityIdType": "CUSIP",
"orderType": "BUY",
"securityType": "BOND",
"inv401kSource": "AFTERTAX",
"incomeType": "CGLONG",
"subAccountSec": "CASH",
"subAccountFund": "CASH",
"unitType": "CURRENCY",
"transactionReason": "CALL",
"positionType": "LONG",
"faceValue": 1.1,
"price": 1.1,
"securityId": "string",
"symbol": "string",
"markup": 1.1,
"commission": 1.1,
"taxes": 1.1,
"fees": 1.1,
"load": 1.1,
"confirmationNumber": "string",
"fractionalCash": 1.1,
"oldUnits": 1.1,
"splitRatioNumerator": 0,
"splitRatioDenominator": 0,
"newUnits": 1.1,
"loanId": "string",
"loanPrincipal": 1.1,
"loanInterest": 1.1,
"payrollDate": "string",
"priorYearContrib": true,
"withholding": 1.1,
"taxExempt": true,
"gain": 1.1,
"stateWithholding": 1.1,
"penalty": 1.1,
"runningBalance": 1.1,
"unitPrice": 1.1,
"units": 1.1,
"accruedInterest": 1.1,
"digitalUnits": "string",
"transferAction": "IN"
}
}
]
}
{
"code": 702,
"message": "Invalid start or end date",
"debugMessage": "Start time is invalid"
}
{
"code": 500,
"message": "Internal Server Error",
"debugMessage": "An unexpected error occured"
}
Use the
/api/fdx/5/accounts/{accountId}/transactions endpoint to get the transaction history for a particular account.
To successfully call this endpoint, you must first call the /Token endpoint to obtain a valid access_token using:
- grant_type:
authorization_codeorrefresh_token - client_id:
{recipient client_id} - client_secret:
{recipient client_secret} - redirect_uri:
{recipient redirect_uri} - code:
{with grant type authorization_code} - refresh_token:
{with grant type refresh_token}
Response is different for each Data Provider
This endpoint returns different fields for each Data Provider. For more information about the fields that each Data Provider supports, review the Data Provider’s details.How to handle an error response
If you receive an error response, refer to the List of Data Access Errors for more information about the error and how to resolve it.{
"page": {
"nextOffset": "97fcd39f-6e32-470b-a107-d4cb1080abcc",
"totalElements": 32
},
"links": {
"next": {
"href": "https://ob-preprod.flinksapp.dev/api/fdx/5/accounts/11/transactions?startTime=2020-01-01&endTime=2020-02-01&limit=1&offset=97fcd39f-6e32-470b-a107-d4cb1080abcc"
}
},
"transactions": [
{
"locTransaction": {
"accountId": "11",
"transactionId": "1",
"postedTimestamp": "2020-02-01T00:00:00.0000000Z",
"transactionTimestamp": "2020-02-01T00:00:00.0000000Z",
"description": "Transaction TrxLoc@Cr0.01",
"debitCreditMemo": "CREDIT",
"amount": 1.1,
"status": "POSTED"
}
}
]
}
{
"transactions": [
{
"locTransaction": {
"accountId": "11",
"transactionId": "31",
"postedTimestamp": "2020-03-01T00:00:00.0000000Z",
"transactionTimestamp": "2020-03-01T00:00:00.0000000Z",
"description": "Transaction TrxLoc@Cr0.01",
"debitCreditMemo": "CREDIT",
"amount": 1.1,
"status": "POSTED"
}
}
]
}
{
"transactions": [
{
"depositTransaction": {
"accountId": "string",
"transactionId": "string",
"referenceTransactionId": "string",
"category": "string",
"subCategory": "string",
"postedTimestamp": "string",
"transactionTimestamp": "string",
"description": "string",
"debitCreditMemo": "CREDIT",
"amount": 1.1,
"foreignAmount": 1.1,
"foreignCurrency": "string",
"status": "AUTHORIZATION",
"fiAttributes": [
{
"name": "string",
"value": "string"
}
],
"transactionType": "ADJUSTMENT",
"payee": "string"
},
"loanTransaction": {
"accountId": "string",
"transactionId": "string",
"referenceTransactionId": "string",
"category": "string",
"subCategory": "string",
"postedTimestamp": "string",
"transactionTimestamp": "string",
"description": "string",
"debitCreditMemo": "CREDIT",
"amount": 1.1,
"foreignAmount": 1.1,
"foreignCurrency": "string",
"status": "AUTHORIZATION",
"fiAttributes": [
{
"name": "string",
"value": "string"
}
],
"transactionType": "PAYMENT"
},
"locTransaction": {
"accountId": "string",
"transactionId": "string",
"referenceTransactionId": "string",
"category": "string",
"subCategory": "string",
"postedTimestamp": "string",
"transactionTimestamp": "string",
"description": "string",
"debitCreditMemo": "CREDIT",
"amount": 1.1,
"foreignAmount": 1.1,
"foreignCurrency": "string",
"status": "AUTHORIZATION",
"fiAttributes": [
{
"name": "string",
"value": "string"
}
],
"transactionType": "PAYMENT"
},
"investmentTransaction": {
"accountId": "string",
"transactionId": "string",
"referenceTransactionId": "string",
"category": "string",
"subCategory": "string",
"postedTimestamp": "string",
"transactionTimestamp": "string",
"description": "string",
"debitCreditMemo": "CREDIT",
"amount": 1.1,
"foreignAmount": 1.1,
"foreignCurrency": "string",
"status": "AUTHORIZATION",
"fiAttributes": [
{
"name": "string",
"value": "string"
}
],
"transactionType": "PURCHASED",
"shares": 1.1,
"securityIdType": "CUSIP",
"orderType": "BUY",
"securityType": "BOND",
"inv401kSource": "AFTERTAX",
"incomeType": "CGLONG",
"subAccountSec": "CASH",
"subAccountFund": "CASH",
"unitType": "CURRENCY",
"transactionReason": "CALL",
"positionType": "LONG",
"faceValue": 1.1,
"price": 1.1,
"securityId": "string",
"symbol": "string",
"markup": 1.1,
"commission": 1.1,
"taxes": 1.1,
"fees": 1.1,
"load": 1.1,
"confirmationNumber": "string",
"fractionalCash": 1.1,
"oldUnits": 1.1,
"splitRatioNumerator": 0,
"splitRatioDenominator": 0,
"newUnits": 1.1,
"loanId": "string",
"loanPrincipal": 1.1,
"loanInterest": 1.1,
"payrollDate": "string",
"priorYearContrib": true,
"withholding": 1.1,
"taxExempt": true,
"gain": 1.1,
"stateWithholding": 1.1,
"penalty": 1.1,
"runningBalance": 1.1,
"unitPrice": 1.1,
"units": 1.1,
"accruedInterest": 1.1,
"digitalUnits": "string",
"transferAction": "IN"
}
}
]
}
{
"code": 702,
"message": "Invalid start or end date",
"debugMessage": "Start time is invalid"
}
{
"code": 500,
"message": "Internal Server Error",
"debugMessage": "An unexpected error occured"
}
Path Parameters
Query Parameters
Response
Returned when the transactions are successfully retrieved with pagination.
Was this page helpful?