curl --request POST \
--url https://app.herondata.io/api/end_users/{end_user_id_or_heron_id}/transactions \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"transactions": [
{
"account_id": "checking_account_202348",
"amount": -42.42,
"currency": "USD",
"description": "GOOGLE *ADS12340929 [email protected] US",
"reference_id": "my_favourite_transaction_231098",
"balance": 423,
"categories_default": "shopping",
"date": "2020-04-27",
"mcc_code": "<string>",
"order": 123,
"timestamp": "2021-11-12T10:38:05Z",
"transaction_code": "card"
}
],
"balances": [
{
"account_id": "checking_account_202348",
"batch_closing_balance": 25000.45
}
]
}
'{
"request_id": "<string>",
"transactions_loaded": 123
}Upload transactions for a specific end user. Does not include enriching transactions — set end user status = ‘ready’ to initiate processing. For synchronous enrichment, please instead use “Enrich transactions (sync). Either timestamp (preferred) or date must be present in the transaction payload.”
curl --request POST \
--url https://app.herondata.io/api/end_users/{end_user_id_or_heron_id}/transactions \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"transactions": [
{
"account_id": "checking_account_202348",
"amount": -42.42,
"currency": "USD",
"description": "GOOGLE *ADS12340929 [email protected] US",
"reference_id": "my_favourite_transaction_231098",
"balance": 423,
"categories_default": "shopping",
"date": "2020-04-27",
"mcc_code": "<string>",
"order": 123,
"timestamp": "2021-11-12T10:38:05Z",
"transaction_code": "card"
}
],
"balances": [
{
"account_id": "checking_account_202348",
"batch_closing_balance": 25000.45
}
]
}
'{
"request_id": "<string>",
"transactions_loaded": 123
}1Show child attributes
Your unique ID for account associated with transaction
400"checking_account_202348"
Amount. Inflows to an account should be positive, and outflows from an account should be negative. If using Plaid, please flip the amount sign for all transactions.
-42.42
ISO 4217 currency code
3"USD"
The text description for the transaction
"GOOGLE *ADS12340929 [email protected] US"
Your unique ID for transaction
140"my_favourite_transaction_231098"
The running balance of the account after transaction ocurred
423
Category of transaction that you may have received from other sources
"shopping"
The date of the transaction; 'timestamp' field takes priority over 'date'
"2020-04-27"
Merchant category code associated with transaction that you may have received from other sources
If sending a batch of transactions, the order in which the transaction occurs, where a higher value is equivalent to a more recent transaction
The ISO 8601 timezone aware timestamp of the transaction; takes precedence over 'date'
"2021-11-12T10:38:05Z"
Code associated with transaction to indicate the type of transaction
140"card"
Bank account balance information for a particular account_id. The balance here must be the latest balance after all the transactions in this batch have been applied.
Was this page helpful?