Update contact
phone
, country_code
, and email
.Payload authenticated
UpdateContactPayload
phone
string
optional
country_code
string
optional
Default:
SA
email
string
optional
Response
Success
Error
profile.updateContact.success
success
boolean
success
status
enum<number>
status
Allowed values:
200201202
data
object
data
first_name
string
first_name
last_name
string
last_name
phone
object
phone
email
string
email
avatar
string
avatar
gender
gender
birthday
string
birthday
verification
object
optional
Usage
updateContact()
along with the customer's new information as below.
Verification
verification
status will change if the profile's phone, country code, or email are modified. It takes the values pending and success as inputs. The pending state implies that the user must confirm the modifications by an OTP code issued to his phone or email. The success status indicates that the profile update was completed successfully and that the user does not need to take any additional action.💡 Tip:
The profile verify endpoint has been implemented in the Verify Web Component, , and It's all setup to save developer's time and effort.
salla.profile.verify()
passes the customer access code to the backend in order to proceed with the verification process. In the case of using the phone number method to receive the access code, this method will pass the received access code along with the customer's phone number and the country code.With web componenet
salla-verify-modal
to hanlde the OTP verifation
💡 Tip:
The profile verify endpoint has been implemented in the Verify Web Component, , and It's all setup to save developer's time and effort.
Without web componenet
Events
onVerificationCodeSent
and onUpdateContactsFailed
events.onVerificationCodeSent
onUpdateContactsFailed
Modified at 2025-03-04 12:54:02