Skip to content

PSP & Marketplace — Sub-Merchant Mode

One merchant account, multiple sub-merchants — every transaction attributed automatically, reconciliation built in, zero data leakage between tenants.

The Problem

Payment aggregators (PSPs) and multi-vendor marketplaces face multi-tenant management challenges:

  • Reconciliation chaos — All incoming payments land in a single account with no per-merchant breakdown
  • Registration overhead — Each downstream merchant needs their own signup, API keys, and onboarding — operational costs scale linearly
  • Poor data isolation — Sub-merchants may access each other's transaction data
  • High build cost — Self-building multi-tenancy means handling address allocation, fee splitting, and webhook routing
  • Compliance reporting — Impossible to export transaction history per sub-merchant for audits

How IronixPay Solves This

ChallengeIronixPay Solution
Reconciliation chaosAuto-attribution — Every transaction is tagged with sub_merchant_code; filter in Dashboard and API
Registration overheadOne API key for all — Switch context via X-Sub-Merchant-Code header; no extra credentials
Data isolationIndependent address pools — Each sub-merchant gets its own HD-derived addresses, isolated on-chain and in the database
Build costOut of the box — CRUD API to create sub-merchants; integrate in a few lines of code
Compliance reportingPer-merchant export — Billing page supports sub-merchant filtering with CSV export

Typical Usage

Platform Integration Flow

PSP registers an IronixPay merchant account
Create sub-merchants via API

POST /v1/sub-merchants

Create Checkout Session

Header: X-Sub-Merchant-Code

Customer pays → Webhook fires

Payload includes sub_merchant_code

PSP reconciles by sub_merchant_code

Key Features

  • Sub-Merchant CRUDPOST / GET / PATCH /v1/sub-merchants to create, list, and update sub-merchants with active / suspended status management
  • Context switching — Set X-Sub-Merchant-Code header to route transactions — no extra API keys needed
  • Independent HD addresses — Each sub-merchant gets its own HD-derived address pool across all 8 supported chains
  • Mixed-view Dashboard — Filter by "All", "Self only", or a specific sub-merchant in Sessions, Billing, Payouts, and Resolution pages
  • Unified billing — Fees are deducted from the parent PSP's balance; sub-merchants don't need independent balances
  • Webhook attributionsession.completed and other events automatically include the sub_merchant_code field
  • CSV export — Sessions and Billing pages support per-sub-merchant filtering and CSV export for reconciliation and compliance

Platform Types That Benefit Most

Platform TypeWhy Sub-Merchant Mode Helps
Payment Aggregators (PSP)Single API integration; downstream merchants are unaware of the gateway; centralized management
E-commerce MarketplacesOne sub-merchant per seller; payments auto-attributed; platform handles settlement
SaaS CollectionCollect payments on behalf of clients; segment by sub_merchant_code for clear reporting
Agent NetworksAgents manage multiple terminal merchants with hierarchical views and exports

API Quick Reference

Create a Sub-Merchant

bash
curl -X POST https://api.ironixpay.com/v1/sub-merchants \
  -H "Authorization: Bearer sk_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"sub_merchant_code": "shop_tokyo", "display_name": "Tokyo Branch"}'

Create a Payment for a Sub-Merchant

bash
curl -X POST https://api.ironixpay.com/v1/checkout/sessions \
  -H "Authorization: Bearer sk_live_YOUR_KEY" \
  -H "X-Sub-Merchant-Code: shop_tokyo" \
  -H "Content-Type: application/json" \
  -d '{
    "pricing_amount": "50",
    "pricing_currency": "USDT",
    "currency": "USDT",
    "network": "TRON",
    "success_url": "https://example.com/success",
    "cancel_url": "https://example.com/cancel"
  }'

List Sub-Merchants

bash
curl https://api.ironixpay.com/v1/sub-merchants \
  -H "Authorization: Bearer sk_live_YOUR_KEY"

Get Started