v1

latestOpenAPI 3.0.3raw.githubusercontent.com2024-10-2916802.4 MB
🛒 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

countryCodestring
firstNamestring
lastNamestring
phoneNumberstring

Example request

{
  "countryCode": "+91",
  "firstName": "John",
  "lastName": "Doe",
  "phoneNumber": "9893894838"
}

Response

Update my profile

messagestring
statusCodenumber
successboolean

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
}