Setup

To use the CheckoutSettings API, install the @wix/ecom package using npm or Yarn:

Copy
1
npm install @wix/ecom

or

Copy
1
yarn add @wix/ecom

Then import { checkoutSettings } from @wix/ecom:

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

getCheckoutSettings( )

Developer Preview

This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.

Retrieves the sites' checkout settings.

The getCheckoutSettings() function returns a Promise that resolves to checkout settings.

Permission Scopes

For app development, you must have one of the following permission scopes:
Manage Stores - all permissions
Read eCommerce - all read permissions
Read Orders
Read Stores - all read permissions
Manage eCommerce - all permissions
Manage Orders
Learn more about permission scopes.
Copy
function getCheckoutSettings(): Promise<GetCheckoutSettingsResponse>
Request
This method does not take any parameters
Returns
Return Type:Promise<GetCheckoutSettingsResponse>
Was this helpful?
Yes
No

updateCheckoutSettings( )

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 the sites' checkout settings.

The updateCheckoutSettings() function returns a Promise that resolves to the newly updated checkout settings.

Permission Scopes

For app development, you must have one of the following permission scopes:
Manage Stores - all permissions
Manage eCommerce - all permissions
Manage Orders
Learn more about permission scopes.
Copy
function updateCheckoutSettings(checkoutSettings: CheckoutSettings): Promise<UpdateCheckoutSettingsResponse>
Method Parameters
checkoutSettingsCheckoutSettingsRequired

Checkout settings to update.

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