Admin Rest API add address when creating new customer

DennisKr
Tourist
5 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,
})
```
Reply 1 (1)
DennisKr
Tourist
5 0 1