Accounts API
The Accounts API handles user and store management, authentication, and profile operations.
Overview
The Accounts API provides endpoints for:
- Authentication: Registration, login, logout, token management
- OTP Verification: Email verification for new accounts
- Password Management: Forgot password, reset password, change password
- User Management: Profile operations, user CRUD
- Store Management: Store CRUD, store information
- Address Management: User shipping addresses
- Location Data: Countries and cities
Base Path
Authentication
Most endpoints require authentication. See Authentication Guide for details.
User Roles
- User (Role: "1"): Regular customer
- Store (Role: "3"): Store owner
- Admin (Role: "2"): Administrator
Endpoints
Authentication
- Register User
- Register Store
- Login User
- Login with Google OAuth - For new-client-ui only
- Login Store
- Login Admin
- Logout
- Check Token
OTP Verification
Password Management
- Forgot Password User
- Forgot Password Store
- Confirm Forgot Password User
- Confirm Forgot Password Store
- Change Password
User Management
Store Management
Address Management
Location
- Get All Countries
- Get Country By ID
- Create Country
- Update Country
- Delete Country
- Get All Cities
- Get City By ID
- Create City
- Update City
- Delete City
Geocoding (Public)
- Geocoding Search - Search for addresses and locations
- Geocoding Reverse - Get address from coordinates
- Geocoding City Bounds - Get city location and bounding box