Record an expense (a person's is booked at once
post/accounting/expenses
Record an expense (a person's is booked at once; a key's is a proposal a person confirms).
Before you call
- Credential
Authorization: Bearer $KEY- Scope
accounting:write- Mcp
rivier_accounting_expense_propose- Graphql
Mutation.accountingProposeExpense- Sdk
accounting.expense.create- Cli
accounting expense create
Request bodyapplication/json, required
- spentOnstringrequiredPattern: ^\d{4}-\d{2}-\d{2}$.
- merchantstringDefault: . At most 200 characters.
- descriptionstringDefault: . At most 300 characters.
- accountstringrequiredAt most 40 characters.
- paidFromstringbank, card or cash account code; default the main bank account At most 40 characters.
- currencystringPattern: ^[a-z]{3}$.
- grossMinorintegerrequiredAt most 99999999999.
- taxRateBpintegerDefault: 0. At least 0. At most 10000.
- taxCategorystringOne of: S, Z, E, AE, K, G, O, L, M. Default: S.
- receiptIdstring (uuid)
- idempotencyKeystringrequiredAt most 120 characters.
Responses
- 201application/jsonSuccess
- 400application/jsonThe request was malformed
- errorstringrequired
- messagestring
- 401application/jsonNo valid credential
- errorstringrequired
- messagestring
- 403application/jsonThe credential lacks the scope, origin or address
- errorstringrequired
- messagestring
- 429application/jsonOver the key's rate limit; see Retry-After
- errorstringrequired
- messagestring