Admin Rest API add address when creating new customer

DennisKr
Tourist
9 0 1

Hi! Would it be possible to let the customer fill in the address and create an address during Customer Create? So like this:

 

```

const data = await client.post({
path: "customers",
data: {
customer: {
first_name: req.body.firstName,
last_name: req.body.lastName,
email: req.body.email,
verified_email: true,
password: req.body.password,
password_confirmation: req.body.password,
send_email_welcome: true,
addresses: [
{
address1: "xx 11",
city: "xx-xx",
country: "xx",
zip: "xx",
phone: "xx",
last_name: "xx",
first_name: "xx",
},
],
},
},
type: DataType.JSON,
})
```
Replies 2 (2)

DennisKr
Tourist
9 0 1

Someone?

devOrlando
Shopify Partner
9 0 0

doesn't save your addresses?