Tink.Enrichment.OnDemand (Tink v1.0.0)

Copy Markdown View Source

On-demand transaction enrichment — enrich transactions without aggregation. Requires enrichment.on-demand scope.

Example

Tink.Enrichment.OnDemand.enrich(client, [
  %{
    "description" => "SPOTIFY AB",
    "amount"      => %{"value" => %{"scale" => 2, "unscaledValue" => 999}, "currencyCode" => "SEK"},
    "dates"       => %{"booked" => "2024-01-15"},
    "id"          => "ext-tx-001"
  }
])

Summary

Functions

Enrich a list of transactions on demand.

Functions

enrich(client, transactions)

@spec enrich(Tink.Client.t(), [map()]) :: {:ok, map()} | {:error, Tink.Error.t()}

Enrich a list of transactions on demand.