Skip to content

Renewal methods: open

The Renewal Verbs open as typed SDK methods, with inputs, result, refusals and an example.

Reference for Renewal, one group of Renewal methods.

Renewal.open

Open starts the Renewal for a term Subscription before its term ends, with a usage review and any notice the legal floor requires. Verb page.

TypeScript
interface RenewalVerbs {
  open(input: RenewalOpenInput, options?: SB.CallOptions): SB.Call<Renewal>
}

Emits Renewal.opened.

Inputs

InputTypeRequiredDescription
subscriptionSubscriptionrequiredThe Subscription whose term is ending.

Returns

OutputTypeRequiredDescription
renewalRenewalrequiredThe open Renewal.

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.None.

Example

TypeScript
import { $ } from 'startup-builder'

const renewal = await $.Renewal.open({ subscription: 'sub_whVFaHKWIV' })