Creates a URL for uploading a loyalty import file.
This method is the first step in the loyalty import process. It returns a file path and an upload URL, which you'll use in subsequent steps of the import process.
function createLoyaltyImportFileUrl(): Promise<CreateLoyaltyImportFileUrlResponse>;
import { imports } from "@wix/loyalty";
async function createLoyaltyImportFileUrl() {
const response = await imports.createLoyaltyImportFileUrl();
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.