API Ecommerce exposes two profile endpoints: one for reading the currently authenticated user’s information, and one for updating it. Both require a valid JWT Bearer token. The update endpoint also handles avatar image uploads and optional password changes.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/JuanSCaicedo/Api-Ecommerce/llms.txt
Use this file to discover all available pages before exploring further.
Get Profile
GET /api/ecommerce/profile_client/me within the ecommerce route group.
Authentication: Requires Authorization: Bearer <token> header.
Response Fields
The user’s first name.
The user’s last name / surname.
The user’s phone number.
The user’s email address.
A short biography or description provided by the user.
null if not set.The user’s Facebook profile URL.
null if not set.The user’s Twitter profile URL.
null if not set.The user’s gender.
null if not set.The user’s city address.
null if not set.Full URL of the user’s avatar image served from OCI Object Storage. If no avatar has been uploaded, returns the default CDN icon:
https://cdn-icons-png.flaticon.com/512/18851/18851107.png.Example Request
Example Response
Update Profile
multipart/form-data to allow optional avatar image uploads alongside other text fields.
Authentication: Requires Authorization: Bearer <token> header.
Content-Type: multipart/form-data (required when uploading file_imagen; application/json is acceptable for text-only updates).
Update Fields
Updated first name.
Updated surname.
Updated phone number.
Updated email address. Must not already be in use by a different user account.
Updated biography text.
Updated Facebook profile URL.
Updated Twitter profile URL.
Updated gender value.
Updated city address.
Optional new avatar image. Uploaded to OCI Object Storage under
juandevops/ecommerce/public/users/. Any previously stored avatar is deleted before the new one is saved.The user’s current password. Required together with
password to trigger a password change. Omit both fields to update profile data only.The desired new password. Required together with
current_password. Stored as a bcrypt hash.Example Request — Update Profile Fields
Example Request — Change Password
Responses
Profile update success:403):
200 body with 403 code):
Every successful profile update calls
Cache::flush(), clearing all application cache entries including cached home page data and product listings. This ensures stale data is never served after a profile change.