Create New Customer with "enabled" state through REST API

Hi team!

I’m trying to create new customers through Shopify REST API.

However the new account I created has a “disabled” account state.

Do you know how to create a new customer with “enabled” account state?

(I’ve tried post with password/password confirmation but still same result. )

Here is the data I post when creating new Customer.

array:1 [
  "customer" => array:10 [
    "first_name" => "TEST"
    "last_name" => "Test"
    "email" => "test01@gmail.com"
    "phone" => "+64123456"
    "verified_email" => true
    "addresses" => array:1 [
      0 => array:8 [
        "address1" => "address 1"
        "address2" => "address 2"
        "city" => "Test"
        "phone" => "+64123456"
        "zip" => "12345"
        "last_name" => "Test"
        "first_name" => "TEST"
        "country" => "TS"
      ]
    ]
    "password" => "Happy123"
    "password_confirmation" => "Happy123"
    "send_email_welcome" => "false"
    ]
  ]
]

Thank you in advance!

Hi,

Add send_email_invite=true in the post data.

1 Like