Web SDK
  • Home
  • Overview
  • Getting started
  • References
    • Authentication
    • Account
      • Users
    • Notifications
    • Bookmark
    • 2FA
    • Collection
    • Connection filters
    • Feed
    • File Upload
    • Invite
    • Messaging
    • Payment
    • Reviews
    • Search
    • Verification
      • Supported document type
      • List of expected ISO countries
    • Wallet
      • Withdrawal
  • Tutorial
  • Web API
Powered by GitBook
On this page
  • Send invite
  • Accept invite
  • Decline invite
  • Get all invites
  1. References

Invite

On the PAKT SDK, a user creating an event or project can send invites to one or more other users who may fit the criteria of said event or project.

Send invite

The receiver is required, as well as the collectionId. The receiver is the ID of the user to whom the invite is being sent.

export const sendInvite = async (payload) => {
  const response = await sdkInit.invite.sendInvite(payload);
};

Accept invite

When the user accepts the invite, notifications are internally sent to both the sender of the invite and the recipient.

export const acceptInvite = async (inviteId: string) => {
  const accept = await sdkInit.invite.acceptInvite(inviteId);
};

Decline invite

When a user declines the invite, notifications are internally sent to both the sender of the invite and the recipient.

export const declineInvite = async (inviteId: string) => {
  const decline = await sdkInit.invite.declineInvite(inviteId);
};

Get all invites

Get Invites, based on a filtered search. Filter by the sender, receiver and/or the collectionId

export const getInvites = async (filter?: FilterInviteDto) => {
  const invites: FindInvitesDto = await sdkInit.invite.getAll(filter);
};

Get an invite

export const getAnInvite = async (inviteId: string) => {
  const invite: IInviteDto = await sdkInit.invite.getAnInvite(inviteId);
};
PreviousFile UploadNextMessaging

Last updated 11 months ago