Parameters
JSON body
Request body
application/jsonorganisationSlugstringRequiredSlug of the managed organisation to switch into.
Example
my-shopLets a technical manager (member of a vendor organisation) switch their session into a managed customer organisation. If the caller is not yet a member of the target org, a cas__organisation_member row is auto-created first (idempotent). Throws PUBLIC_VENDOR_RELATION_NOT_FOUND when the target org is not a child of any org the caller belongs to.
JSON body
organisationSlugstringRequiredSlug of the managed organisation to switch into.
my-shop1 status code documented
successbooleanRequiredidentityIdstring | undefinedOptionaltargetOrganisationIdnumberRequiredtargetMemberIdnumberRequiredNew or existing member row in the target org.
vendorOrganisationIdnumberRequiredVendor org through which access was granted.
{
"success": false,
"targetOrganisationId": 0,
"targetMemberId": 0,
"vendorOrganisationId": 0
}POST /bff/vendor/switch
curl -X POST "https://api.bizkithub.com/bff/vendor/switch" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"organisationSlug": "my-shop"
}'All BizKitHub public API endpoints require authentication via API key.