Create Membership Notifications in Bulk

This API validates all request items first and processes only the valid ones.

TriggerMembershipNotificationsRequest

Json PropertyData TypeDescription
notification_itemsListCollection of notification items to be processed. Each item represents a membership notification to create or reinsert.

NotificationItem

Json PropertyData TypeDescription
action_typeMembershipNotificationActions (nullable)Membership action associated with the notification. Used to derive the notification type if notification_type is not provided. Accepts enum name or numeric value.
notification_typeint (nullable)Numeric identifier for the notification type. If provided, it takes priority over action_type.
notification_channelNotificationChannel (nullable)Channel through which the notification will be sent. Defaults to ALL if not provided.
invoice_item_idGuid (nullable)Invoice item identifier associated with the notification. Required for certain notification types such as SignUp.
user_membership_idGuid (nullable)Identifier of the user's membership associated with the notification. Required for most membership actions.
center_idGuidIdentifier of the center where the membership action occurred. This field is mandatory.
reference_idGuid (nullable)Reference identifier used to reinsert an existing notification. If null, a new notification is created.
failure_reasonstringDescription of the validation failure when the item cannot be processed. Included only in failed response items.

TriggerMembershipNotificationsResponse

Json PropertyData TypeDescription
processed_countintNumber of notification items successfully processed.
failed_countint (nullable)Number of notification items that failed validation or processing. Returned only when failures occur.
failed_itemsList (nullable)List of notification items that failed validation, including the reason for failure.
errorAPIV2ErrorModel (nullable)Error object returned when the request fails completely or encounters a server error.

MembershipNotificationActions (Enum)

Json PropertyData TypeDescription
Upgradeint (0)Notification triggered when a membership is upgraded.
Downgradeint (1)Notification triggered when a membership is downgraded.
Transferint (2)Notification triggered when a membership is transferred.
Cancelint (3)Notification triggered when a membership is canceled.
Freezeint (4)Notification triggered when a membership is frozen.
SignUpint (5)Notification triggered when a membership is created or signed up.
AddOnMemberSignupint (6)Notification triggered when an add-on member signs up.
AddOnMemberFreezeint (9)Notification triggered when an add-on member membership is frozen.
AddOnMemberCancelint (10)Notification triggered when an add-on member membership is canceled.
ChangePaymentMethodint (12)Notification triggered when the primary payment method is changed.
ChangeBackupPaymentint (13)Notification triggered when the backup payment method is changed.

NotificationChannel (Enum)

Json PropertyData TypeDescription
SMSint (0)Notification is sent via SMS.
EMAILint (1)Notification is sent via email.
PUSHint (2)Notification is sent as a push notification.
WHATSAPPint (5)Notification is sent via WhatsApp.
ALLint (-1)Notification is sent through all available channels. Default value when not specified.
Language
Credentials
Header
Response
Click Try It! to start a request and see the response here!