Get Notification Specifications
get
/bcws/webresources/v1.0/notificationManagement/notificationSpec
Gets the notification specifications that match the specified query criteria.
Request
Query Parameters
-
aggregateMode(required): string
The aggregate mode of the notification.
-
category (required): string
The notification specification category.
-
deliveryMethod(required): string
The delivery method of the event, for example: SMS
-
expiresAt(required): string
The notification specification expiry date, for example: 2038-09-18T18:30:00.000Z
-
limit(required): string
The maximum number of records to be displayed on a page.
-
name(required): string
The notification specification name.
-
optType(required): string
The opt-in/opt-out type of the notification.
-
scope(required): string
The notification specification trigger type.
Allowed values are:[ "USER", "SYSTEM", "ALL" ]
-
skip(required): string
The number of records to skip before returning results.
-
status(required): string
The notification specifiction status, for example: DRAFT
-
systemEvent(required): string
The event type.
-
triggerType(required): string
The notification specification trigger type.
Allowed values are:[ "AUTO", "SYSTEM", "ALL" ]
-
type(required): string
The notification specification type.
Allowed values are:[ "ADVANCE", "REALTIME", "PREDEFINED", "FIRST_TRANSACTION" , "POSTDUE" ]
There's no request body for this operation.
Back to TopResponse
Supported Media Types
- application/xml
- application/json
200 Response
The notification specification information was returned successfully.
Nested Schema : notificationSpec
Type:
Show Source
object
-
advanceNotifications(required): array
advanceNotifications
-
aggregateMode: integer
(int32)
Aggregation mode. Allowed Values: 0 (Send multiple notifications), 1 (Send consolidated single notification with details from all).
-
category(required): string
Free text. Use this field for classification.
-
createdAt(required): string
The creation date for the notification specification.
-
criteria(required): array
criteria
-
deliveryControlFlag: integer
(int32)
The notification control flag type. Allowed Values:
- 0 (Always Deliver)
- 1 (No delivery in silent period)
-
deliveryMethods(required): array
deliveryMethods
-
deliverySpec(required): array
deliverySpec
-
descr(required): string
The notification specification description.
-
expiresAt(required): string
The date when the notification specification expires.
-
href(required): string
The unique resource URL, used to get the notification specification object.
-
id(required): string
The notification specification ID.
-
modifiedAt(required): string
The modification date for the notification specification.
-
name(required): string
The notification specification name.
-
optType: integer
(int32)
The notification Opt In/Opt Out options. Allowed Values:
- 1 (Requires opt in)
- 2 (Requires opt out)
- 3 (Mandatory)
-
scope: integer
(int32)
The notification scope. Allowed Values:
- 1 (System)
- 2 (User)
-
startsAt(required): string
The start date for the notification specification.
-
status(required): string
The notification specification status. Allowed values: ACTIVE, INACTIVE, EXPIRED
-
systemEvent(required): string
The notification event POID type.
-
triggerType: integer
(int32)
The notification trigger type. Allowed Values:
- 0 (All)
- 1 (System)
- 2 (Auto)
-
type: integer
(int32)
The notification type. Allowed Values:
- 1 (Advance)
- 2 (Real-time)
- 3 (Predefined)
- 4 (First transaction)
- 5 (Post-due)
Nested Schema : NotificationDeliverySchedule
Type:
Show Source
object
-
offsetUnit: integer
(int32)
The notification delivery schedule offset type. Allowed values:
- 1 (Minute)
- 3 (Hour)
- 4 (Day)
- 5 (Week)
- 2 (Month)
- 0 (Year)
-
offsetValue(required): string
The notification delivery schedule offset value.
Nested Schema : NotificationCriteria
Type:
Show Source
object
-
dataType: integer
(int32)
The notification data type.The notification criteria data type. Allowed Values:
- 1 (Integer)
- 3 (Enumeration)
- 5 (String)
- 7 (POID)
- 8 (Timestamp)
- 14 (Decimal)
-
key(required): string
The notification criteria key.
-
operator: integer
(int32)
The operator for the qualifier. Allowed values:
- 0 (Equals)
- 1 (Less than)
- 2 (Greater than)
- 3 (Less than or equals)
- 4 (Greater than or equals)
- 5 (Not equal)
- 6 (Contained in string)
- 7 (Like)
-
value(required): string
The notification criteria value.
Nested Schema : NotificationDeliveryMethod
Type:
Show Source
object
-
id(required): string
The notification delivery method ID.
-
name(required): string
The notification delivery method name.
-
status: integer
(int32)
The notification delivery method status. Allowed Values:
- 1 (Active)
- 2 (Inactive)
Nested Schema : NotificationDeliverySpec
Type:
Show Source
object
-
dayOfMonth: integer
(int32)
The day of the month.
-
dayOfWeek: integer
(int32)
The day of the week.
-
deliveryPeriodEnd(required): string
The notification delivery end time. Pattern: ^([0-1]?\d|2[0-3])(?::([0-5]?\d))?(?::([0-5]?\d))?$
500 Response
An error occurred. An exception has been raised.
Examples
This example shows how to get notification specifications by status, name, and delivery method by submitting a GET request on the REST resource using cURL. For more information about cURL, see "Use cURL".
cURL Command
curl -X GET 'http://hostname:port/bcws/webresources/version/notificationManagement/notificationSpec?status=ACTIVE&name=NewNotificationSpec&deliveryMethod=SMS'
where:
- hostname is the URL for the Billing Care REST server.
- port is the port for the Billing Care REST server.
- version is the version of the API you're using, such as v1.0.
Example of Response Body
This example shows the contents of the response body in JSON format.
[
{
"id": "0.0.0.1+-config-notification_spec+2394302",
"href": "http://hostname:port/bcws/webresources/version/notificationSpec/0.0.0.1+-config-notification_spec+2394302",
"createdAt": "2021-10-12T05:17:08.000Z",
"modifiedAt": "2021-10-12T05:17:08.000Z",
"startsAt": "2021-09-15T09:28:00.000Z",
"expiresAt": "2022-10-28T18:29:59.000Z",
"name": "NewNotificationSpec",
"descr": "descr",
"deliveryControlFlag": "UNSUPPRESS",
"systemEvent": "NewNotificationSpec",
"type": "ALL",
"triggerType": "SYSTEM",
"scope": "USER",
"criteria": [
{
"key": "/account.ACCOUNT_NO",
"value": "qre",
"operator": "EQ",
"dataType": "STR"
}
],
"deliveryMethods": [
{
"id": "1",
"name": "SMS",
"status": "ACTIVE"
}
],
"deliverySpec": [],
"advanceNotifications": [
{
"offsetUnit": "MONTHS",
"offsetValue": "1"
}
]
}
]