Retrieves a referring customer by referral code.
function getReferringCustomerByReferralCode(
referralCode: string,
): Promise<GetReferringCustomerByReferralCodeResponse>;
Referral code of the referring customer to retrieve.
import { customers } from "@wix/referral";
async function getReferringCustomerByReferralCode(referralCode) {
const response =
await customers.getReferringCustomerByReferralCode(referralCode);
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.