Skip to main content

Merchant Onboarding

Create a MerchantOrg and Merchant to start managing your business. This requires an authenticated session from Initialize Client.



Interactive Demo

Authentication Required

You need to initialize the client first to get a bearer token before onboarding a merchant.

Go to Initialize Client

Business Hierarchy

Tenant (Platform)
└── MerchantOrg (Business Organization)
└── Merchant (Business Location)
└── Services, Categories, Staff, etc.
  • MerchantOrg - Represents a business organization (e.g., "Bella's Beauty Group")
  • Merchant - Represents a physical location or storefront (e.g., "Bella's Salon - Downtown")

API Reference

Create Merchant Organization

import { MerchantOrgService } from '@scp/sdk';

const org = await MerchantOrgService.merchantOrgCreate({
requestBody: {
name: "Bella's Beauty Group",
tenant_id: tenantId
}
});

console.log(org.id); // merchant_org_id

Create Merchant

import { MerchantService } from '@scp/sdk';

const merchant = await MerchantService.merchantCreate({
requestBody: {
name: "Bella's Salon",
public_name: "Bella's Salon - Downtown",
tenant_id: tenantId,
merchant_org_id: org.id
}
});

console.log(merchant.id); // merchant_id

Session Data Stored

After onboarding, the session includes:

KeyDescription
scp_session.merchant_org_idMerchantOrg UUID
scp_session.merchant_idMerchant UUID
scp_session.merchant_nameMerchant display name

Next Steps

Continue to Service Manager to create service categories.