Cancel an Invitation
A user can also cancel a pending UMA invitation. Only the inviter or platform can cancel an invitation. This is relevant for invitations that have a payment attached where the sender no longer wishes to send the payment.
When an invitation is cancelled:
- The invitation can no longer be claimed
- The invitation URL will show as cancelled when accessed
Invitations can only be cancelled if they haven't expired and are unclaimed.
Invitations can be cancelled by calling the
cancelUmaInvitation function with the invitation code.await client.cancelUmaInvitation(
/* invitationCode */ "ABC123XYZ"
);
console.log("Invitation cancelled successfully.");