Skip to content

Entry.post

POST /{namespace}/entries/post

Post records a manual Entry pair that no Verb caused, once a second Role approves it.

Noun
Entry
Mode
do
Event
Entry.posted

Inputs

InputTypeRequiredDescription
debitstringrequiredThe account code debited, such as expense.hosting.
creditstringrequiredThe account code credited.
amountmoneyrequiredThe amount and currency.
memotextrequiredWhy the Entry exists.

Outputs

OutputTypeRequiredDescription
entryEntryrequiredThe debit Entry; its credit pair links to it.

Effects

  • Emits Entry.posted.
  • Performed by the Finance Lead.
  • One-way: it waits out its delay window, and runs in the send and do modes.
  • Waits for an Approval from a Role other than the one that asked.
  • A correction to a locked Period posts to the next open Period.

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.Entry.post

When it waits

GateDefault
Decision classMedium: one-way, bounded
Delay window1 business hour, in which a watcher can pause, redirect or cancel it; then it runs.
LimitThe call Limit of the Permission it runs under.
Over the LimitIt waits pending for an Approval from the Treasurer. Approved, it runs; refused, it ends refused with limit-exceeded; unanswered by its deadline, it ends canceled.