Manage storefront themes, marketplace templates, and theme customization
List all available themes from the marketplace
GET /merchant/api/v1/themes?domain_id={{domain_id}}
Gateway
GET /api/themes
Seller Admin
Returns themes with already_added flag per domain
GET /api/themes
Theme Service
GET /api/storefront-themes?domain_id=:domain_id
Theme Service
Get details of a specific master theme
GET /merchant/api/v1/themes/:theme_id
Gateway
GET /api/themes/:theme_id
Seller Admin
GET /api/themes/:theme_id
Theme Service
List all themes installed for a domain
GET /merchant/api/v1/domains/:domain_id/themes
Gateway
GET /api/storefront-themes?domain_id=:domain_id
Seller Admin
GET /api/storefront-themes?domain_id=:domain_id
Theme Service
Install a master theme to a domain
POST /merchant/api/v1/domains/:domain_id/themes
Gateway
POST /api/storefront-themes
Seller Admin
Request Body:
{
"theme_id": "6799ca2d2accf568166dd6dc",
"default_theme_path": "../themes/theme-3",
"status": "DRAFT",
"is_active": true
}
GET /api/themes/:theme_id
Theme Service
POST /api/storefront-themes
Theme Service
POST /api/storefront-themes/:id/initialize
Theme Service
Purchase a premium theme with payment processing
POST /merchant/api/v1/domains/:domain_id/themes/purchase
Gateway
POST /api/themes/purchase
Seller Admin
Request Body:
{
"theme_id": "6799ca2d2accf568166dd6dd",
"client_redirect_url": "https://abc.com/callback"
}
GET /api/themes/:theme_id
Theme Service
POST /api/theme-transactions
Theme Service
POST /api/payments/initiate
Payment Service (JUSPAY/Stripe)
Update theme configuration, path, or status
PUT /merchant/api/v1/domains/:domain_id/themes/:theme_id
Gateway
PUT /api/storefront-themes/:theme_id
Seller Admin
PUT /api/storefront-themes/:theme_id
Theme Service
POST /api/cdn/invalidate
CDN Service
Set a theme as the default active theme for domain
PUT /merchant/api/v1/domains/:domain_id/themes/:theme_id/default
Gateway
PUT /api/storefront-themes/:theme_id/default
Seller Admin
PUT /api/storefront-themes/unset-default
Theme Service
PUT /api/storefront-themes/:theme_id/default
Theme Service
POST /api/cdn/invalidate
CDN Service
Remove a theme from the domain
DELETE /merchant/api/v1/domains/:domain_id/themes/:theme_id
Gateway
DELETE /api/storefront-themes/:theme_id
Seller Admin
DELETE /api/storefront-themes/:theme_id
Theme Service
DELETE /api/cdn/assets/:theme_id
CDN Service
Get theme purchase transaction details
GET /merchant/api/v1/domains/:domain_id/theme_transactions/:id
Gateway
GET /api/theme-transactions/:id
Seller Admin
GET /api/theme-transactions/:id
Theme Service
GET /api/payments/:payment_id
Payment Service
Master vs Storefront: Master themes are global marketplace templates; storefront themes are domain-specific instances
Premium Themes: Require payment via JUSPAY/Stripe before installation
Status Values: DRAFT, PUBLISHED, ARCHIVED
Subscription Levels: FREE, STARTER, PROFESSIONAL, ENTERPRISE