All user endpoints require authentication. Users can only access and modify their own data.
Address Management
Get Addresses
Retrieve all saved addresses for the authenticated user.Authentication
Required. User must be authenticated via Clerk.Response
Array of saved address objects
Address identifier
Address label (e.g., “Home”, “Work”)
Recipient’s full name
Street address
City
Contact phone number
Whether this is the default address
Example Response
Add Address
Add a new address to the user’s address book.Authentication
Required. User must be authenticated via Clerk.Request Body
Address label (e.g., “Home”, “Work”, “Office”)
Recipient’s full name
Street address
City
Contact phone number
Set as default address (will unset other defaults)
Response
Success message
Updated array of all addresses
Example Request
Update Address
Update an existing address. All fields are optional.Authentication
Required. User must be authenticated via Clerk.Path Parameters
The ID of the address to update
Request Body
Address label
Recipient’s full name
Street address
City
Contact phone number
Set as default address
Response
Success message
Updated array of all addresses
Delete Address
Delete an address from the user’s address book.Authentication
Required. User must be authenticated via Clerk.Path Parameters
The ID of the address to delete
Response
Success message
Updated array of remaining addresses
Wishlist Management
Get Wishlist
Retrieve the user’s wishlist with populated product details.Authentication
Required. User must be authenticated via Clerk.Response
Array of product objects in the wishlist
Example Response
Add to Wishlist
Add a product to the user’s wishlist.Authentication
Required. User must be authenticated via Clerk.Request Body
The ID of the product to add
Response
Success message
Updated wishlist with populated products
Example Request
Remove from Wishlist
Remove a product from the user’s wishlist.Authentication
Required. User must be authenticated via Clerk.Path Parameters
The ID of the product to remove
Response
Success message
Updated wishlist
Profile Management
Get Profile
Get the authenticated user’s profile information.Authentication
Required. User must be authenticated via Clerk.Response
User profile object
User ID
Clerk user ID
First name
Last name
Email address
Phone number
Document type (e.g., “CC”, “CE”, “NIT”)
Document number
Saved addresses
Wishlist product IDs
Notification preferences
Update Profile
Update user profile information. All fields are optional.Authentication
Required. User must be authenticated via Clerk.Request Body
First name
Last name
Phone number
Document type (CC, CE, NIT, Passport)
Document number
Response
Success message
Updated user profile
Update Notification Preferences
Update user notification preferences for order updates, promotions, and newsletters.Authentication
Required. User must be authenticated via Clerk.Request Body
Receive order status update notifications
Receive promotional offers
Subscribe to newsletter
Response
Success message
Updated notification preferences
Example Request
Deactivate Account
Deactivate the user’s account. This action marks the account as inactive but preserves data.Authentication
Required. User must be authenticated via Clerk.Response
Success message
Error Responses
All endpoints may return the following error responses:Error message describing what went wrong
Common Error Codes
400- Bad Request (missing or invalid parameters)401- Unauthorized (authentication required)404- Not Found (address or resource not found)500- Internal Server Error