import { PlainClient } from '@team-plain/typescript-sdk';
const client = new PlainClient({ apiKey: 'plainApiKey_xxx' });
const res = await client.updateCompanyTier({
companyIdentifier: {
companyDomainName: 'acme.com',
// Or the company id if you prefer
// companyId: 'co_123'
},
tierIdentifier: {
externalId: 'XXX',
// Or the tier id:
// tierId: "tier_123"
},
});
if (res.error) {
console.error(res.error);
} else {
console.log(res.data);
}