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