Skip to main content

Function: createSubscription()

createSubscription(session, createRequest, query?): Promise<Subscription>

When creating a subscription via API, order_interval_frequency and charge_interval_frequency values do not necessarily need to match the values set in the respective Plans. The product, however, does need to have at least one Plan in order to be added to a subscription.

Parameters

ParameterType
sessionSession
createRequestCreateSubscriptionRequest
query?BasicSubscriptionParams

Returns

Promise<Subscription>