从PHP内置的外部系统开始,我编写了以下内容来调用创建客户帐户的API:
'customer' =>
array (
'first_name' => $_POST['datalog']['firstName'],
'last_name' => $_POST['datalog']['lastName'],
'email' => $_POST['datalog']['email'],
'verified_email'=> true,
'password'=> $rand_pass,
'password_confirmation' => $rand_pass,
//'send_email_welcome' => true,
'send_email_invite' => true,
),
客户的创建工作正常,但他们没有收到任何邀请电子邮件。我已按照Shopify文档:https://help.shopify.com/api/reference/customer