POST
/
api
/
end_users
/
{end_user_id_or_heron_id}
/
transactions
curl --request POST \
  --url https://app.herondata.io/api/end_users/{end_user_id_or_heron_id}/transactions \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '{
  "balances": [
    {
      "account_id": "checking_account_202348",
      "batch_closing_balance": 25000.45
    }
  ],
  "transactions": [
    {
      "account_id": "checking_account_202348",
      "amount": -42.42,
      "balance": 423,
      "categories_default": "shopping",
      "currency": "USD",
      "date": "2020-04-27",
      "description": "GOOGLE *ADS12340929 [email protected] US",
      "mcc_code": "<string>",
      "order": 123,
      "reference_id": "my_favourite_transaction_231098",
      "timestamp": "2021-11-12T10:38:05Z",
      "transaction_code": "card"
    }
  ]
}'
{
  "request_id": "<string>",
  "transactions_loaded": 123
}

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

end_user_id_or_heron_id
string
required

Body

application/json
transactions
object[]
required
balances
object[] | null

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.

Response

201 - application/json
OK
request_id
string

Unique UUID per request

transactions_loaded
integer

The number of transactions loaded