Register a new user and organisation
https://app.speybooks.com/api/v1/auth/registerCreate a new user and provision their organisation in one atomic
operation. The request carries the account email (unique across all
users), a password, the user's full name, the organisation name,
and an optional business type. The password must be at least 8
characters and contain at least one letter and one number. The
business type, sole-trader or limited-company (the default),
selects the starter chart of accounts.
On success the new organisation is created with a starter chart of
accounts for the chosen business type and an opening financial
period, the user is linked to it, and the response carries the
created user (with emailVerified false) and organisation, a JWT
for immediate authentication, and, when payment setup is available,
a Stripe checkout URL to collect payment (the account is usable
before payment completes). A verification email and a welcome email
are sent in the background by the mail service.
Registering with an email that already exists returns 409.
Body parameters
emailstringrequiredfullNamestringrequiredorganisationNamestringrequiredpasswordstringrequiredplanstringoptionalsole-traderlimited-companyResponse
Show response fields
checkoutUrlstringorganisationobjectShow child attributes
idstringnamestringslugstringtokenstringuserobjectShow child attributes
createdAtstringdate-timeemailstringemailVerifiedbooleanfullNamestringidinteger