curl --request POST \
--url https://api.royalti.io/user/invites/{inviteId}/cancel \
--header 'Authorization: Bearer <token>'{
"message": "Invite cancelled successfully"
}Cancels a pending invitation. The invite status changes to cancelled and any activation codes generated for the invitee are purged, preventing future use of the old invite link.
curl --request POST \
--url https://api.royalti.io/user/invites/{inviteId}/cancel \
--header 'Authorization: Bearer <token>'{
"message": "Invite cancelled successfully"
}const response = await fetch('https://api.royalti.io/user/invites/example-id/cancel', {
method: 'POST',
headers: {
'Authorization': `Bearer ${token}`,
'Content-Type': 'application/json'
},
body: JSON.stringify({})
});
const data = await response.json();
console.log(data);