Phase 1: Organization Registration
Organization registration creates the foundation for all B2B operations including the organization entity, legal information, addresses, and default admin user.What Gets Created
| Component | Status | Description |
|---|---|---|
| Organization Record | PENDING_VERIFICATION | Core organization entity |
| Default Admin User | PENDING_ACTIVATION | Created via Kafka event |
| Wallet | INACTIVE | Default wallet (activated later) |
| Categorization | Assigned | Feature-based category (if provided) |
Important: Employees, directors, and shareholders arrays in the registration request are ignored. Use separate endpoints to add these entities.
Register Organization
- Request
- Success Response
- Error Responses
Endpoint: Request Body:
POST /api/v2.1/customer/organization/registrationHeaders:Required Fields
| Field | Required | Description |
|---|---|---|
legalName | ✅ | Official legal name |
businessType | ✅ | B2B, B2C, etc. |
registrationNumber | ✅ | Company registration number |
taxId | ✅ | Tax identification number |
incorporationDate | ✅ | Date of incorporation |
registeredAddress | ✅ | Official registered address |
contactEmail | ✅ | Primary contact email |
vatNumber | Conditional | Required if VAT registered |
Ownership Validation
Representatives’ ownership must total 100%:Default Admin Creation
After organization creation, a Kafka event triggers automatic admin user creation:- Email:
contactEmailfrom registration - Roles:
ADMIN,ADMIN_USER - Status:
PENDING_ACTIVATION
Get Organization Details
- Request
- Response
Endpoint:
GET /api/v2.1/customer/organization/{organizationId}Headers:Next Step
After registration, proceed to Phase 2: Personnel Management to add directors, shareholders, and employees.Phase 2: Personnel Management
Add directors, shareholders, and employees