Get bank statement transactions
curl --request POST \
--url https://api.anycheck.ai/bank-statements/{id}/transactions \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"page_offset": 0,
"page_size": 20,
"period_start": "2024-01-01",
"period_end": "2024-01-31",
"sort": [
{
"by": "trx_date",
"order": "desc"
}
]
}
'import requests
url = "https://api.anycheck.ai/bank-statements/{id}/transactions"
payload = {
"page_offset": 0,
"page_size": 20,
"period_start": "2024-01-01",
"period_end": "2024-01-31",
"sort": [
{
"by": "trx_date",
"order": "desc"
}
]
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
page_offset: 0,
page_size: 20,
period_start: '2024-01-01',
period_end: '2024-01-31',
sort: [{by: 'trx_date', order: 'desc'}]
})
};
fetch('https://api.anycheck.ai/bank-statements/{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://api.anycheck.ai/bank-statements/{id}/transactions",
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([
'page_offset' => 0,
'page_size' => 20,
'period_start' => '2024-01-01',
'period_end' => '2024-01-31',
'sort' => [
[
'by' => 'trx_date',
'order' => 'desc'
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>"
],
]);
$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.anycheck.ai/bank-statements/{id}/transactions"
payload := strings.NewReader("{\n \"page_offset\": 0,\n \"page_size\": 20,\n \"period_start\": \"2024-01-01\",\n \"period_end\": \"2024-01-31\",\n \"sort\": [\n {\n \"by\": \"trx_date\",\n \"order\": \"desc\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
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.anycheck.ai/bank-statements/{id}/transactions")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"page_offset\": 0,\n \"page_size\": 20,\n \"period_start\": \"2024-01-01\",\n \"period_end\": \"2024-01-31\",\n \"sort\": [\n {\n \"by\": \"trx_date\",\n \"order\": \"desc\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.anycheck.ai/bank-statements/{id}/transactions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"page_offset\": 0,\n \"page_size\": 20,\n \"period_start\": \"2024-01-01\",\n \"period_end\": \"2024-01-31\",\n \"sort\": [\n {\n \"by\": \"trx_date\",\n \"order\": \"desc\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"transactions": [
{
"account_number": "1234567890",
"page_no": 1,
"trx_date": "2023-01-15",
"trx_notes": "Transfer from ABC Company",
"trx_types": "CR",
"category_type": "Non-Recurring Miscellaneous Income",
"is_operational": false,
"merchant_name": "NINA NURSITA RAMADHAN",
"trx_mutation_db_number": 0,
"trx_mutation_cr_number": 200000,
"balance_number": 200000,
"confidence_detail": {
"page_no": 0,
"trx_date": 0,
"trx_notes": 0,
"trx_types": 0,
"category_type": 0,
"is_operational": 0,
"merchant_name": 0,
"trx_mutation_amount": 0,
"balance": 0,
"page_no_level": "LOW",
"trx_date_level": "LOW",
"trx_notes_level": "LOW",
"trx_types_level": "LOW",
"category_type_level": "LOW",
"is_operational_level": "LOW",
"merchant_name_level": "LOW",
"trx_mutation_amount_level": "LOW",
"balance_level": "LOW"
},
"mutation_amount_base_currency": 200000,
"balance_base_currency": 200000,
"clean_description": "Transfer In",
"is_operational_llm": false,
"is_operational_keyword": true,
"is_automatic_bank_transaction": false,
"is_circular_transaction": false,
"is_kiting_transaction": false,
"is_big_transaction": true,
"is_round_transaction": true,
"is_transfer_from_company_group": false,
"is_transfer_from_director": false,
"is_transfer_from_supplier": false,
"is_transfer_from_customer": false,
"is_pace_revenue": true,
"is_rm_revenue": true
}
],
"total": 123
}Bank Statement Analysis
Get bank statement transactions
Retrieve detailed transaction data with filtering, sorting, and pagination. Accepts a JSON body to support complex filter expressions.
POST
/
bank-statements
/
{id}
/
transactions
Get bank statement transactions
curl --request POST \
--url https://api.anycheck.ai/bank-statements/{id}/transactions \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"page_offset": 0,
"page_size": 20,
"period_start": "2024-01-01",
"period_end": "2024-01-31",
"sort": [
{
"by": "trx_date",
"order": "desc"
}
]
}
'import requests
url = "https://api.anycheck.ai/bank-statements/{id}/transactions"
payload = {
"page_offset": 0,
"page_size": 20,
"period_start": "2024-01-01",
"period_end": "2024-01-31",
"sort": [
{
"by": "trx_date",
"order": "desc"
}
]
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
page_offset: 0,
page_size: 20,
period_start: '2024-01-01',
period_end: '2024-01-31',
sort: [{by: 'trx_date', order: 'desc'}]
})
};
fetch('https://api.anycheck.ai/bank-statements/{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://api.anycheck.ai/bank-statements/{id}/transactions",
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([
'page_offset' => 0,
'page_size' => 20,
'period_start' => '2024-01-01',
'period_end' => '2024-01-31',
'sort' => [
[
'by' => 'trx_date',
'order' => 'desc'
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>"
],
]);
$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.anycheck.ai/bank-statements/{id}/transactions"
payload := strings.NewReader("{\n \"page_offset\": 0,\n \"page_size\": 20,\n \"period_start\": \"2024-01-01\",\n \"period_end\": \"2024-01-31\",\n \"sort\": [\n {\n \"by\": \"trx_date\",\n \"order\": \"desc\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
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.anycheck.ai/bank-statements/{id}/transactions")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"page_offset\": 0,\n \"page_size\": 20,\n \"period_start\": \"2024-01-01\",\n \"period_end\": \"2024-01-31\",\n \"sort\": [\n {\n \"by\": \"trx_date\",\n \"order\": \"desc\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.anycheck.ai/bank-statements/{id}/transactions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"page_offset\": 0,\n \"page_size\": 20,\n \"period_start\": \"2024-01-01\",\n \"period_end\": \"2024-01-31\",\n \"sort\": [\n {\n \"by\": \"trx_date\",\n \"order\": \"desc\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"transactions": [
{
"account_number": "1234567890",
"page_no": 1,
"trx_date": "2023-01-15",
"trx_notes": "Transfer from ABC Company",
"trx_types": "CR",
"category_type": "Non-Recurring Miscellaneous Income",
"is_operational": false,
"merchant_name": "NINA NURSITA RAMADHAN",
"trx_mutation_db_number": 0,
"trx_mutation_cr_number": 200000,
"balance_number": 200000,
"confidence_detail": {
"page_no": 0,
"trx_date": 0,
"trx_notes": 0,
"trx_types": 0,
"category_type": 0,
"is_operational": 0,
"merchant_name": 0,
"trx_mutation_amount": 0,
"balance": 0,
"page_no_level": "LOW",
"trx_date_level": "LOW",
"trx_notes_level": "LOW",
"trx_types_level": "LOW",
"category_type_level": "LOW",
"is_operational_level": "LOW",
"merchant_name_level": "LOW",
"trx_mutation_amount_level": "LOW",
"balance_level": "LOW"
},
"mutation_amount_base_currency": 200000,
"balance_base_currency": 200000,
"clean_description": "Transfer In",
"is_operational_llm": false,
"is_operational_keyword": true,
"is_automatic_bank_transaction": false,
"is_circular_transaction": false,
"is_kiting_transaction": false,
"is_big_transaction": true,
"is_round_transaction": true,
"is_transfer_from_company_group": false,
"is_transfer_from_director": false,
"is_transfer_from_supplier": false,
"is_transfer_from_customer": false,
"is_pace_revenue": true,
"is_rm_revenue": true
}
],
"total": 123
}Authorizations
API key for service-to-service authentication
Path Parameters
Verification ID
Body
application/json
Number of records to skip
Required range:
x >= 0Number of records per page
Required range:
1 <= x <= 50Start date filter (YYYY-MM-DD)
End date filter (YYYY-MM-DD)
Filter by account number
Global search term
Sort rules
Show child attributes
Show child attributes
Column filter rules
Show child attributes
Show child attributes
Was this page helpful?
⌘I