Complete 3-layer API flow: API Gateway -> Orchestration -> Core Microservices for seller account registration and setup
Future Architecture Note
Currently, all account registration and onboarding logic resides in the Seller Admin orchestration layer. In future releases, this will be migrated to a dedicated Seller Onboarding & Setup Microservice (Orchestra Layer) for better separation of concerns.
Complete seller registration with user, account, domain, and store creation
POST /merchant/api/v1/account
POST /merchant/api/v1/account
8-Step Registration Flow (AccountService.registerNewAccount):
Rollback: If any step fails, all previously created resources are rolled back
POST /register
User Service · Core Microservices
POST /api/accounts
Account Service · Core Microservices
POST /api/domains
Account Service · Core Microservices
POST /api/stores
Account Service · Core Microservices
POST /api/subscriptions
Account Service · Core Microservices
POST /api/cloud/copy-folder
Cloud Service · GCP Storage
POST /auth
User Service · Core Microservices
Check if a user exists by email or phone before registration
GET /merchant/api/v1/users?email=...&phone=...
GET /merchant/api/v1/users
GET /users?email=...&phone=...
User Service · Core Microservices
Retrieve seller account with domains and permissions
GET /merchant/api/v1/account
GET /merchant/api/v1/account
Uses Redis caching (TTL: 1 hour)
GET /api/accounts/:account_id
Account Service · Core Microservices
GET /api/accounts/:account_id/domains
Account Service · Core Microservices
Update seller account information
PUT /merchant/api/v1/account
PUT /merchant/api/v1/account
Invalidates Redis cache after update
PUT /api/accounts/:account_id
Account Service · Core Microservices
Soft delete seller account (via logout with deleteAccount flag)
DELETE /merchant/api/v1/auth?deleteAccount=true
DELETE /merchant/api/v1/auth?deleteAccount=true
Disables user account and removes session
DELETE /auth?deleteAccount=true
User Service · Core Microservices
List available subscription plans for seller onboarding
GET /merchant/api/v1/subscription_plans
GET /merchant/api/v1/subscription_plans
GET /api/subscription_plans
Account Service · Core Microservices
Get countries, states, cities for registration form
GET /merchant/api/v1/countries
GET /merchant/api/v1/states
GET /merchant/api/v1/cities
GET /merchant/api/v1/enums
GET /merchant/api/v1/countries
GET /merchant/api/v1/states
GET /merchant/api/v1/cities
GET /merchant/api/v1/enums
GET /api/countries
Utility Service · Core Microservices
GET /api/states
Utility Service · Core Microservices
GET /api/cities
Utility Service · Core Microservices
GET /api/enums
Utility Service · Core Microservices
Complete seller registration flow with automatic user, account, domain, store, and subscription creation. Includes rollback mechanism for failed registrations.