A line item belonging to one immutable expense revision.
tid
Timestamp-based ID
Properties
amountMinor
integer
Required
Exact signed amount in the parent expense's currency minor units. Negative values represent discounts.
category
string
Optional
No description available.
maxLength: 64 bytesfood, transport, accommodation, entertainment, groceries, utilities, shopping, tax, tip, discount, othercreatedAt
string
datetime
Required
An RFC 3339 formatted timestamp.
expenseId
string
Required
No description available.
maxLength: 64 bytesminLength: 1 bytesitemId
string
Required
No description available.
maxLength: 64 bytesminLength: 1 byteslabel
string
Required
No description available.
maxLength: 1000 bytesminLength: 1 bytesmaxGraphemes: 200 graphemesowed
array
of
ref
lex:am.noz.at.spl.item#moneyAllocation
Required
Canonical rounded minor-unit allocations. These, rather than recomputed percentages, drive balances.
maxLength: 250 itemsminLength: 1 itemsquantityMilli
integer
Optional
Optional quantity in thousandths, avoiding floating-point values.
minimum: 1revisionId
string
Required
No description available.
maxLength: 64 bytesminLength: 1 bytesschemaVersion
integer
Required
No description available.
splitRule
union
Required
No description available.
View raw schema
{
"key": "tid",
"type": "record",
"record": {
"type": "object",
"required": [
"schemaVersion",
"expenseId",
"revisionId",
"itemId",
"label",
"amountMinor",
"splitRule",
"owed",
"createdAt"
],
"properties": {
"owed": {
"type": "array",
"items": {
"ref": "lex:am.noz.at.spl.item#moneyAllocation",
"type": "ref"
},
"maxLength": 250,
"minLength": 1,
"description": "Canonical rounded minor-unit allocations. These, rather than recomputed percentages, drive balances."
},
"label": {
"type": "string",
"maxLength": 1000,
"minLength": 1,
"maxGraphemes": 200
},
"itemId": {
"type": "string",
"maxLength": 64,
"minLength": 1
},
"category": {
"type": "string",
"maxLength": 64,
"knownValues": [
"food",
"transport",
"accommodation",
"entertainment",
"groceries",
"utilities",
"shopping",
"tax",
"tip",
"discount",
"other"
]
},
"createdAt": {
"type": "string",
"format": "datetime"
},
"expenseId": {
"type": "string",
"maxLength": 64,
"minLength": 1
},
"splitRule": {
"refs": [
"lex:am.noz.at.spl.item#equalSplit",
"lex:am.noz.at.spl.item#exactSplit",
"lex:am.noz.at.spl.item#percentSplit",
"lex:am.noz.at.spl.item#sharesSplit"
],
"type": "union",
"closed": true
},
"revisionId": {
"type": "string",
"maxLength": 64,
"minLength": 1
},
"amountMinor": {
"type": "integer",
"description": "Exact signed amount in the parent expense's currency minor units. Negative values represent discounts."
},
"quantityMilli": {
"type": "integer",
"minimum": 1,
"description": "Optional quantity in thousandths, avoiding floating-point values."
},
"schemaVersion": {
"type": "integer",
"const": 1
}
}
},
"description": "A line item belonging to one immutable expense revision."
}