Docs / Pages
Business sides
The /account/workspaces page where one business enables its customer side or requests its supplier side.
One business is one organization that can run two sides: supplier (receive and judge credit applications) and customer (apply for credit). /account/workspaces shows both and lets the signed-in person enable the side they do not have.
Who can use it#
Any signed-in user (requireSession). Support (impersonation) sessions cannot change sides.
Actions#
| Action | API | Result |
|---|---|---|
| Enable customer side | POST /v1/account/enable-customer | immediate, then /post-login; 10 per hour |
| Request supplier side | POST /v1/account/enable-vendor | pending until platform staff approve (Staff onboarding a vendor); approved at once only if an owner-opened auto-approve window is open; 5 per hour |
| Switch side | POST /v1/auth/switch-workspace with to: vendor or customer | a signed, short-lived workspace cookie built from the live membership; never trusts the client |
Both buttons open a confirmation dialog first; nothing is sent until you confirm.
409 means the change is not allowed in the current state (for example already requested or the account is not eligible); 403 means this account may not do it.
Sides are not organizations. A person who belongs to several organizations (their own business plus invitations) also sees an organization switcher under the side toggle, fed by Organizations and memberships; a company single sign-on account is pinned to its one organization and sees only a note.