Skip to content

Entry.settle

POST /{namespace}/entries/settle

Settle nets a Period’s intercompany Entries between two Companies into one transfer through Stripe and reconciles both sides.

Noun
Entry
Mode
do
Event
Entry.settled

Inputs

InputTypeRequiredDescription
periodPeriodrequiredThe closed Period whose intercompany pairs settle.
fromCompanyrequiredThe Company that owes the net amount.
toCompanyrequiredThe Company that receives it.

Outputs

OutputTypeRequiredDescription
transactionTransactionrequiredThe one transfer that settles every pair.
entryEntryrequiredThe intercompany Entry, now settled.

Effects

  • Emits Entry.settled.
  • Performed by the Treasurer.
  • One-way (money): it waits out its delay window, and runs in the send and do modes.
  • Runs monthly, once both Companies have closed the Period.
  • Links every settled pair to the Transaction that settled it.

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.settle

When it waits

GateDefault
Decision classMedium: one-way, bounded (money)
Delay window1 business hour, in which a watcher can pause, redirect or cancel it; then it runs.
LimitThe spend Limit of the Permission or Mandate 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.