Renewal .create
POST /{namespace}/renewals
Creates a Renewal.
- Noun
- Renewal
- Mode
do- Event
Renewal.created
Create makes a new Renewal from the inputs below. It is inherited: every Noun has get, list, create, update and delete.
Inputs
| Input | Type | Required | Description |
|---|---|---|---|
value | money | What the Deal is worth if won. | |
owner | Worker | The Worker who runs it. | |
closesOn | date | The date the buyer expects to decide. | |
nextStep | text | The next dated step agreed with the buyer. | |
termEndsAt | datetime | required | When the current term ends, read from the Subscription. |
openedAt | datetime | required | When it opened: by default 90 days before the term ends. |
usageReview | text | Usage against each Entitlement over the term, written before any Quote. | |
noticeSentAt | datetime | When the renewal notice the legal floor requires went out, with the date, Price and cancel link. | |
saveOffer | text | The one save offer shown on cancel; it never blocks the cancel. | |
subscription | Subscription | Each Renewal decides one term of one Subscription; a Subscription has one Renewal per term. |
Outputs
| Output | Type | Required | Description |
|---|---|---|---|
renewal | Renewal | required | The Renewal. |
Effects
- Emits
Renewal.created. - Two-way:
try,send,do.
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. | Renewal.create |
When it waits
| Gate | Default |
|---|---|
| Decision class | Low: two-way, nothing at stake |
| Delay window | None: it runs once review passes. |
| Limit | The call Limit of the Permission it runs under. |
| Over the Limit | It 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. |