Save Payments Trigger
Create or update a payments trigger.
import { Norbix } from '@norbix.ai/ts';
const norbix = new Norbix();
const result = await norbix.hub.payments.savePaymentsTrigger({
trigger: {
type: 'Payments',
when: 'OnOrderPaid',
name: 'receipt-on-payment',
isEnabled: true,
action: {
type: 'email',
templateId: 'tmpl_5XqvoF4k6I2GfarDBg3zqq',
deliverySettings: { recipientsSourceType: 'AllUsers' },
},
},
});using Norbix.Sdk;
using Norbix.Sdk.Types.Hub;
using var client = new NorbixClient();
var result = await client.Payments.SavePaymentsTriggerAsync(new SavePaymentsTrigger
{
Trigger = new PaymentTriggerRequest
{
Type = TriggerType.Payments,
When = PaymentTriggerType.OnOrderPaid,
Name = "receipt-on-payment",
IsEnabled = true,
Action = new TriggerActionEmailDto
{
Type = TriggerActionType.Email,
TemplateId = "tmpl_5XqvoF4k6I2GfarDBg3zqq",
DeliverySettings = new EmailToAllUsersDeliverySettingsDto
{
RecipientsSourceType = EmailCampaignRecipientsSourceTypes.AllUsers,
},
},
},
});Scenarios
Email specific users
Email raw addresses
Push notification to all users
SMS to phone numbers
Call a webhook
Run a function
Send a realtime (SSE) event
Run a marketplace function
In the dashboard
API reference
Last updated