Skip to content

Subscription.resize

POST /{namespace}/subscriptions/{subscription}/resize

Resize changes how many units a Subscription holds and prorates the current period.

Mode
do
Event
Subscription.resized

Inputs

InputTypeRequiredDescription
subscriptionSubscriptionrequiredThe Subscription to change.
quantityintegerrequiredThe new unit count.

Outputs

OutputTypeRequiredDescription
subscriptionSubscriptionrequiredThe Subscription at its new quantity.

Effects

  • Emits Subscription.resized.
  • Performed by the Billing Specialist.
  • Two-way: it runs at once, in the try, send and do modes.
  • Bills or credits the prorated difference at once.
  • A lower quantity takes effect at the next period.

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.Subscription.resize

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.