🛡️Gatekeeper/ SDKs

Platform-lane billing controls. Lets an operator set or override a tenant's subscription directly, bypassing the provider checkout flow. Requires a platform credential (service account / operator), not a tenant bearer.

import { GatekeeperCore, PlatformBillingService } from '@orkait/sdk';
 
const platformBilling = new PlatformBillingService(core);

Methods#

MethodReturnsNotes
overrideSubscription(input)Subscriptionforce a tenant onto a plan; input: { tenantId, planId, reason, actorId? }

Example#

const sub = await platformBilling.overrideSubscription({
    tenantId: 't1',
    planId: 'plan_enterprise',
    reason: 'negotiated contract',
});