am.noz.at.spl.expense

An immutable expense revision header. Items are stored in am.noz.at.spl.item records with the same expenseId and revisionId.

Repository @noz.am did:plc:lmkzmvv6sdxntwtyxpg7fqqq namespace authority
Details · record, key tid
Kindrecord
Record keytid
Authorityspl.at.noz.am
Indexed

Record

record · key tid

Properties

base

ref

The effective revision this revision was based on.

Reference
  • lex:am.noz.at.spl.expense#recordRef

category

string
  • maxLength: 64
  • knownValues: food | transport | accommodation | entertainment | groceries | utilities | shopping | other

createdAt

requiredstring · datetime

currency

requiredstring

Uppercase ISO 4217 currency code.

  • minLength: 3
  • maxLength: 3

description

requiredstring
  • minLength: 1
  • maxLength: 1000
  • maxGraphemes: 200

expenseId

requiredstring

Stable application identifier shared by every revision.

  • minLength: 1
  • maxLength: 64

groupId

string

Optional organizational group or trip within the ledger Space. Omitted for ungrouped expenses.

  • minLength: 1
  • maxLength: 64

itemCount

requiredinteger
  • minimum: 1
  • maximum: 500

merchant

string
  • maxLength: 500
  • maxGraphemes: 120

minorUnit

requiredinteger
  • minimum: 0
  • maximum: 4

notes

string
  • maxLength: 4000
  • maxGraphemes: 1000

occurredAt

requiredstring · datetime

paidBy

requiredarray
  • minLength: 1
  • maxLength: 250
itemsref
Reference
  • lex:am.noz.at.spl.expense#moneyAllocation
  • maxSize: 10000000
  • accept: image/jpeg, image/png, image/webp, application/pdf
  • maxLength: 2000
  • maxGraphemes: 300

recurringSource

string · at-uri

revisionId

requiredstring
  • minLength: 1
  • maxLength: 64

schemaVersion

requiredinteger
  • const: 1

totalMinor

requiredinteger

Exact total in currency minor units; never a floating-point amount.

  • minimum: 1

voided

requiredboolean

A voiding revision replaces destructive deletion in normal application flows.

#moneyAllocation

object

Properties

amountMinor

requiredinteger
  • minimum: 0

did

requiredstring · did

#recordRef

object

Properties

cid

requiredstring · cid

uri

requiredstring · at-uri

Similar lexicons

semantic match

Lexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.

  • A line item belonging to one immutable expense revision.

  • A recurring expense template. Occurrences are materialized as ordinary immutable expenses.

  • An immutable record of money paid between two ledger members, optionally filed in a group.