Cancel Notification

❌ Cancel Notification API


The Cancel Notification API (cancelRVN) allows an enterprise to revoke or cancel a previously sent REL-ID notification. Once cancelled, the notification becomes inactive, and the user can no longer respond to it.

This is useful for scenarios where:

  • The transaction was aborted by the user.
  • A timeout occurred at the enterprise end.
  • Duplicate notifications were sent and need to be invalidated.

🔗 Endpoint

POST https://<REL-ID-VERIFY-SERVER>:<VERIFY-PORT>/cancelRVN.htm

🔐 Authentication

Supports:

  • Basic Auth (Authorization: Basic <base64-encoded-credentials>)
  • Bearer Token (Authorization: Bearer <access_token>)

📥 Request Parameters

Content-Type: application/json

{
  "notification_uuid": "03f67f9e-ec4f-11e6-b006-92361f002671"
}

Parameter

Type

Required

Description

notification_uuid

string

UUID of the notification to cancel. Must be from a valid active notification. This is the UUID of the notification returned in generateRVN


✅ Success Response

{
  "user_id": "u1",
  "notification_uuid": "03f67f9e-ec4f-11e6-b006-92361f002671",
  "action_response": "NONE",
  "status": "CANCELLED",
  "msg_id": "txn_12345",
  "delivery_status": "NOTIFIED",
  "is_ds_verified": false,
  "create_ts": "2024-06-01T10:00:00Z",
  "expiry_timestamp": "2024-06-01T10:05:00Z",
  "response_code": 0
}

❌ Failure Response

{
  "response_code": 1,
  "error_code": 3620,
  "error_message": "Notification already updated, notification status is CANCELLED"
}

📘 Field Descriptions

FieldDescription
user_idREL-ID user associated with the cancelled notification
notification_uuidThe UUID of the notification being cancelled
action_responseWill be NONE as user did not act
statusAlways CANCELLED on success
msg_idThe original message ID from the enterprise
delivery_statusDelivery status of the push notification
is_ds_verifiedFalse (no signing happens on cancelled notification)
create_tsWhen the notification was originally created
expiry_timestampWhen the notification was meant to expire
response_code0 for success, 1 for failure

🚚 Values of delivery_status Attribute in the Success Response

  • NONE: REL-ID is attempting to deliver the notification on user's device(s).
  • PARTIALLY_NOTIFIED: Google/Apple Push Notification Service accepted request to send notification on at least one device.
  • NOTIFIED: Google/Apple Push Notification Service accepted request to send notification on all devices registered by the user.
  • FAILED_TO_NOTIFY: Google/Apple Push Notification Service did not accept any request to send push notification to devices registered by the user.

🚫 Error Codes

CodeMessageScenario
2600Invalid Request URIURI is malformed
2607Invalid HTTP requestMalformed JSON or method
2699Internal Server errorServer exception during cancellation
3502Invalid Notification Request DataEmpty or bad request body
3593Regex validation failedInvalid UUID format
3620Notification already updatedNotification is already expired, updated or cancelled
3621Notification not presentUUID not found or archived
3623Notification cannot be cancelledSystem-generated (ISA/Auth) notifications
7002Invalid HTTP methodOnly POST is allowed
7003Content size should be greater than zeroEmpty body
7014Invalid requestRequired parameter missing
7019IPAddress is not whitelistedUnauthorized IP making request

🧠 Notes

  • This API is idempotent – repeated calls with same UUID will return same result if already cancelled.
  • Cancelled notifications cannot be re-enabled or reused.
  • Call getRVNStatus post-cancellation to confirm its status.

📎

Use this API to gracefully terminate notifications when the underlying transaction is no longer valid, enhancing trust and reducing user confusion.