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
| Input | Type | Required | Description |
|---|---|---|---|
debit | string | required | The account code debited, such as expense.hosting. |
credit | string | required | The account code credited. |
amount | money | required | The amount and currency. |
memo | text | required | Why the Entry exists. |
Outputs
| Output | Type | Required | Description |
|---|---|---|---|
entry | Entry | required | The 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
sendanddomodes. - 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
| Check | Error | Fix | Then call |
|---|---|---|---|
| The key is valid, but its scopes do not allow this operation. | forbidden | Use a key whose scopes cover the operation, or ask an owner of the namespace to grant them. | Entry.post |
When it waits
| Gate | Default |
|---|---|
| Decision class | Medium: one-way, bounded |
| Delay window | 1 business hour, in which a watcher can pause, redirect or cancel it; then it runs. |
| Limit | The call Limit of the Permission it runs under. |
| Over the Limit | It 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. |