cancel
Showing results for 
Search instead for 
Did you mean: 

Create Customer API bypass confirmation

SOLVED

Create Customer API bypass confirmation

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

 

 

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Create Customer API bypass confirmation

Hi @gerald_cruz1 

 

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?

View solution in original post

2 REPLIES 2

Re: Create Customer API bypass confirmation

Hi @gerald_cruz1 

 

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?

Re: Create Customer API bypass confirmation

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!