Skip to content

Bill.approve

POST /{namespace}/bills/{bill}/approve

Approve accepts a coded Bill for payment within the approver’s Mandate and schedules it for its due date.

Noun
Bill
Mode
do
Event
Bill.approved

Inputs

InputTypeRequiredDescription
billBillrequiredThe coded Bill.

Outputs

OutputTypeRequiredDescription
billBillrequiredThe approved Bill, scheduled for its due date.

Effects

  • Emits Bill.approved.
  • Performed by the Finance Lead.
  • One-way (money): it waits out its delay window, and runs in the send and do modes.
  • Above the Mandate’s Limit, waits for an Approval from the Founder.
  • Schedules Bill.pay for the due date.

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.Bill.approve

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.