Setup
To use the SubscriptionOptions API, install the @wix/stores
package using npm or Yarn:
1npm install @wix/stores
or
1yarn add @wix/stores
Then import { subscriptionOptions }
from @wix/stores
:
1import { subscriptionOptions } from '@wix/stores'
This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Updates multiple subscription options. Only parameters passed will be updated.
Deprecation Notice:
This endpoint has been deprecated and will be removed on January 29, 2024.
Permission Scopes
For app development, you must have one of the following permission scopes:function bulkUpdateSubscriptionOptions(subscriptionOptions: Array<SubscriptionOption>): Promise<BulkUpdateSubscriptionOptionsResponse>
Subscription options info. Only the passed parameters in each subscription option will be updated.
This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Creates a subscription option.
To assign to a product, call assignSubscriptionOptionsToProduct()
.
Subscription options that are not assigned to a product will not be visible in the Wix business manager.
Permission Scopes
For app development, you must have one of the following permission scopes:function createSubscriptionOption(subscriptionOption: SubscriptionOption): Promise<SubscriptionOption>
Subscription option info.
This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Deletes a subscription option.
Deprecation Notice:
This endpoint has been deprecated and will be removed on January 29, 2024.
Permission Scopes
For app development, you must have one of the following permission scopes:function deleteSubscriptionOption(_id: string): Promise<void>
ID of the subscription option to delete.