Skip to content

Transaction.categorize

POST /{namespace}/transactions/{transaction}/categorize

Categorize codes a Transaction to an account in the chart by the Startup’s Policy and flags a low-confidence code for review.

Mode
do
Event
Transaction.categorized

Inputs

InputTypeRequiredDescription
transactionTransactionrequiredThe Transaction to code.
accountstringThe account code to use in place of the Policy’s choice.

Outputs

OutputTypeRequiredDescription
transactionTransactionrequiredThe coded Transaction.
accountstringrequiredThe account code it was coded to.
confidencenumberrequiredHow sure the code is, from 0 to 1.

Effects

  • Emits Transaction.categorized.
  • Performed by the Finance Lead.
  • Two-way: it runs at once, in the try, send and do modes.
  • Below the Policy’s confidence threshold, opens a review Task for the Finance Lead.
  • A new code posts a reversing pair and a new pair; the first pair stays.

Refuses when

CheckErrorFixThen call
The key is valid, but its scopes do not allow this operation.forbiddenUse a key whose scopes cover the operation, or ask an owner of the namespace to grant them.Transaction.categorize

When it waits

GateDefault
Decision classLow: two-way, nothing at stake
Delay windowNone: it runs once review passes.
LimitThe call Limit of the Permission it runs under.
Over the LimitIt waits pending for an Approval from the Founder. Approved, it runs; refused, it ends refused with limit-exceeded; unanswered by its deadline, it ends canceled.