Create transactions
This endpoint allows to add transactions to an existing account, represented by the Account Insights ID.
Request
POST /insights/v1/storage/transactions/create HTTP/1.1
Content-Type: application/json; charset=utf-8
Authorization: Token <Token>
Host: <Host>
{
"insights_consumer_id": String,
"insights_account_id": String,
"data_retention_minutes": ?Integer,
"transactions": Array<StorageTransaction>
}
insights_consumer_id String, required
The id identifying the consumer to whom the transactions belong.
insights_account_id String, required
The id identifying the account to which the transactions belong.
data_retention_minutes Integer, optional
How long the data should be stored until expiring. Default value is 10 minutes.
Response
{}
Example request
{
"insights_consumer_id": "6c03aff-8fa0046-ffae74-b0cbc-4d5fd1",
"insights_account_id": "c9a87c48-c5c7-404c-ace8-f287e298c4cc",
"transactions": [
{
"insights_transaction_id": "transaction-id-1",
"booking_date": "2022-09-23",
"reference": "xa0h0d0svlsyw0bap0boahuqxb HM online de, ref. 13676134",
"counter_party": {
"holder_name": "Klarna Bank AB"
},
"amount": {
"amount": 3895,
"currency": "EUR"
},
"type": "DEBIT",
"labels": {
"key1": "a value",
"key2": "another value"
}
},
{
"insights_transaction_id": "transaction-id-2",
"booking_date": "2022-09-22",
"reference": "elv138314 12.08 16:38 me0",
"counter_party": {
"holder_name": "Ikea Berlin"
},
"amount": {
"amount": 53478,
"currency": "EUR"
},
"type": "DEBIT"
}
]
}
Example response
{}