🛒 Ecommerce
Update my profile
The API endpoint allows a logged-in user to update their e-commerce profile.
With this endpoint, users can make changes and updates to their profile information, such as personal details, contact information, or any other relevant profile attributes.
patch/ecommerce/profile
Request body
Example request
{
"countryCode": "+91",
"firstName": "John",
"lastName": "Doe",
"phoneNumber": "9893894838"
}Response
Update my profile
Example response
{
"data": {
"_id": "647b633598f964861cfc48e5",
"countryCode": "+91",
"createdAt": "2023-06-03T15:58:45.283Z",
"firstName": "John",
"lastName": "Doe",
"owner": "6476e34ebe1cfb9cc08bd446",
"phoneNumber": "9893894838",
"updatedAt": "2023-06-03T16:17:45.744Z"
},
"message": "User profile updated successfully",
"statusCode": 200,
"success": true
}