Hi,
I've been wondering if there is a way to bypass the "confirmation" on customer registration REST API call.
ive tried passing null and "" values. but it still populates the column "confirmation" on customer_entity table.
Rest API: /rest/V1/customers
parameters:
{
"customer": {
"email": "test@test.com",
"firstname": "abc",
"lastname": "def",
"dob": "1994-01-21",
"gender": 1,
"store_id":1,
"confirmation": ""
},
"password": "Pass12345"
}
Thank you
Solved! Go to Solution.
I have tried with the same parameters and it worked fine for me. In database NULL is entered in customer_entity table.
Can you remove "confirmation" from parameters then try again?
parameters: { "customer": { "email": "test@test.com", "firstname": "abc", "lastname": "def", "dob": "1994-01-21", "gender": 1, "store_id":1 }, "password": "Pass12345" }
And if this is also not working, Please mention the magento and php version which you are using?
I have tried with the same parameters and it worked fine for me. In database NULL is entered in customer_entity table.
Can you remove "confirmation" from parameters then try again?
parameters: { "customer": { "email": "test@test.com", "firstname": "abc", "lastname": "def", "dob": "1994-01-21", "gender": 1, "store_id":1 }, "password": "Pass12345" }
And if this is also not working, Please mention the magento and php version which you are using?
Hi @verma_mallika ,
tried removing the confirmation parameter. and it still populated the column on customer_entity.
as it turns out. on my admin dashboard. the email confirmation was turned on, I just switched it off. and the confirmation column was bypassed.
Thanks for your help!
Check in magento 2.4.7-p2 with remove confirmation parameters in create customer API but not receive any email while from customer created account it't received.
Check in database in both case `customer_entity` table `confirmation` column have value.