Skip to content

Subscription.renew

POST /{namespace}/subscriptions/{subscription}/renew

Renew starts a Subscription’s next period and bills it at the Offer Version the Customer accepted.

Mode
do
Event
Subscription.renewed

Inputs

InputTypeRequiredDescription
subscriptionSubscriptionrequiredThe Subscription to renew.

Outputs

OutputTypeRequiredDescription
invoiceInvoicerequiredThe Invoice for the new period.
subscriptionSubscriptionrequiredThe Subscription in its new period.

Effects

  • Emits Subscription.renewed.
  • Performed by the Billing Specialist.
  • Two-way: it runs at once, in the try, send and do modes.
  • Runs on the period boundary with no caller.
  • Suspends Entitlements when payment fails after every retry.

Refuses when

CheckErrorFixThen call
The operation is part of an Offer the caller has not accepted or paid for.payment-requiredAccept the Offer named in the response, then retry the call.Offer.accept
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.Subscription.renew

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.