This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Sums tip distribution amounts, given the provided filtering.
function sumTipDistributionAmounts(
filter: Record<string, any>,
): Promise<SumTipDistributionAmountsResponse>;
Filter object in the following format:
"filter" : { "fieldName1": "value1", "fieldName2":{"$operator":"value2"} }
Example of operators: $eq
, $ne
, $lt
, $lte
, $gt
, $gte
, $in
, $hasSome
, $hasAll
, $startsWith
, $contains
import { tips } from "@wix/ecom";
async function sumTipDistributionAmounts(filter) {
const response = await tips.sumTipDistributionAmounts(filter);
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.