Skip to content

Renewal.create

POST /{namespace}/renewals

Creates a 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

InputTypeRequiredDescription
valuemoneyWhat the Deal is worth if won.
ownerWorkerThe Worker who runs it.
closesOndateThe date the buyer expects to decide.
nextSteptextThe next dated step agreed with the buyer.
termEndsAtdatetimerequiredWhen the current term ends, read from the Subscription.
openedAtdatetimerequiredWhen it opened: by default 90 days before the term ends.
usageReviewtextUsage against each Entitlement over the term, written before any Quote.
noticeSentAtdatetimeWhen the renewal notice the legal floor requires went out, with the date, Price and cancel link.
saveOffertextThe one save offer shown on cancel; it never blocks the cancel.
subscriptionSubscriptionEach Renewal decides one term of one Subscription; a Subscription has one Renewal per term.

Outputs

OutputTypeRequiredDescription
renewalRenewalrequiredThe Renewal.

Effects

  • Emits Renewal.created.
  • Two-way: try, send, do.

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.Renewal.create

When it waits

GateDefault
Decision classLow: two-way, nothing at stake
Delay windowNone: it runs once review passes.
LimitThe call Limit of the Permission 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.