/api/v1/merchant.
Portal JWT users need the correct business role. Merchant API keys have full tenant access in their pinned TEST or LIVE environment.
Endpoints
Business profile
Get profile
GET /api/v1/merchant/business
Returns name, slug, country, KYB status, branding colors, support URLs, and portal KYC hints for dashboard users.
Update profile
PATCH /api/v1/merchant/business
Summary KPIs
GET /api/v1/merchant/summary?days=30&seriesDays=7
API keys
Keys are scoped to TEST or LIVE at creation time. The secret is shown once.Create key
POST /api/v1/merchant/keys
Revoke key
PATCH /api/v1/merchant/keys/:id with body { "action": "revoke" }, or DELETE /api/v1/merchant/keys/:id.

