SubscriptionsEndpoint

Instance Methods

Method Name Description
get(): Promise<LSubscription[]> Get all subscriptions.
find(id: string): Promise<LSubscription> Get a subscription.
update(id: string, data: object): Promise<LSubscription> Update a subscription.
cancel(id: string): Promise<LSubscription> Cancel a subscription.

Example

Givecloud.Account.Subscriptions.update('VZD2MZPE', { amount: 12, billing_period: 'Month' })