/bff/vendor/switch
Lets 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.
VendorpostBffVendorSwitch
Parameters
1 body
Body · 1
organisationSlugstringRequiredSlug of the managed organisation to switch into.
Request
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"
}'Response
JSON payload
{
"success": false,
"targetOrganisationId": 0,
"targetMemberId": 0,
"vendorOrganisationId": 0
}All response codes
1 status code documented
Need an API key?
All BizKitHub API endpoints require authentication via API key.