Register Customer using API
webapi.xml
<route url="/V1/customers" method="POST">
<service class="Magento\Customer\Api\AccountManagementInterface" method="createAccount"/>
<resources>
<resource ref="anonymous"/>
</resources>
</route>
url http://<magento-host>/rest/V1/customers
url action :: POST
Body > raw > JSON(application/json)
{
"customer":{
"email":"[email protected]",
"firstname":"Aditya",
"lastname":"Shah",
"websiteId":"1",
"addresses":[
{
"customer_id":"1",
"firstname":"Aditya",
"lastname":"Shah",
"company":"ABC Manufacturing",
"telephone":"555-555-5555",
"city":"Boston",
"region":"Massachusetts",
"postcode":"02115",
"country_id":"US",
"street":[
"404 Main Street",
"PO Box 321"
]
}
]
},
"password": "Account@123"
}