POST /ledgers/{ledgerId}/expenses to add an expense to a ledger.
Minimum request
amountCents is always the minor unit for the selected currency. For example, 4200 means USD 42.00.
Split types
| Split type | Use when | Split fields |
|---|---|---|
EQUAL | Everyone shares evenly. | userId |
EXACT | Each person has a fixed amount. | userId, amountCents |
PERCENTAGE | Each person has a percentage. | userId, percentageBasisPoints |
SHARES | The cost is divided by share weights. | userId, shares |
Spread one invoice across days
For travel, rent, and hotel invoices, keep one expense record while spreading it across days or nights:allocationUnit: "NIGHTS" for stays where July 5 to July 10 is five nights. Use DAYS when both start and end dates should count as active days.