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.

transactions StorageTransaction[], required

The transactions to create in the storage.

Response

{
    "data": {
        "insights_consumer_id" : String,
        "insights_account_id" : String
    }
}

data.insights_consumer_id String, always present

The insights_consumer_id of the stored data.

data.insights_account_id String, always present

The insights_account_id of the stored data.

results matching ""

    No results matching ""