Head Branch Manager Onboarding

These endpoints handle the onboarding flow for Head Branch Manager users invited by an admin.

Flow at a Glance

#StepEndpointAuth
1Validate invite tokenGET /branches/public/v1/common/invites/checkNone
Create scoped sessionPOST /entrypoint/org/v1/sessionsClient credentials + customerUid
2Accept invitationPOST /org/branches/public/v1/superadvisor/invites/acceptSession headers

Session Setup (between Steps 1 and 2)

Step 1 returns a customerUid. Before calling Step 2, create a session scoped to that user:

POST /entrypoint/org/v1/sessions
Content-Type: application/json

{
  "clientId":     "<your-client-id>",
  "clientSecret": "<your-client-secret>",
  "customerUid":  "<customerUid from Step 1>"
}

Include these two headers on every request from Step 2 onward:

X-Session-Id: <sessionId>
X-Client-Id:  <clientId>