I am new to REST Api, I am working on to create customer account via using Rest API but struggling with one error which I am trying to find I authorized account properly but when I try to create new account It gives me an error
First Error
{ "message": "%fieldName is a required field.",
"parameters": {
"fieldName": "customer"
},
Second Error (After adding Customer Param)
"message": "Please enter a customer email.",
I am not sure what i am doing wrong. I tried to use email param but its not working. Can anyone help me with this.
Software use: Postman
Resource: https://devdocs.magento.com/guides/v2.2/rest/tutorials/orders/order-create-customer.html
Best Answer
Step 1: Get authentication key api :
URL - http://example.com/rest/V1/integration/admin/token
METHOD - POST
BODY :
Step 2 : Call customer registration api : URL - http://example.com/rest/V1/customers
METHOD : POST
HEADER :
BODY :