Setup

To use the SubscriptionOptions API, install the @wix/stores package using npm or Yarn:

Copy
1
npm install @wix/stores

or

Copy
1
yarn add @wix/stores

Then import { subscriptionOptions } from @wix/stores:

Copy
1
import { subscriptionOptions } from '@wix/stores'
Was this helpful?
Yes
No

bulkUpdateSubscriptionOptions( )

Developer Preview

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:
Manage Stores - all permissions
Manage Products
Learn more about permission scopes.
Copy
function bulkUpdateSubscriptionOptions(subscriptionOptions: Array<SubscriptionOption>): Promise<BulkUpdateSubscriptionOptionsResponse>
Method Parameters
subscriptionOptionsArray<SubscriptionOption>Required

Subscription options info. Only the passed parameters in each subscription option will be updated.

Returns
Return Type:Promise<BulkUpdateSubscriptionOptionsResponse>
Was this helpful?
Yes
No

createSubscriptionOption( )

Developer Preview

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:
Manage Stores - all permissions
Manage Products
Learn more about permission scopes.
Copy
function createSubscriptionOption(subscriptionOption: SubscriptionOption): Promise<SubscriptionOption>
Method Parameters
subscriptionOptionSubscriptionOptionRequired

Subscription option info.

Returns
Return Type:Promise<SubscriptionOption>
Was this helpful?
Yes
No

deleteSubscriptionOption( )

Developer Preview

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:
Manage Stores - all permissions
Manage Products
Learn more about permission scopes.
Copy
function deleteSubscriptionOption(_id: string): Promise<void>
Method Parameters
_idstringRequired

ID of the subscription option to delete.

Was this helpful?
Yes
No