getReferringCustomer( )


Developer Preview

This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.

Retrieves a referring customer by ID.

Method Declaration
Copy
function getReferringCustomer(
  referringCustomerId: string,
): Promise<ReferringCustomer>;
Method Parameters
referringCustomerIdstringRequired

ID of the referring customer to retrieve.

Returns
Return Type:Promise<ReferringCustomer>
JavaScript
import { customers } from "@wix/referral"; async function getReferringCustomer(referringCustomerId) { const response = await customers.getReferringCustomer(referringCustomerId); }
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?