customer:editcustomerTenantMembership:delete
- Typescript SDK
- GraphQL
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
customer:editcustomerTenantMembership:deleteconst res = await client.removeCustomerFromTenants({
customerIdentifier: {
// You can use the customer email
emailAddress: 'jane@aol.com',
// ... or Plain's customer ID
// customerId: 'c_123',
// ... or the customer's external ID if you have set it
// externalId: 'XXX',
},
tenantIdentifiers: [
{
externalId: 'team_123',
},
{
externalId: 'team_456',
},
],
});
if (res.error) {
console.error(res.error);
} else {
console.log(res.data);
}
mutation removeCustomerFromTenants($input: RemoveCustomerFromTenantsInput!) {
removeCustomerFromTenants(input: $input) {
error {
message
type
code
fields {
field
message
type
}
}
}
}
{
"input": {
"customerIdentifier": {
"emailAddress": "jane@aol.com"
},
"tenantIdentifiers": [
{
"externalId": "team_123"
},
{
"externalId": "team_456"
}
]
}
}
Was this page helpful?
