List TPA Statements
curl --request GET \
--url https://api.stax.ai/tpa/statement/list \
--cookie authToken=import requests
url = "https://api.stax.ai/tpa/statement/list"
headers = {"cookie": "authToken="}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {cookie: 'authToken='}};
fetch('https://api.stax.ai/tpa/statement/list', 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.stax.ai/tpa/statement/list",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_COOKIE => "authToken=",
]);
$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.stax.ai/tpa/statement/list"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("cookie", "authToken=")
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.stax.ai/tpa/statement/list")
.header("cookie", "authToken=")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.stax.ai/tpa/statement/list")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["cookie"] = 'authToken='
response = http.request(request)
puts response.read_body{
"success": true,
"statements": [
{
"_id": "<string>",
"team": "<string>",
"plan": "<string>",
"account": "<string>",
"planId": "<string>",
"accountNumber": "<string>",
"document": "<string>",
"pageCount": 123,
"duplicates": [
"<string>"
],
"creator": "<string>",
"planYear": 123,
"periodStart": "2023-11-07T05:31:56Z",
"periodEnd": "2023-11-07T05:31:56Z",
"months": [
"<string>"
],
"beginningBalance": 123,
"endingBalance": 123,
"reconciles": true,
"tx": {
"deposits": 123,
"withdrawals": 123,
"income": 123,
"fees": 123,
"transfers": 123,
"purchases": 123,
"sales": 123,
"reinvestments": 123,
"other": 123,
"accrued": 123,
"gain_loss": 123,
"rollovers": 123,
"forfeiture": 123,
"loanPayments": 123,
"newLoans": 123,
"loanInterest": 123
},
"diff": {
"deposits": 123,
"withdrawals": 123,
"income": 123,
"fees": 123,
"loanPayments": 123,
"transfers": 123,
"rollovers": 123,
"reinvestments": 123,
"other": 123,
"gain_loss": 123,
"accrued": 123,
"purchases": 123,
"sales": 123
},
"errors": [
"<string>"
],
"confidence": {},
"ref": {},
"participant": "<string>",
"moneyType": "<string>",
"confirmed": true,
"clientConfirmed": true,
"accepted": {},
"history": [
{
"user": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"changes": [
{
"field": "<string>",
"from": "<string>",
"to": "<string>"
}
]
}
],
"createdOn": "2023-11-07T05:31:56Z",
"lastModified": "2023-11-07T05:31:56Z",
"classifying": true
}
]
}TPA
List TPA Statements
Get all TPA statements
GET
/
tpa
/
statement
/
list
List TPA Statements
curl --request GET \
--url https://api.stax.ai/tpa/statement/list \
--cookie authToken=import requests
url = "https://api.stax.ai/tpa/statement/list"
headers = {"cookie": "authToken="}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {cookie: 'authToken='}};
fetch('https://api.stax.ai/tpa/statement/list', 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.stax.ai/tpa/statement/list",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_COOKIE => "authToken=",
]);
$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.stax.ai/tpa/statement/list"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("cookie", "authToken=")
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.stax.ai/tpa/statement/list")
.header("cookie", "authToken=")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.stax.ai/tpa/statement/list")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["cookie"] = 'authToken='
response = http.request(request)
puts response.read_body{
"success": true,
"statements": [
{
"_id": "<string>",
"team": "<string>",
"plan": "<string>",
"account": "<string>",
"planId": "<string>",
"accountNumber": "<string>",
"document": "<string>",
"pageCount": 123,
"duplicates": [
"<string>"
],
"creator": "<string>",
"planYear": 123,
"periodStart": "2023-11-07T05:31:56Z",
"periodEnd": "2023-11-07T05:31:56Z",
"months": [
"<string>"
],
"beginningBalance": 123,
"endingBalance": 123,
"reconciles": true,
"tx": {
"deposits": 123,
"withdrawals": 123,
"income": 123,
"fees": 123,
"transfers": 123,
"purchases": 123,
"sales": 123,
"reinvestments": 123,
"other": 123,
"accrued": 123,
"gain_loss": 123,
"rollovers": 123,
"forfeiture": 123,
"loanPayments": 123,
"newLoans": 123,
"loanInterest": 123
},
"diff": {
"deposits": 123,
"withdrawals": 123,
"income": 123,
"fees": 123,
"loanPayments": 123,
"transfers": 123,
"rollovers": 123,
"reinvestments": 123,
"other": 123,
"gain_loss": 123,
"accrued": 123,
"purchases": 123,
"sales": 123
},
"errors": [
"<string>"
],
"confidence": {},
"ref": {},
"participant": "<string>",
"moneyType": "<string>",
"confirmed": true,
"clientConfirmed": true,
"accepted": {},
"history": [
{
"user": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"changes": [
{
"field": "<string>",
"from": "<string>",
"to": "<string>"
}
]
}
],
"createdOn": "2023-11-07T05:31:56Z",
"lastModified": "2023-11-07T05:31:56Z",
"classifying": true
}
]
}Authorizations
cookieAuthbearerAuth
Cookie-based authentication using userId and authToken cookies
Query Parameters
MongoDB ObjectId
Pattern:
^[0-9a-fA-F]{24}$MongoDB ObjectId
Pattern:
^[0-9a-fA-F]{24}$⌘I