Company Registration - Admin

Create a registration and onboard the company

Admin-side conversion of a lead into a real company. Creates the Z_CompanyRegistrations row (the durable record), validates an optional promo code → parent PV, then runs the full onboarding immediately (company + PV + clients + invite) and marks the registration approved.

The referral, if a code was given, materializes later when the new company's owner finishes onboarding (/onboarding/complete reads the registration's promo_code via resulting_company_id) — same chain the public registration uses.

post/api/admin/registrations/

Headers

x-api-tokenstring nullable

Request body

company_namestring required
nipcstring required
personal_namestring required
personal_emailstring required
personal_phonestring nullable
promo_codestring nullable
plan_idinteger nullable
company_billingboolean nullable

Response

Successful Response

{"stackTrail":"paths:/api/admin/registrations/:post:responses:201:content:application/json:schema","oasType":"schema","type":"unknown"}

Changes