Attach Statement to Document
curl --request POST \
--url https://api.stax.ai/tpa/statement/attach \
--header 'Content-Type: application/json' \
--cookie authToken= \
--data '
{
"docId": "<string>",
"planId": "<string>",
"accountNumber": "<string>"
}
'import requests
url = "https://api.stax.ai/tpa/statement/attach"
payload = {
"docId": "<string>",
"planId": "<string>",
"accountNumber": "<string>"
}
headers = {
"cookie": "authToken=",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {cookie: 'authToken=', 'Content-Type': 'application/json'},
body: JSON.stringify({docId: '<string>', planId: '<string>', accountNumber: '<string>'})
};
fetch('https://api.stax.ai/tpa/statement/attach', 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/attach",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'docId' => '<string>',
'planId' => '<string>',
'accountNumber' => '<string>'
]),
CURLOPT_COOKIE => "authToken=",
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.stax.ai/tpa/statement/attach"
payload := strings.NewReader("{\n \"docId\": \"<string>\",\n \"planId\": \"<string>\",\n \"accountNumber\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("cookie", "authToken=")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.stax.ai/tpa/statement/attach")
.header("cookie", "authToken=")
.header("Content-Type", "application/json")
.body("{\n \"docId\": \"<string>\",\n \"planId\": \"<string>\",\n \"accountNumber\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.stax.ai/tpa/statement/attach")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["cookie"] = 'authToken='
request["Content-Type"] = 'application/json'
request.body = "{\n \"docId\": \"<string>\",\n \"planId\": \"<string>\",\n \"accountNumber\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"statement": {
"_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
Attach Statement to Document
Attach a TPA statement to a document
POST
/
tpa
/
statement
/
attach
Attach Statement to Document
curl --request POST \
--url https://api.stax.ai/tpa/statement/attach \
--header 'Content-Type: application/json' \
--cookie authToken= \
--data '
{
"docId": "<string>",
"planId": "<string>",
"accountNumber": "<string>"
}
'import requests
url = "https://api.stax.ai/tpa/statement/attach"
payload = {
"docId": "<string>",
"planId": "<string>",
"accountNumber": "<string>"
}
headers = {
"cookie": "authToken=",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {cookie: 'authToken=', 'Content-Type': 'application/json'},
body: JSON.stringify({docId: '<string>', planId: '<string>', accountNumber: '<string>'})
};
fetch('https://api.stax.ai/tpa/statement/attach', 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/attach",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'docId' => '<string>',
'planId' => '<string>',
'accountNumber' => '<string>'
]),
CURLOPT_COOKIE => "authToken=",
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.stax.ai/tpa/statement/attach"
payload := strings.NewReader("{\n \"docId\": \"<string>\",\n \"planId\": \"<string>\",\n \"accountNumber\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("cookie", "authToken=")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.stax.ai/tpa/statement/attach")
.header("cookie", "authToken=")
.header("Content-Type", "application/json")
.body("{\n \"docId\": \"<string>\",\n \"planId\": \"<string>\",\n \"accountNumber\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.stax.ai/tpa/statement/attach")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["cookie"] = 'authToken='
request["Content-Type"] = 'application/json'
request.body = "{\n \"docId\": \"<string>\",\n \"planId\": \"<string>\",\n \"accountNumber\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"statement": {
"_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
Body
application/json
⌘I