Table of Contents

Interface IOrderNotificationService

Namespace
CMS.Commerce
Assembly
CMS.Commerce.dll

Service for sending order notifications.

public interface IOrderNotificationService
Extension Methods

Methods

SendNotification(int, CancellationToken)

Send email notifications when the order reaches a status that has notifications enabled.

Task SendNotification(int orderId, CancellationToken cancellationToken)

Parameters

orderId int

The order id.

cancellationToken CancellationToken

Cancellation token.

Returns

Task

Remarks

If notifications are not enabled for the current order status, no email is sent. This includes both internal and customer notifications, depending on their configuration.

Exceptions

OrderNotificationSendException

Thrown when sending the customer notification fails.