- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
- User Guide
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
- User Guide
upsertPricePreferences - Pricing Module Reference
This documentation provides a reference to the upsertPricePreferences
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.
upsertPricePreferences(data, sharedContext?): Promise<PricePreferenceDTO[]>#
This method updates existing price preferences, or creates new ones if they don't exist.
Example#
Parameters#
data
UpsertPricePreferenceDTO[]The attributes to update or create for each price preference.
data
UpsertPricePreferenceDTO[]Returns#
Promise
Promise<PricePreferenceDTO[]>The updated and created price preferences.
Promise
Promise<PricePreferenceDTO[]>upsertPricePreferences(data, sharedContext?): Promise<PricePreferenceDTO>#
This method updates the price preference if it exists, or creates a new ones if it doesn't.
Example#
Parameters#
The attributes to update or create for the new price preference.
Returns#
Promise
Promise<PricePreferenceDTO>The updated or created price preference.
Promise
Promise<PricePreferenceDTO>Was this page helpful?