createAccount( )


Creates a loyalty account for one of a site's contacts.

について createAccount() function returns a Promise that resolves to the new loyalty account when it is created.

To create a new loyalty account, the customer must first be a site contact with a contact ID. See contacts to learn more about a site's contacts. The site must also have an active loyalty program before loyalty accounts can be created. See the activateLoyaltyProgram() function to activate a site's loyalty program.

Note: Only visitors with Manage Loyalty permissions can create a loyalty account.

Permissions
Manage Loyalty
Learn more about app permissions.
メソッド宣言
コピー
メソッド・パラメータ
contactIdstringRequired

Contact ID for a Wix site contact. See the Contacts API to learn more.

リターン
Return Type:Promise<CreateAccountResponse>
役に立ちましたか?
はい
いいえ