POST
/
api
/
data_source_accounts
/
{dsa_heron_id_to_update}
/
update_number
curl --request POST \
  --url https://app.herondata.io/api/data_source_accounts/{dsa_heron_id_to_update}/update_number \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '{
  "source_dsa_heron_id": "dsa_8w6V5CuRESc7G5yx3mXF54"
}'
{
  "account_id": "202348",
  "anomaly_score": 200,
  "balances": [
    {
      "closing_amount": 25000.45,
      "currency": "USD",
      "date": "2022-01-01"
    }
  ],
  "currency": "USD",
  "end_date": "2022-01-31",
  "heron_id": "dso_VkXCAcNymkrsLYnhbH76dC",
  "institution_name": "Chase",
  "is_enabled": true,
  "max_date": "2022-01-31",
  "min_date": "2022-01-01",
  "name": "Checking Account",
  "num_transactions": 120,
  "number": "123456789",
  "owner_name": "John Doe",
  "reference_id": "account-202348",
  "start_date": "2022-01-01",
  "transactions_match_balances": true,
  "type": "Checking"
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Path Parameters

dsa_heron_id_to_update
string
required

Body

application/json
source_dsa_heron_id
string
required

The Heron ID of the data source account containing the number we want to update to

Example:

"dsa_8w6V5CuRESc7G5yx3mXF54"

Response

200 - application/json
Ok
is_enabled
boolean
required

Whether or not the account is enabled. If disabled, hides related transactions from analytics

Example:

true

account_id
string

Unique account id associated with the data source account

Example:

"202348"

anomaly_score
integer

For pdf bank statement account sources, where the value is between 0 and 1000, with 1000 being the most anomalous

Example:

200

balances
object[]

List of balances associated with the account

Example:
[
  {
    "closing_amount": 25000.45,
    "currency": "USD",
    "date": "2022-01-01"
  }
]
currency
string

Currency of the account

Example:

"USD"

end_date
string

End date of the account

Example:

"2022-01-31"

heron_id
string

Unique ID for data source generated by Heron

Example:

"dso_VkXCAcNymkrsLYnhbH76dC"

institution_name
string

Name of the institution

Example:

"Chase"

max_date
string

Latest date of transactions associated with the data source account

Example:

"2022-01-31"

min_date
string

Earliest date of transactions associated with the data source account

Example:

"2022-01-01"

name
string

Name of the account

Example:

"Checking Account"

num_transactions
integer

Number of transactions associated with the data source account

Example:

120

number
string

Number of the account

Example:

"123456789"

owner_name
string

Name of the account owner

Example:

"John Doe"

reference_id
string

This is the account ID provided as part of the transaction

Example:

"account-202348"

start_date
string

Start date of the account

Example:

"2022-01-01"

transactions_match_balances
boolean

For pdf bank statements, represents whether all transactions extracted match the balances extracted

Example:

true

type
string

Type of the account

Example:

"Checking"