curl --request POST \
--url https://app.herondata.io/api/transactions \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"transactions": [
{
"amount": -42.42,
"description": "GOOGLE *ADS12340929 [email protected] US",
"account_id": "checking_account_202348",
"balance": 423,
"categories_default": "shopping",
"currency": "USD",
"date": "2020-04-27",
"end_user_id": "my_best_customer_203948",
"mcc_code": "<string>",
"order": 123,
"reference_id": "my_favourite_transaction_231098",
"timestamp": "2021-11-12T10:38:05Z",
"transaction_code": "card"
}
]
}
'{
"_summary": {
"request_id": "<string>"
},
"transactions": [
{
"amount": -42.42,
"description": "GOOGLE *ADS12340929 [email protected] US",
"account_id": "checking_account_202348",
"balance": 423,
"categories": [
{
"annotator": "predicted",
"confidence": 0.5,
"heron_id": "ctg_KdU6wWmGSirLaroMKMBC9W",
"label": "Rent",
"model_version": "f5dc95c9-cbbc-48bb-bc94-4e4a44f24d63"
}
],
"currency": "USD",
"description_clean": "GOOGLE ADS",
"duplicate_of_id": "txn_7Bw88kjrQmo5Vko56fFa5u",
"end_user_id": "my_best_customer_203948",
"has_matching_transaction": true,
"is_potential_duplicate": true,
"is_recurring": true,
"merchant": {
"name": "<string>",
"url": "<string>",
"categories": [
{
"code": "7311",
"description": "Advertising services",
"slug": "advertising_services"
}
],
"group_id": "Uber",
"heron_id": "mrc_5JzGMsVvAMgFd68isytoS8",
"icon_url": "<string>",
"is_priority": true,
"logo_url": "<string>"
},
"payment_processor": {
"heron_id": "mrc_nRYdGU7nYuevb7qem65cEb",
"icon_url": "https://storage.googleapis.com/heron-merchant-assets/icons/mrc_nRYdGU7nYuevb7qem65cEb.svg",
"logo_url": "https://storage.googleapis.com/heron-merchant-assets/logos/mrc_nRYdGU7nYuevb7qem65cEb.svg",
"name": "Paypal",
"url": "https://www.paypal.com"
},
"reference_id": "my_favourite_transaction_231098",
"request_id": "req_hi3eGHpHoTU5HZisZrdmTt",
"timestamp": "2021-11-12T10:38:05Z",
"transaction_code": "card"
}
]
}Enrich and categorize transactions and consume them in a sync response. For business lending and underwriting, please use “Create end user transactions” instead. Please send a maximum of 249 transactions per request.
curl --request POST \
--url https://app.herondata.io/api/transactions \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"transactions": [
{
"amount": -42.42,
"description": "GOOGLE *ADS12340929 [email protected] US",
"account_id": "checking_account_202348",
"balance": 423,
"categories_default": "shopping",
"currency": "USD",
"date": "2020-04-27",
"end_user_id": "my_best_customer_203948",
"mcc_code": "<string>",
"order": 123,
"reference_id": "my_favourite_transaction_231098",
"timestamp": "2021-11-12T10:38:05Z",
"transaction_code": "card"
}
]
}
'{
"_summary": {
"request_id": "<string>"
},
"transactions": [
{
"amount": -42.42,
"description": "GOOGLE *ADS12340929 [email protected] US",
"account_id": "checking_account_202348",
"balance": 423,
"categories": [
{
"annotator": "predicted",
"confidence": 0.5,
"heron_id": "ctg_KdU6wWmGSirLaroMKMBC9W",
"label": "Rent",
"model_version": "f5dc95c9-cbbc-48bb-bc94-4e4a44f24d63"
}
],
"currency": "USD",
"description_clean": "GOOGLE ADS",
"duplicate_of_id": "txn_7Bw88kjrQmo5Vko56fFa5u",
"end_user_id": "my_best_customer_203948",
"has_matching_transaction": true,
"is_potential_duplicate": true,
"is_recurring": true,
"merchant": {
"name": "<string>",
"url": "<string>",
"categories": [
{
"code": "7311",
"description": "Advertising services",
"slug": "advertising_services"
}
],
"group_id": "Uber",
"heron_id": "mrc_5JzGMsVvAMgFd68isytoS8",
"icon_url": "<string>",
"is_priority": true,
"logo_url": "<string>"
},
"payment_processor": {
"heron_id": "mrc_nRYdGU7nYuevb7qem65cEb",
"icon_url": "https://storage.googleapis.com/heron-merchant-assets/icons/mrc_nRYdGU7nYuevb7qem65cEb.svg",
"logo_url": "https://storage.googleapis.com/heron-merchant-assets/logos/mrc_nRYdGU7nYuevb7qem65cEb.svg",
"name": "Paypal",
"url": "https://www.paypal.com"
},
"reference_id": "my_favourite_transaction_231098",
"request_id": "req_hi3eGHpHoTU5HZisZrdmTt",
"timestamp": "2021-11-12T10:38:05Z",
"transaction_code": "card"
}
]
}1Show child attributes
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
The text description for the transaction
"GOOGLE *ADS12340929 [email protected] US"
Your unique ID for account associated with transaction
400"checking_account_202348"
The running balance of the account after transaction ocurred
423
Category of transaction that you may have received from other sources
"shopping"
ISO 4217 currency code
3"USD"
The date of the transaction; 'timestamp' field takes priority over 'date'
"2020-04-27"
Your unique ID for end user associated with transaction
140"my_best_customer_203948"
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
Your unique ID for transaction
140"my_favourite_transaction_231098"
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"
OK
only returned for sync enrichment requests
Show child attributes
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
The text description for the transaction
"GOOGLE *ADS12340929 [email protected] US"
Your unique ID for account associated with transaction
400"checking_account_202348"
The running balance of the account after transaction ocurred
423
The category associated with the transaction
Show child attributes
Annotator type
"predicted"
The confidence associated with the category annotation
0.5
Unique ID of category; generated by Heron Data
"ctg_KdU6wWmGSirLaroMKMBC9W"
Label of category
"Rent"
The model version that produced the categorisation
"f5dc95c9-cbbc-48bb-bc94-4e4a44f24d63"
ISO 4217 currency code
3"USD"
The cleaned description of the transaction
"GOOGLE ADS"
Indicates that the transaction is a duplicate and gives the heron_id of the original
"txn_7Bw88kjrQmo5Vko56fFa5u"
Your unique ID for end user associated with transaction
140"my_best_customer_203948"
Whether the transaction is a transfer; requires end_user_id and timestamp to be present
Indicates whether the transaction has another transaction similar to it
Whether the transaction is recurring or not; requires end_user_id and timestamp to be present
The merchant associated with the transaction
Show child attributes
Uber, Google, Intuit, debt.mca_or_rbf, debt.non_bank_business, debt.equipment_and_auto_leasing, debt.mortgage, debt.personal_non_mortgage, debt.collections, debt.bank, invoice_factoring, "mrc_5JzGMsVvAMgFd68isytoS8"
The payment processor associated with the transaction
Show child attributes
"mrc_nRYdGU7nYuevb7qem65cEb"
"https://storage.googleapis.com/heron-merchant-assets/icons/mrc_nRYdGU7nYuevb7qem65cEb.svg"
"https://storage.googleapis.com/heron-merchant-assets/logos/mrc_nRYdGU7nYuevb7qem65cEb.svg"
"Paypal"
"https://www.paypal.com"
Your unique ID for transaction
140"my_favourite_transaction_231098"
ID associated with request, e.g., all transactions in same POST request will have same request_id
"req_hi3eGHpHoTU5HZisZrdmTt"
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"
Was this page helpful?