Setup
To use the OrdersSettings API, install the @wix/ecom
package using npm or Yarn:
Copy
1npm install @wix/ecom
or
Copy
1yarn add @wix/ecom
Then import { ordersSettings }
from @wix/ecom
:
Copy
1import { ordersSettings } from '@wix/ecom'
Was this helpful?
Yes
No
getOrdersSettings( )
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' order settings.
The getOrdersSettings()
function returns a Promise that resolves to orders settings.
Permission Scopes
For app development, you must have one of the following permission scopes:Learn more about permission scopes.
Copy
function getOrdersSettings(): Promise<GetOrdersSettingsResponse>
Request
This method does not take any parameters
Returns
Return Type:Promise<GetOrdersSettingsResponse>
Was this helpful?
Yes
No
updateOrdersSettings( )
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' orders settings.
The updateOrdersSettings()
function returns a Promise that resolves to the newly updated orders settings.
Permission Scopes
For app development, you must have one of the following permission scopes:Learn more about permission scopes.
Copy
function updateOrdersSettings(ordersSettings: OrdersSettings): Promise<UpdateOrdersSettingsResponse>
Method Parameters
ordersSettingsOrdersSettingsRequired
Orders settings to update.
Returns
Return Type:Promise<UpdateOrdersSettingsResponse>
Was this helpful?
Yes
No