Rivier/ Reference/ accounting

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

  • spentOnstringrequired
    Pattern: ^\d{4}-\d{2}-\d{2}$.
  • merchantstring
    Default: . At most 200 characters.
  • descriptionstring
    Default: . At most 300 characters.
  • accountstringrequired
    At most 40 characters.
  • paidFromstring
    bank, card or cash account code; default the main bank account At most 40 characters.
  • currencystring
    Pattern: ^[a-z]{3}$.
  • grossMinorintegerrequired
    At most 99999999999.
  • taxRateBpinteger
    Default: 0. At least 0. At most 10000.
  • taxCategorystring
    One of: S, Z, E, AE, K, G, O, L, M. Default: S.
  • receiptIdstring (uuid)
  • idempotencyKeystringrequired
    At most 120 characters.

Responses

  • 201application/json
    Success
    • 400application/json
      The request was malformed
      • errorstringrequired
      • messagestring
    • 401application/json
      No valid credential
      • errorstringrequired
      • messagestring
    • 403application/json
      The credential lacks the scope, origin or address
      • errorstringrequired
      • messagestring
    • 429application/json
      Over the key's rate limit; see Retry-After
      • errorstringrequired
      • messagestring

    This page as Markdown