Cancel a scheduled notification
DELETE/v1/notifications/:notificationId
Required States: ACTIVE, VERIFIED, PROSPECT
This endpoint cancels a scheduled notification that has not yet been delivered.
Business Rules:
- Only notifications with status 'NEW' or 'SCHEDULED_DELIVERY' can be cancelled
- Cannot cancel already delivered, failed, or previously cancelled notifications
- User must have appropriate permissions for the notification (own party context or admin)
- Cancellation is processed at both the platform level and the connector level
Cancellation Process:
- Validates that the notification exists and can be cancelled
- Updates the notification status to 'CANCELLED' in the platform database
- Attempts to cancel the notification at the connector level
- Returns success even if connector-level cancellation fails (platform status takes precedence)
Channel-Specific Behavior:
- SMS: Attempts to cancel via the SMS provider if the message is still in queue
- EMAIL: Attempts to cancel via the email service if supported and message is queued
- DEVICE: Attempts to cancel push notification via the push notification service if not yet delivered
Important Notes:
- Connector-level cancellation may not be supported for all channels or providers
- The response indicates success if the platform status was updated, regardless of connector outcome
- Failed connector cancellations are logged for audit purposes but do not fail the request
- Once a notification is marked as 'DELIVERED', it cannot be cancelled
Request
Responses
- 200
- 401
- 403
- 404
- 412
- 500
- 503
Notification cancelled successfully
Missing or invalid authentication token (GEN001002) or Role unauthorized (GEN001006) or Tenant context could not be resolved (AUT001001)
External application access denied (AUT003001) or Party not in required status (PAR003001)
Party not found (PAR004001) or No open binding for the notification (CRT004005) or Notification not found (GEN004001)
Notification is not scheduled, or cannot be cancelled in its current status (NOT012001)
Vendor cancellation failed (NOT100006) or General internal server error (GEN100000) or Service error (GEN100001)
All connector targets are currently unhealthy (CRT103001)