Developers
API reference

Unusual Charges

get/v1/unusual-charges

List unusual charges

unusual_charges.listread tokenidempotent

Charges in the last days that are far above what their counterparty usually takes, newest first: at least twice the median of its charges in the year before, above every one of them and 25 over, with three or more to go on. A charge no larger than one the user called expected, from the same counterparty in the 400 days before, is not unusual.

Parameters

days
integer · query
How many days back to look.
include_expected
boolean · query
Also list the charges the user answered "that's expected".
limit
integer · query
Page size, 1–200.
cursor
string | null · query
The next_cursor of the previous page.
X-Organization-Id
string | null · header

Returns 200 · UnusualChargeList

data
array of UnusualCharge · required
has_more
boolean · required
next_cursor
string | null · required
Example
curl -X GET "https://api.lumaledger.app/v1/unusual-charges" \
  -H "Authorization: Bearer $LUMALEDGER_TOKEN"

Objects

Money

An amount and its currency. `amount` is a base-10 string with two decimal places and an optional leading minus sign. Parse it with a decimal type, not a float.

Fields

amount
string · required
Pattern: ^-?\d+\.\d{2}$.
currency
string · required
ISO 4217 code. Pattern: ^[A-Z]{3}$.

UnusualCharge

One charge far above what its counterparty usually takes.

Fields

amount
Money · required
counterparty_key
string · required
The counterparty, as counterparties.get keys it.
counterparty_name
string · required
date
date · required
description
string · required
The bank's line.
earlier_charges
integer · required
How many earlier charges the usual was read from.
expected
boolean · required
The user said it was expected.
times_usual
string · required
amount over usual_amount, a decimal string to one place.
transaction_id
integer | null · required
The transaction (transactions.get); its id is the one to send expected to with transactions.update.
usual_amount
Money · required
The median of its earlier charges.

UnusualChargeList

A page of unusual charges, newest first.

Fields

data
array of UnusualCharge · required
has_more
boolean · required
next_cursor
string | null · required