- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
- User Guide
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
- User Guide
createPricePreferences - Pricing Module Reference
This documentation provides a reference to the createPricePreferences
method. This belongs to the Pricing Module.
Note: You should only use this methods when implementing complex customizations. For common cases, check out available workflows instead.
createPricePreferences(data, sharedContext?): Promise<PricePreferenceDTO>#
This method is used to create a new price preference.
Example#
To create a price preference with rule:
Parameters#
The attributes of the price preference to create.
Returns#
Promise
Promise<PricePreferenceDTO>The created price preference.
Promise
Promise<PricePreferenceDTO>createPricePreferences(data, sharedContext?): Promise<PricePreferenceDTO[]>#
This method is used to create multiple price preferences.
Example#
Parameters#
data
CreatePricePreferenceDTO[]The price preferences to create.
data
CreatePricePreferenceDTO[]Returns#
Promise
Promise<PricePreferenceDTO[]>The list of created price preferences.
Promise
Promise<PricePreferenceDTO[]>Was this page helpful?