Updates points balance of multiple accounts. Depending on the BulkAdjustPointsRequest.type: amount - provided amount of points is appended to the accounts balance balance - accounts balance is set to the provided amount
Returns id of the asyncInfra job that takes care of the points adjustment.
function bulkAdjustPoints(
options: BulkAdjustPointsOptions,
): Promise<BulkAdjustPointsResponse>;
import { accounts } from "@wix/loyalty";
async function bulkAdjustPoints(options) {
const response = await accounts.bulkAdjustPoints(options);
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.