Add only customer email via the API

New Member
3 0 0

I'm trying to figure out how to add a customer email to my customer base (no account, name, etc., just the email) as if it were a newsletter signup, through the admin api. I can gather that this isn't possible as a post request to /customers, as documentation requires a first and last name. 

 

I want to collect email addresses as part of a custom signup flow, and then later I want to use that email to create an active customer account. this is a separate topic and issue altogether.

 

Anyone have any advice?

0 Likes
Highlighted

Are you sure that first and last names are required? I was just able to add a customer through the API with only email and accepts_marketing:

 

image.png

I'm a software engineer. I make things happen automatically.
0 Likes
Highlighted
New Member
3 0 0
Hmm, I am getting this information from the api docs which pertain to
account creation, so your call makes sense too. Any advice on how to
enabler that customer account later without the customer needing to
activate on their own?
0 Likes