Disable a membership
You might need to permanently block, or disable, an account member from accessing the account. Disabling a membership doesn't require consent.
Note that you can also suspend (temporarily block) account memberships and resume access for suspended account memberships. Learn more in the guide to suspend and resume account memberships.
Web Banking
Your users can disable, or permanently block, account memberships from Swan's Web Banking interface.
Guide​
permanently block
Disabling is referred to as permanently blocking on the Swan's Web Banking interface. You can't disable the legal representative's account membership.
- Call the
disableAccountMembership
mutation. - Add the account membership ID.
- Add the success payload with the status.
- Add any rejections you'd like.
Mutation​
🔎 Open the mutation in API Explorer
mutation DisableMembership {
disableAccountMembership(
input: { accountMembershipId: "$ACCOUNT_MEMBERSHIP_ID" }
) {
... on DisableAccountMembershipSuccessPayload {
__typename
accountMembership {
statusInfo {
status
}
updatedAt
}
}
}
}
Payload​
The payload shows that the account membership is Disabled
.
{
"data": {
"disableAccountMembership": {
"__typename": "DisableAccountMembershipSuccessPayload",
"accountMembership": {
"statusInfo": {
"status": "Disabled"
},
"updatedAt": "2023-06-01T12:59:12.763Z"
}
}
}
}