Skip to main content
POST
/
api
/
end_users
/
{end_user_id_or_heron_id}
/
ocrolus
Upload Ocrolus
curl --request POST \
  --url https://app.herondata.io/api/end_users/{end_user_id_or_heron_id}/ocrolus \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "response": {
    "bank_accounts": [
      {
        "account_category": "<string>",
        "account_number": "<string>",
        "alternative_lender_transactions": [
          {
            "amount": "<string>",
            "description": "<string>",
            "pk": 123,
            "timestamp": "2023-11-07T05:31:56Z",
            "txn_date": "07/08/2025"
          }
        ],
        "daily_balances": {},
        "debt_consolidator_txns": [
          {
            "amount": "<string>",
            "description": "<string>",
            "pk": 123,
            "timestamp": "2023-11-07T05:31:56Z",
            "txn_date": "07/08/2025"
          }
        ],
        "deposits_max_by_month": {},
        "estimated_expense_txns_list": [
          {
            "amount": "<string>",
            "description": "<string>",
            "pk": 123,
            "timestamp": "2023-11-07T05:31:56Z",
            "txn_date": "07/08/2025"
          }
        ],
        "estimated_revenue_txns_list": [
          {
            "amount": "<string>",
            "description": "<string>",
            "pk": 123,
            "timestamp": "2023-11-07T05:31:56Z",
            "txn_date": "07/08/2025"
          }
        ],
        "factor_txns": [
          {
            "amount": "<string>",
            "description": "<string>",
            "pk": 123,
            "timestamp": "2023-11-07T05:31:56Z",
            "txn_date": "07/08/2025"
          }
        ],
        "holder_country": "<string>",
        "insurance_credits": [
          {
            "amount": "<string>",
            "description": "<string>",
            "pk": 123,
            "timestamp": "2023-11-07T05:31:56Z",
            "txn_date": "07/08/2025"
          }
        ],
        "insurance_debits": [
          {
            "amount": "<string>",
            "description": "<string>",
            "pk": 123,
            "timestamp": "2023-11-07T05:31:56Z",
            "txn_date": "07/08/2025"
          }
        ],
        "interbank_transactions": [
          {
            "amount": "<string>",
            "description": "<string>",
            "pk": 123,
            "timestamp": "2023-11-07T05:31:56Z",
            "txn_date": "07/08/2025"
          }
        ],
        "merchant_cash_advance_lender_txns": [
          {
            "amount": "<string>",
            "description": "<string>",
            "pk": 123,
            "timestamp": "2023-11-07T05:31:56Z",
            "txn_date": "07/08/2025"
          }
        ],
        "non_estimated_revenue_txns_list": [
          {
            "amount": "<string>",
            "description": "<string>",
            "pk": 123,
            "timestamp": "2023-11-07T05:31:56Z",
            "txn_date": "07/08/2025"
          }
        ],
        "nsf_transactions": [
          {
            "amount": "<string>",
            "description": "<string>",
            "pk": 123,
            "timestamp": "2023-11-07T05:31:56Z",
            "txn_date": "07/08/2025"
          }
        ],
        "nsf_transactions_paid_or_negative_balance": [
          {
            "amount": "<string>",
            "description": "<string>",
            "pk": 123,
            "timestamp": "2023-11-07T05:31:56Z",
            "txn_date": "07/08/2025"
          }
        ],
        "nsf_transactions_returned_or_not_paid": [
          {
            "amount": "<string>",
            "description": "<string>",
            "pk": 123,
            "timestamp": "2023-11-07T05:31:56Z",
            "txn_date": "07/08/2025"
          }
        ],
        "outside_source_deposits": [
          {
            "amount": "<string>",
            "description": "<string>",
            "pk": 123,
            "timestamp": "2023-11-07T05:31:56Z",
            "txn_date": "07/08/2025"
          }
        ],
        "payroll": [
          {
            "amount": "<string>",
            "description": "<string>",
            "pk": 123,
            "timestamp": "2023-11-07T05:31:56Z",
            "txn_date": "07/08/2025"
          }
        ],
        "period_balance_mismatches": [
          {
            "amount": "<string>",
            "description": "<string>",
            "pk": 123,
            "timestamp": "2023-11-07T05:31:56Z",
            "txn_date": "07/08/2025"
          }
        ],
        "ppp_loan_txns": [
          {
            "amount": "<string>",
            "description": "<string>",
            "pk": 123,
            "timestamp": "2023-11-07T05:31:56Z",
            "txn_date": "07/08/2025"
          }
        ],
        "probable_recurring_txns": [
          [
            {
              "amount": "<string>",
              "description": "<string>",
              "pk": 123,
              "timestamp": "2023-11-07T05:31:56Z",
              "txn_date": "07/08/2025"
            }
          ]
        ],
        "returned_items": [
          {
            "amount": "<string>",
            "description": "<string>",
            "pk": 123,
            "timestamp": "2023-11-07T05:31:56Z",
            "txn_date": "07/08/2025"
          }
        ],
        "round_number_txns": [
          {
            "amount": "<string>",
            "description": "<string>",
            "pk": 123,
            "timestamp": "2023-11-07T05:31:56Z",
            "txn_date": "07/08/2025"
          }
        ],
        "txn_count": 123,
        "withdrawals": [
          {
            "amount": "<string>",
            "description": "<string>",
            "pk": 123,
            "timestamp": "2023-11-07T05:31:56Z",
            "txn_date": "07/08/2025"
          }
        ],
        "withdrawals_max_by_month": {}
      }
    ],
    "name": "<string>"
  }
}
'
import requests

url = "https://app.herondata.io/api/end_users/{end_user_id_or_heron_id}/ocrolus"

payload = { "response": {
"bank_accounts": [
{
"account_category": "<string>",
"account_number": "<string>",
"alternative_lender_transactions": [
{
"amount": "<string>",
"description": "<string>",
"pk": 123,
"timestamp": "2023-11-07T05:31:56Z",
"txn_date": "07/08/2025"
}
],
"daily_balances": {},
"debt_consolidator_txns": [
{
"amount": "<string>",
"description": "<string>",
"pk": 123,
"timestamp": "2023-11-07T05:31:56Z",
"txn_date": "07/08/2025"
}
],
"deposits_max_by_month": {},
"estimated_expense_txns_list": [
{
"amount": "<string>",
"description": "<string>",
"pk": 123,
"timestamp": "2023-11-07T05:31:56Z",
"txn_date": "07/08/2025"
}
],
"estimated_revenue_txns_list": [
{
"amount": "<string>",
"description": "<string>",
"pk": 123,
"timestamp": "2023-11-07T05:31:56Z",
"txn_date": "07/08/2025"
}
],
"factor_txns": [
{
"amount": "<string>",
"description": "<string>",
"pk": 123,
"timestamp": "2023-11-07T05:31:56Z",
"txn_date": "07/08/2025"
}
],
"holder_country": "<string>",
"insurance_credits": [
{
"amount": "<string>",
"description": "<string>",
"pk": 123,
"timestamp": "2023-11-07T05:31:56Z",
"txn_date": "07/08/2025"
}
],
"insurance_debits": [
{
"amount": "<string>",
"description": "<string>",
"pk": 123,
"timestamp": "2023-11-07T05:31:56Z",
"txn_date": "07/08/2025"
}
],
"interbank_transactions": [
{
"amount": "<string>",
"description": "<string>",
"pk": 123,
"timestamp": "2023-11-07T05:31:56Z",
"txn_date": "07/08/2025"
}
],
"merchant_cash_advance_lender_txns": [
{
"amount": "<string>",
"description": "<string>",
"pk": 123,
"timestamp": "2023-11-07T05:31:56Z",
"txn_date": "07/08/2025"
}
],
"non_estimated_revenue_txns_list": [
{
"amount": "<string>",
"description": "<string>",
"pk": 123,
"timestamp": "2023-11-07T05:31:56Z",
"txn_date": "07/08/2025"
}
],
"nsf_transactions": [
{
"amount": "<string>",
"description": "<string>",
"pk": 123,
"timestamp": "2023-11-07T05:31:56Z",
"txn_date": "07/08/2025"
}
],
"nsf_transactions_paid_or_negative_balance": [
{
"amount": "<string>",
"description": "<string>",
"pk": 123,
"timestamp": "2023-11-07T05:31:56Z",
"txn_date": "07/08/2025"
}
],
"nsf_transactions_returned_or_not_paid": [
{
"amount": "<string>",
"description": "<string>",
"pk": 123,
"timestamp": "2023-11-07T05:31:56Z",
"txn_date": "07/08/2025"
}
],
"outside_source_deposits": [
{
"amount": "<string>",
"description": "<string>",
"pk": 123,
"timestamp": "2023-11-07T05:31:56Z",
"txn_date": "07/08/2025"
}
],
"payroll": [
{
"amount": "<string>",
"description": "<string>",
"pk": 123,
"timestamp": "2023-11-07T05:31:56Z",
"txn_date": "07/08/2025"
}
],
"period_balance_mismatches": [
{
"amount": "<string>",
"description": "<string>",
"pk": 123,
"timestamp": "2023-11-07T05:31:56Z",
"txn_date": "07/08/2025"
}
],
"ppp_loan_txns": [
{
"amount": "<string>",
"description": "<string>",
"pk": 123,
"timestamp": "2023-11-07T05:31:56Z",
"txn_date": "07/08/2025"
}
],
"probable_recurring_txns": [[
{
"amount": "<string>",
"description": "<string>",
"pk": 123,
"timestamp": "2023-11-07T05:31:56Z",
"txn_date": "07/08/2025"
}
]],
"returned_items": [
{
"amount": "<string>",
"description": "<string>",
"pk": 123,
"timestamp": "2023-11-07T05:31:56Z",
"txn_date": "07/08/2025"
}
],
"round_number_txns": [
{
"amount": "<string>",
"description": "<string>",
"pk": 123,
"timestamp": "2023-11-07T05:31:56Z",
"txn_date": "07/08/2025"
}
],
"txn_count": 123,
"withdrawals": [
{
"amount": "<string>",
"description": "<string>",
"pk": 123,
"timestamp": "2023-11-07T05:31:56Z",
"txn_date": "07/08/2025"
}
],
"withdrawals_max_by_month": {}
}
],
"name": "<string>"
} }
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({
response: {
bank_accounts: [
{
account_category: '<string>',
account_number: '<string>',
alternative_lender_transactions: [
{
amount: '<string>',
description: '<string>',
pk: 123,
timestamp: '2023-11-07T05:31:56Z',
txn_date: '07/08/2025'
}
],
daily_balances: {},
debt_consolidator_txns: [
{
amount: '<string>',
description: '<string>',
pk: 123,
timestamp: '2023-11-07T05:31:56Z',
txn_date: '07/08/2025'
}
],
deposits_max_by_month: {},
estimated_expense_txns_list: [
{
amount: '<string>',
description: '<string>',
pk: 123,
timestamp: '2023-11-07T05:31:56Z',
txn_date: '07/08/2025'
}
],
estimated_revenue_txns_list: [
{
amount: '<string>',
description: '<string>',
pk: 123,
timestamp: '2023-11-07T05:31:56Z',
txn_date: '07/08/2025'
}
],
factor_txns: [
{
amount: '<string>',
description: '<string>',
pk: 123,
timestamp: '2023-11-07T05:31:56Z',
txn_date: '07/08/2025'
}
],
holder_country: '<string>',
insurance_credits: [
{
amount: '<string>',
description: '<string>',
pk: 123,
timestamp: '2023-11-07T05:31:56Z',
txn_date: '07/08/2025'
}
],
insurance_debits: [
{
amount: '<string>',
description: '<string>',
pk: 123,
timestamp: '2023-11-07T05:31:56Z',
txn_date: '07/08/2025'
}
],
interbank_transactions: [
{
amount: '<string>',
description: '<string>',
pk: 123,
timestamp: '2023-11-07T05:31:56Z',
txn_date: '07/08/2025'
}
],
merchant_cash_advance_lender_txns: [
{
amount: '<string>',
description: '<string>',
pk: 123,
timestamp: '2023-11-07T05:31:56Z',
txn_date: '07/08/2025'
}
],
non_estimated_revenue_txns_list: [
{
amount: '<string>',
description: '<string>',
pk: 123,
timestamp: '2023-11-07T05:31:56Z',
txn_date: '07/08/2025'
}
],
nsf_transactions: [
{
amount: '<string>',
description: '<string>',
pk: 123,
timestamp: '2023-11-07T05:31:56Z',
txn_date: '07/08/2025'
}
],
nsf_transactions_paid_or_negative_balance: [
{
amount: '<string>',
description: '<string>',
pk: 123,
timestamp: '2023-11-07T05:31:56Z',
txn_date: '07/08/2025'
}
],
nsf_transactions_returned_or_not_paid: [
{
amount: '<string>',
description: '<string>',
pk: 123,
timestamp: '2023-11-07T05:31:56Z',
txn_date: '07/08/2025'
}
],
outside_source_deposits: [
{
amount: '<string>',
description: '<string>',
pk: 123,
timestamp: '2023-11-07T05:31:56Z',
txn_date: '07/08/2025'
}
],
payroll: [
{
amount: '<string>',
description: '<string>',
pk: 123,
timestamp: '2023-11-07T05:31:56Z',
txn_date: '07/08/2025'
}
],
period_balance_mismatches: [
{
amount: '<string>',
description: '<string>',
pk: 123,
timestamp: '2023-11-07T05:31:56Z',
txn_date: '07/08/2025'
}
],
ppp_loan_txns: [
{
amount: '<string>',
description: '<string>',
pk: 123,
timestamp: '2023-11-07T05:31:56Z',
txn_date: '07/08/2025'
}
],
probable_recurring_txns: [
[
{
amount: '<string>',
description: '<string>',
pk: 123,
timestamp: '2023-11-07T05:31:56Z',
txn_date: '07/08/2025'
}
]
],
returned_items: [
{
amount: '<string>',
description: '<string>',
pk: 123,
timestamp: '2023-11-07T05:31:56Z',
txn_date: '07/08/2025'
}
],
round_number_txns: [
{
amount: '<string>',
description: '<string>',
pk: 123,
timestamp: '2023-11-07T05:31:56Z',
txn_date: '07/08/2025'
}
],
txn_count: 123,
withdrawals: [
{
amount: '<string>',
description: '<string>',
pk: 123,
timestamp: '2023-11-07T05:31:56Z',
txn_date: '07/08/2025'
}
],
withdrawals_max_by_month: {}
}
],
name: '<string>'
}
})
};

fetch('https://app.herondata.io/api/end_users/{end_user_id_or_heron_id}/ocrolus', 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://app.herondata.io/api/end_users/{end_user_id_or_heron_id}/ocrolus",
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([
'response' => [
'bank_accounts' => [
[
'account_category' => '<string>',
'account_number' => '<string>',
'alternative_lender_transactions' => [
[
'amount' => '<string>',
'description' => '<string>',
'pk' => 123,
'timestamp' => '2023-11-07T05:31:56Z',
'txn_date' => '07/08/2025'
]
],
'daily_balances' => [

],
'debt_consolidator_txns' => [
[
'amount' => '<string>',
'description' => '<string>',
'pk' => 123,
'timestamp' => '2023-11-07T05:31:56Z',
'txn_date' => '07/08/2025'
]
],
'deposits_max_by_month' => [

],
'estimated_expense_txns_list' => [
[
'amount' => '<string>',
'description' => '<string>',
'pk' => 123,
'timestamp' => '2023-11-07T05:31:56Z',
'txn_date' => '07/08/2025'
]
],
'estimated_revenue_txns_list' => [
[
'amount' => '<string>',
'description' => '<string>',
'pk' => 123,
'timestamp' => '2023-11-07T05:31:56Z',
'txn_date' => '07/08/2025'
]
],
'factor_txns' => [
[
'amount' => '<string>',
'description' => '<string>',
'pk' => 123,
'timestamp' => '2023-11-07T05:31:56Z',
'txn_date' => '07/08/2025'
]
],
'holder_country' => '<string>',
'insurance_credits' => [
[
'amount' => '<string>',
'description' => '<string>',
'pk' => 123,
'timestamp' => '2023-11-07T05:31:56Z',
'txn_date' => '07/08/2025'
]
],
'insurance_debits' => [
[
'amount' => '<string>',
'description' => '<string>',
'pk' => 123,
'timestamp' => '2023-11-07T05:31:56Z',
'txn_date' => '07/08/2025'
]
],
'interbank_transactions' => [
[
'amount' => '<string>',
'description' => '<string>',
'pk' => 123,
'timestamp' => '2023-11-07T05:31:56Z',
'txn_date' => '07/08/2025'
]
],
'merchant_cash_advance_lender_txns' => [
[
'amount' => '<string>',
'description' => '<string>',
'pk' => 123,
'timestamp' => '2023-11-07T05:31:56Z',
'txn_date' => '07/08/2025'
]
],
'non_estimated_revenue_txns_list' => [
[
'amount' => '<string>',
'description' => '<string>',
'pk' => 123,
'timestamp' => '2023-11-07T05:31:56Z',
'txn_date' => '07/08/2025'
]
],
'nsf_transactions' => [
[
'amount' => '<string>',
'description' => '<string>',
'pk' => 123,
'timestamp' => '2023-11-07T05:31:56Z',
'txn_date' => '07/08/2025'
]
],
'nsf_transactions_paid_or_negative_balance' => [
[
'amount' => '<string>',
'description' => '<string>',
'pk' => 123,
'timestamp' => '2023-11-07T05:31:56Z',
'txn_date' => '07/08/2025'
]
],
'nsf_transactions_returned_or_not_paid' => [
[
'amount' => '<string>',
'description' => '<string>',
'pk' => 123,
'timestamp' => '2023-11-07T05:31:56Z',
'txn_date' => '07/08/2025'
]
],
'outside_source_deposits' => [
[
'amount' => '<string>',
'description' => '<string>',
'pk' => 123,
'timestamp' => '2023-11-07T05:31:56Z',
'txn_date' => '07/08/2025'
]
],
'payroll' => [
[
'amount' => '<string>',
'description' => '<string>',
'pk' => 123,
'timestamp' => '2023-11-07T05:31:56Z',
'txn_date' => '07/08/2025'
]
],
'period_balance_mismatches' => [
[
'amount' => '<string>',
'description' => '<string>',
'pk' => 123,
'timestamp' => '2023-11-07T05:31:56Z',
'txn_date' => '07/08/2025'
]
],
'ppp_loan_txns' => [
[
'amount' => '<string>',
'description' => '<string>',
'pk' => 123,
'timestamp' => '2023-11-07T05:31:56Z',
'txn_date' => '07/08/2025'
]
],
'probable_recurring_txns' => [
[
[
'amount' => '<string>',
'description' => '<string>',
'pk' => 123,
'timestamp' => '2023-11-07T05:31:56Z',
'txn_date' => '07/08/2025'
]
]
],
'returned_items' => [
[
'amount' => '<string>',
'description' => '<string>',
'pk' => 123,
'timestamp' => '2023-11-07T05:31:56Z',
'txn_date' => '07/08/2025'
]
],
'round_number_txns' => [
[
'amount' => '<string>',
'description' => '<string>',
'pk' => 123,
'timestamp' => '2023-11-07T05:31:56Z',
'txn_date' => '07/08/2025'
]
],
'txn_count' => 123,
'withdrawals' => [
[
'amount' => '<string>',
'description' => '<string>',
'pk' => 123,
'timestamp' => '2023-11-07T05:31:56Z',
'txn_date' => '07/08/2025'
]
],
'withdrawals_max_by_month' => [

]
]
],
'name' => '<string>'
]
]),
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://app.herondata.io/api/end_users/{end_user_id_or_heron_id}/ocrolus"

payload := strings.NewReader("{\n \"response\": {\n \"bank_accounts\": [\n {\n \"account_category\": \"<string>\",\n \"account_number\": \"<string>\",\n \"alternative_lender_transactions\": [\n {\n \"amount\": \"<string>\",\n \"description\": \"<string>\",\n \"pk\": 123,\n \"timestamp\": \"2023-11-07T05:31:56Z\",\n \"txn_date\": \"07/08/2025\"\n }\n ],\n \"daily_balances\": {},\n \"debt_consolidator_txns\": [\n {\n \"amount\": \"<string>\",\n \"description\": \"<string>\",\n \"pk\": 123,\n \"timestamp\": \"2023-11-07T05:31:56Z\",\n \"txn_date\": \"07/08/2025\"\n }\n ],\n \"deposits_max_by_month\": {},\n \"estimated_expense_txns_list\": [\n {\n \"amount\": \"<string>\",\n \"description\": \"<string>\",\n \"pk\": 123,\n \"timestamp\": \"2023-11-07T05:31:56Z\",\n \"txn_date\": \"07/08/2025\"\n }\n ],\n \"estimated_revenue_txns_list\": [\n {\n \"amount\": \"<string>\",\n \"description\": \"<string>\",\n \"pk\": 123,\n \"timestamp\": \"2023-11-07T05:31:56Z\",\n \"txn_date\": \"07/08/2025\"\n }\n ],\n \"factor_txns\": [\n {\n \"amount\": \"<string>\",\n \"description\": \"<string>\",\n \"pk\": 123,\n \"timestamp\": \"2023-11-07T05:31:56Z\",\n \"txn_date\": \"07/08/2025\"\n }\n ],\n \"holder_country\": \"<string>\",\n \"insurance_credits\": [\n {\n \"amount\": \"<string>\",\n \"description\": \"<string>\",\n \"pk\": 123,\n \"timestamp\": \"2023-11-07T05:31:56Z\",\n \"txn_date\": \"07/08/2025\"\n }\n ],\n \"insurance_debits\": [\n {\n \"amount\": \"<string>\",\n \"description\": \"<string>\",\n \"pk\": 123,\n \"timestamp\": \"2023-11-07T05:31:56Z\",\n \"txn_date\": \"07/08/2025\"\n }\n ],\n \"interbank_transactions\": [\n {\n \"amount\": \"<string>\",\n \"description\": \"<string>\",\n \"pk\": 123,\n \"timestamp\": \"2023-11-07T05:31:56Z\",\n \"txn_date\": \"07/08/2025\"\n }\n ],\n \"merchant_cash_advance_lender_txns\": [\n {\n \"amount\": \"<string>\",\n \"description\": \"<string>\",\n \"pk\": 123,\n \"timestamp\": \"2023-11-07T05:31:56Z\",\n \"txn_date\": \"07/08/2025\"\n }\n ],\n \"non_estimated_revenue_txns_list\": [\n {\n \"amount\": \"<string>\",\n \"description\": \"<string>\",\n \"pk\": 123,\n \"timestamp\": \"2023-11-07T05:31:56Z\",\n \"txn_date\": \"07/08/2025\"\n }\n ],\n \"nsf_transactions\": [\n {\n \"amount\": \"<string>\",\n \"description\": \"<string>\",\n \"pk\": 123,\n \"timestamp\": \"2023-11-07T05:31:56Z\",\n \"txn_date\": \"07/08/2025\"\n }\n ],\n \"nsf_transactions_paid_or_negative_balance\": [\n {\n \"amount\": \"<string>\",\n \"description\": \"<string>\",\n \"pk\": 123,\n \"timestamp\": \"2023-11-07T05:31:56Z\",\n \"txn_date\": \"07/08/2025\"\n }\n ],\n \"nsf_transactions_returned_or_not_paid\": [\n {\n \"amount\": \"<string>\",\n \"description\": \"<string>\",\n \"pk\": 123,\n \"timestamp\": \"2023-11-07T05:31:56Z\",\n \"txn_date\": \"07/08/2025\"\n }\n ],\n \"outside_source_deposits\": [\n {\n \"amount\": \"<string>\",\n \"description\": \"<string>\",\n \"pk\": 123,\n \"timestamp\": \"2023-11-07T05:31:56Z\",\n \"txn_date\": \"07/08/2025\"\n }\n ],\n \"payroll\": [\n {\n \"amount\": \"<string>\",\n \"description\": \"<string>\",\n \"pk\": 123,\n \"timestamp\": \"2023-11-07T05:31:56Z\",\n \"txn_date\": \"07/08/2025\"\n }\n ],\n \"period_balance_mismatches\": [\n {\n \"amount\": \"<string>\",\n \"description\": \"<string>\",\n \"pk\": 123,\n \"timestamp\": \"2023-11-07T05:31:56Z\",\n \"txn_date\": \"07/08/2025\"\n }\n ],\n \"ppp_loan_txns\": [\n {\n \"amount\": \"<string>\",\n \"description\": \"<string>\",\n \"pk\": 123,\n \"timestamp\": \"2023-11-07T05:31:56Z\",\n \"txn_date\": \"07/08/2025\"\n }\n ],\n \"probable_recurring_txns\": [\n [\n {\n \"amount\": \"<string>\",\n \"description\": \"<string>\",\n \"pk\": 123,\n \"timestamp\": \"2023-11-07T05:31:56Z\",\n \"txn_date\": \"07/08/2025\"\n }\n ]\n ],\n \"returned_items\": [\n {\n \"amount\": \"<string>\",\n \"description\": \"<string>\",\n \"pk\": 123,\n \"timestamp\": \"2023-11-07T05:31:56Z\",\n \"txn_date\": \"07/08/2025\"\n }\n ],\n \"round_number_txns\": [\n {\n \"amount\": \"<string>\",\n \"description\": \"<string>\",\n \"pk\": 123,\n \"timestamp\": \"2023-11-07T05:31:56Z\",\n \"txn_date\": \"07/08/2025\"\n }\n ],\n \"txn_count\": 123,\n \"withdrawals\": [\n {\n \"amount\": \"<string>\",\n \"description\": \"<string>\",\n \"pk\": 123,\n \"timestamp\": \"2023-11-07T05:31:56Z\",\n \"txn_date\": \"07/08/2025\"\n }\n ],\n \"withdrawals_max_by_month\": {}\n }\n ],\n \"name\": \"<string>\"\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://app.herondata.io/api/end_users/{end_user_id_or_heron_id}/ocrolus")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"response\": {\n \"bank_accounts\": [\n {\n \"account_category\": \"<string>\",\n \"account_number\": \"<string>\",\n \"alternative_lender_transactions\": [\n {\n \"amount\": \"<string>\",\n \"description\": \"<string>\",\n \"pk\": 123,\n \"timestamp\": \"2023-11-07T05:31:56Z\",\n \"txn_date\": \"07/08/2025\"\n }\n ],\n \"daily_balances\": {},\n \"debt_consolidator_txns\": [\n {\n \"amount\": \"<string>\",\n \"description\": \"<string>\",\n \"pk\": 123,\n \"timestamp\": \"2023-11-07T05:31:56Z\",\n \"txn_date\": \"07/08/2025\"\n }\n ],\n \"deposits_max_by_month\": {},\n \"estimated_expense_txns_list\": [\n {\n \"amount\": \"<string>\",\n \"description\": \"<string>\",\n \"pk\": 123,\n \"timestamp\": \"2023-11-07T05:31:56Z\",\n \"txn_date\": \"07/08/2025\"\n }\n ],\n \"estimated_revenue_txns_list\": [\n {\n \"amount\": \"<string>\",\n \"description\": \"<string>\",\n \"pk\": 123,\n \"timestamp\": \"2023-11-07T05:31:56Z\",\n \"txn_date\": \"07/08/2025\"\n }\n ],\n \"factor_txns\": [\n {\n \"amount\": \"<string>\",\n \"description\": \"<string>\",\n \"pk\": 123,\n \"timestamp\": \"2023-11-07T05:31:56Z\",\n \"txn_date\": \"07/08/2025\"\n }\n ],\n \"holder_country\": \"<string>\",\n \"insurance_credits\": [\n {\n \"amount\": \"<string>\",\n \"description\": \"<string>\",\n \"pk\": 123,\n \"timestamp\": \"2023-11-07T05:31:56Z\",\n \"txn_date\": \"07/08/2025\"\n }\n ],\n \"insurance_debits\": [\n {\n \"amount\": \"<string>\",\n \"description\": \"<string>\",\n \"pk\": 123,\n \"timestamp\": \"2023-11-07T05:31:56Z\",\n \"txn_date\": \"07/08/2025\"\n }\n ],\n \"interbank_transactions\": [\n {\n \"amount\": \"<string>\",\n \"description\": \"<string>\",\n \"pk\": 123,\n \"timestamp\": \"2023-11-07T05:31:56Z\",\n \"txn_date\": \"07/08/2025\"\n }\n ],\n \"merchant_cash_advance_lender_txns\": [\n {\n \"amount\": \"<string>\",\n \"description\": \"<string>\",\n \"pk\": 123,\n \"timestamp\": \"2023-11-07T05:31:56Z\",\n \"txn_date\": \"07/08/2025\"\n }\n ],\n \"non_estimated_revenue_txns_list\": [\n {\n \"amount\": \"<string>\",\n \"description\": \"<string>\",\n \"pk\": 123,\n \"timestamp\": \"2023-11-07T05:31:56Z\",\n \"txn_date\": \"07/08/2025\"\n }\n ],\n \"nsf_transactions\": [\n {\n \"amount\": \"<string>\",\n \"description\": \"<string>\",\n \"pk\": 123,\n \"timestamp\": \"2023-11-07T05:31:56Z\",\n \"txn_date\": \"07/08/2025\"\n }\n ],\n \"nsf_transactions_paid_or_negative_balance\": [\n {\n \"amount\": \"<string>\",\n \"description\": \"<string>\",\n \"pk\": 123,\n \"timestamp\": \"2023-11-07T05:31:56Z\",\n \"txn_date\": \"07/08/2025\"\n }\n ],\n \"nsf_transactions_returned_or_not_paid\": [\n {\n \"amount\": \"<string>\",\n \"description\": \"<string>\",\n \"pk\": 123,\n \"timestamp\": \"2023-11-07T05:31:56Z\",\n \"txn_date\": \"07/08/2025\"\n }\n ],\n \"outside_source_deposits\": [\n {\n \"amount\": \"<string>\",\n \"description\": \"<string>\",\n \"pk\": 123,\n \"timestamp\": \"2023-11-07T05:31:56Z\",\n \"txn_date\": \"07/08/2025\"\n }\n ],\n \"payroll\": [\n {\n \"amount\": \"<string>\",\n \"description\": \"<string>\",\n \"pk\": 123,\n \"timestamp\": \"2023-11-07T05:31:56Z\",\n \"txn_date\": \"07/08/2025\"\n }\n ],\n \"period_balance_mismatches\": [\n {\n \"amount\": \"<string>\",\n \"description\": \"<string>\",\n \"pk\": 123,\n \"timestamp\": \"2023-11-07T05:31:56Z\",\n \"txn_date\": \"07/08/2025\"\n }\n ],\n \"ppp_loan_txns\": [\n {\n \"amount\": \"<string>\",\n \"description\": \"<string>\",\n \"pk\": 123,\n \"timestamp\": \"2023-11-07T05:31:56Z\",\n \"txn_date\": \"07/08/2025\"\n }\n ],\n \"probable_recurring_txns\": [\n [\n {\n \"amount\": \"<string>\",\n \"description\": \"<string>\",\n \"pk\": 123,\n \"timestamp\": \"2023-11-07T05:31:56Z\",\n \"txn_date\": \"07/08/2025\"\n }\n ]\n ],\n \"returned_items\": [\n {\n \"amount\": \"<string>\",\n \"description\": \"<string>\",\n \"pk\": 123,\n \"timestamp\": \"2023-11-07T05:31:56Z\",\n \"txn_date\": \"07/08/2025\"\n }\n ],\n \"round_number_txns\": [\n {\n \"amount\": \"<string>\",\n \"description\": \"<string>\",\n \"pk\": 123,\n \"timestamp\": \"2023-11-07T05:31:56Z\",\n \"txn_date\": \"07/08/2025\"\n }\n ],\n \"txn_count\": 123,\n \"withdrawals\": [\n {\n \"amount\": \"<string>\",\n \"description\": \"<string>\",\n \"pk\": 123,\n \"timestamp\": \"2023-11-07T05:31:56Z\",\n \"txn_date\": \"07/08/2025\"\n }\n ],\n \"withdrawals_max_by_month\": {}\n }\n ],\n \"name\": \"<string>\"\n }\n}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://app.herondata.io/api/end_users/{end_user_id_or_heron_id}/ocrolus")

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 \"response\": {\n \"bank_accounts\": [\n {\n \"account_category\": \"<string>\",\n \"account_number\": \"<string>\",\n \"alternative_lender_transactions\": [\n {\n \"amount\": \"<string>\",\n \"description\": \"<string>\",\n \"pk\": 123,\n \"timestamp\": \"2023-11-07T05:31:56Z\",\n \"txn_date\": \"07/08/2025\"\n }\n ],\n \"daily_balances\": {},\n \"debt_consolidator_txns\": [\n {\n \"amount\": \"<string>\",\n \"description\": \"<string>\",\n \"pk\": 123,\n \"timestamp\": \"2023-11-07T05:31:56Z\",\n \"txn_date\": \"07/08/2025\"\n }\n ],\n \"deposits_max_by_month\": {},\n \"estimated_expense_txns_list\": [\n {\n \"amount\": \"<string>\",\n \"description\": \"<string>\",\n \"pk\": 123,\n \"timestamp\": \"2023-11-07T05:31:56Z\",\n \"txn_date\": \"07/08/2025\"\n }\n ],\n \"estimated_revenue_txns_list\": [\n {\n \"amount\": \"<string>\",\n \"description\": \"<string>\",\n \"pk\": 123,\n \"timestamp\": \"2023-11-07T05:31:56Z\",\n \"txn_date\": \"07/08/2025\"\n }\n ],\n \"factor_txns\": [\n {\n \"amount\": \"<string>\",\n \"description\": \"<string>\",\n \"pk\": 123,\n \"timestamp\": \"2023-11-07T05:31:56Z\",\n \"txn_date\": \"07/08/2025\"\n }\n ],\n \"holder_country\": \"<string>\",\n \"insurance_credits\": [\n {\n \"amount\": \"<string>\",\n \"description\": \"<string>\",\n \"pk\": 123,\n \"timestamp\": \"2023-11-07T05:31:56Z\",\n \"txn_date\": \"07/08/2025\"\n }\n ],\n \"insurance_debits\": [\n {\n \"amount\": \"<string>\",\n \"description\": \"<string>\",\n \"pk\": 123,\n \"timestamp\": \"2023-11-07T05:31:56Z\",\n \"txn_date\": \"07/08/2025\"\n }\n ],\n \"interbank_transactions\": [\n {\n \"amount\": \"<string>\",\n \"description\": \"<string>\",\n \"pk\": 123,\n \"timestamp\": \"2023-11-07T05:31:56Z\",\n \"txn_date\": \"07/08/2025\"\n }\n ],\n \"merchant_cash_advance_lender_txns\": [\n {\n \"amount\": \"<string>\",\n \"description\": \"<string>\",\n \"pk\": 123,\n \"timestamp\": \"2023-11-07T05:31:56Z\",\n \"txn_date\": \"07/08/2025\"\n }\n ],\n \"non_estimated_revenue_txns_list\": [\n {\n \"amount\": \"<string>\",\n \"description\": \"<string>\",\n \"pk\": 123,\n \"timestamp\": \"2023-11-07T05:31:56Z\",\n \"txn_date\": \"07/08/2025\"\n }\n ],\n \"nsf_transactions\": [\n {\n \"amount\": \"<string>\",\n \"description\": \"<string>\",\n \"pk\": 123,\n \"timestamp\": \"2023-11-07T05:31:56Z\",\n \"txn_date\": \"07/08/2025\"\n }\n ],\n \"nsf_transactions_paid_or_negative_balance\": [\n {\n \"amount\": \"<string>\",\n \"description\": \"<string>\",\n \"pk\": 123,\n \"timestamp\": \"2023-11-07T05:31:56Z\",\n \"txn_date\": \"07/08/2025\"\n }\n ],\n \"nsf_transactions_returned_or_not_paid\": [\n {\n \"amount\": \"<string>\",\n \"description\": \"<string>\",\n \"pk\": 123,\n \"timestamp\": \"2023-11-07T05:31:56Z\",\n \"txn_date\": \"07/08/2025\"\n }\n ],\n \"outside_source_deposits\": [\n {\n \"amount\": \"<string>\",\n \"description\": \"<string>\",\n \"pk\": 123,\n \"timestamp\": \"2023-11-07T05:31:56Z\",\n \"txn_date\": \"07/08/2025\"\n }\n ],\n \"payroll\": [\n {\n \"amount\": \"<string>\",\n \"description\": \"<string>\",\n \"pk\": 123,\n \"timestamp\": \"2023-11-07T05:31:56Z\",\n \"txn_date\": \"07/08/2025\"\n }\n ],\n \"period_balance_mismatches\": [\n {\n \"amount\": \"<string>\",\n \"description\": \"<string>\",\n \"pk\": 123,\n \"timestamp\": \"2023-11-07T05:31:56Z\",\n \"txn_date\": \"07/08/2025\"\n }\n ],\n \"ppp_loan_txns\": [\n {\n \"amount\": \"<string>\",\n \"description\": \"<string>\",\n \"pk\": 123,\n \"timestamp\": \"2023-11-07T05:31:56Z\",\n \"txn_date\": \"07/08/2025\"\n }\n ],\n \"probable_recurring_txns\": [\n [\n {\n \"amount\": \"<string>\",\n \"description\": \"<string>\",\n \"pk\": 123,\n \"timestamp\": \"2023-11-07T05:31:56Z\",\n \"txn_date\": \"07/08/2025\"\n }\n ]\n ],\n \"returned_items\": [\n {\n \"amount\": \"<string>\",\n \"description\": \"<string>\",\n \"pk\": 123,\n \"timestamp\": \"2023-11-07T05:31:56Z\",\n \"txn_date\": \"07/08/2025\"\n }\n ],\n \"round_number_txns\": [\n {\n \"amount\": \"<string>\",\n \"description\": \"<string>\",\n \"pk\": 123,\n \"timestamp\": \"2023-11-07T05:31:56Z\",\n \"txn_date\": \"07/08/2025\"\n }\n ],\n \"txn_count\": 123,\n \"withdrawals\": [\n {\n \"amount\": \"<string>\",\n \"description\": \"<string>\",\n \"pk\": 123,\n \"timestamp\": \"2023-11-07T05:31:56Z\",\n \"txn_date\": \"07/08/2025\"\n }\n ],\n \"withdrawals_max_by_month\": {}\n }\n ],\n \"name\": \"<string>\"\n }\n}"

response = http.request(request)
puts response.read_body
{
  "_summary": {
    "request_id": "<string>"
  }
}

Authorizations

x-api-key
string
header
required

Path Parameters

end_user_id_or_heron_id
string
required

The end_user_id or heron_id of EndUser to upload

Query Parameters

skip_num_txns_check
boolean

Skip the check for the number of transactions in the payload

Body

application/json
response
object
required

Response

201 - application/json

OK

_summary
object