upsert - Tax Module Reference
This documentation provides a reference to the upsert
method. This belongs to the Tax Module.
upsert(data, sharedContext?): Promise<TaxRateDTO>
This method updates or creates a tax rate if it doesn't exist.
Example
Parameters
The attributes in the tax rate to be created or updated.
Returns
The created or updated tax rate.
upsert(data, sharedContext?): Promise<TaxRateDTO[]>
This method updates or creates tax rates if they don't exist.
Example
Parameters
The attributes in the tax rates to be created or updated.
Returns
The created or updated tax rates.
Was this section helpful?