Retrieve Notification Preferences for Accounts

post

/rest/apis/customer/v-model/notificationPreferencesForAccounts/

This operation retrieves notification preferences for a list of accounts, service agreements, or premises for a specified notification type.

Request

There are no request parameters for this operation.

Supported Media Types
Request Body - application/xml ()
Root Schema : schema
Type: object
Show Source
Nested Schema : accounts
Type: array
Show Source
Nested Schema : items
Type: object
Show Source
  • Maximum Length: 10
    Account ID is the unique ID generated on create of an account. This field identifies the account for which notification preferences are retrieved.
    Example: 1575649032
  • Maximum Length: 30
    The notification type for which the notification preferences are retrieved.
    Example: CM-OUTAGENOTIF
  • Maximum Length: 10
    Premise ID is the unique ID generated on create of a premise. This field identifies the premise for which notification preferences are retrieved.
    Example: 2242620736
  • Maximum Length: 10
    Service Agreement ID is the unique ID generated on create of a service agreement. This field identifies the service agreement for which notification preferences are retrieved.
    Example: 8805757605
  • Minimum Value: -999
    Maximum Value: 999
    Sequence is a primary key that uniquely identifies an entry within the input or output list. Each entry represents a combination of notification type, account, service agreement, and premise.
    Example: 19
Request Body - application/json ()
Root Schema : schema
Type: object
Show Source
Nested Schema : accounts
Type: array
Show Source
Nested Schema : items
Type: object
Show Source
  • Maximum Length: 10
    Account ID is the unique ID generated on create of an account. This field identifies the account for which notification preferences are retrieved.
    Example: 1575649032
  • Maximum Length: 30
    The notification type for which the notification preferences are retrieved.
    Example: CM-OUTAGENOTIF
  • Maximum Length: 10
    Premise ID is the unique ID generated on create of a premise. This field identifies the premise for which notification preferences are retrieved.
    Example: 2242620736
  • Maximum Length: 10
    Service Agreement ID is the unique ID generated on create of a service agreement. This field identifies the service agreement for which notification preferences are retrieved.
    Example: 8805757605
  • Minimum Value: -999
    Maximum Value: 999
    Sequence is a primary key that uniquely identifies an entry within the input or output list. Each entry represents a combination of notification type, account, service agreement, and premise.
    Example: 19
Back to Top

Response

Supported Media Types

200 Response

Success response
Body ()
Root Schema : C1AccNtfPref
Type: object
Show Source
Nested Schema : accounts
Type: array
Show Source
Nested Schema : items
Type: object
Show Source
  • Maximum Length: 5
    CIS Division defines the jurisdiction that governs the account.
    Example: CA
  • errorInformation
  • This indicates whether the notification type is configured with a customer contact type used to record the notification.
    Example: true
  • For push notifications, this indicates whether the parent notification type allows users to opt out of receiving notifications of that type.
    Example: true
  • This indicates whether the notification type is only allowed on service agreements whose SA type requires a service point.
    Example: true
  • Allowed Values: [ "C1AC", "C1SA" ]
    This indicates whether contact preferences are maintained by account or by service agreement. * `C1AC` - By Account, * `C1SA` - By Service Agreement
    Example: C1AC
  • notificationPreferences
  • Maximum Length: 30
    For individual push notification types, this is the parent type. Preferences are set for the parent type and are used when creating individual push notifications.
    Example: SERVICE-NOTICIES
  • sas
  • Minimum Value: -999
    Maximum Value: 999
    Sequence is a primary key that uniquely identifies an entry within the input or output list. Each entry represents a combination of notification type, account, service agreement, and premise.
    Example: 19
  • Allowed Values: [ "C1PU", "C1SU" ]
    This indicates whether the notification type is a subscription or push subtype. * `C1PU` - Push, * `C1SU` - Subscription
    Example: C1SU
Nested Schema : errorInformation
Type: object
Show Source
Nested Schema : notificationPreferences
Type: array
Show Source
Nested Schema : sas
Type: array
Show Source
Nested Schema : errorReference
Type: object
Show Source
  • Minimum Value: -99999
    Maximum Value: 99999
    This is the message category of the error.
  • Minimum Value: -99999
    Maximum Value: 99999
    This is the message number of the error.
Nested Schema : items
Type: object
Show Source
Nested Schema : personContact
Type: object
Show Source
  • Maximum Length: 10
    Person Contact ID is the unique ID generated on create of a person contact.
    Example: 1461171925
  • Maximum Length: 254
    Contact Value is the information of the Person Contact where the notification will be sent.
    Example: johndoe@email.com
  • Do Not Disturb From specifies the end of the time range during which the person will not receive notifications.
    Example: 20.30.00
  • Do Not Disturb From specifies the start of the time range during which the person will not receive notifications.
    Example: 08.00.00
  • Maximum Length: 50
    For a person, this field is the first name. If the system does not use a name separator, this field contains the entity name. For a business, this field is the entity name.
    Example: John
  • Maximum Length: 3
    The language used by the person receiving the notification. This determines the appropriate notification template to use.
    Example: ENG
  • Maximum Length: 50
    The person's last name. If the system does not use a name separator, this field is null. For a business, this field is also null.
    Example: Doe
  • Maximum Length: 100
    Description
  • Override Do Not Disturb is a boolean value that indicates whether the person allows notifications to be received during the Do Not Disturb (DND) time range.
    Example: true
  • Maximum Length: 100
    Description
  • Maximum Length: 10
    Person ID is the unique ID generated on create of a person.
    Example: 1469201746
  • Maximum Length: 254
    Template Name identifies the template used to send the notification to the person. The appropriate template is determined based on the person's language.
    Example: Outage Notification (English)
  • Maximum Length: 10
    Time Zone specifies the person's time zone. If no time zone is assigned to the person, the time zone configured in Installation Options is used by default. The Do Not Disturb From and Do Not Disturb To times are interpreted based on this time zone.
    Example: USPACIFIC
Nested Schema : items
Type: object
Show Source
Nested Schema : saNotificationPreferences
Type: array
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : personContact
Type: object
Show Source
  • Maximum Length: 10
    Person Contact ID is the unique ID generated on create of a person contact.
    Example: 1461171925
  • Maximum Length: 254
    Contact Value is the information of the Person Contact where the notification will be sent.
    Example: johndoe@email.com
  • Do Not Disturb From specifies the end of the time range during which the person will not receive notifications.
    Example: 20.30.00
  • Do Not Disturb From specifies the start of the time range during which the person will not receive notifications.
    Example: 08.00.00
  • Maximum Length: 50
    For a person, this field is the first name. If the system does not use a name separator, this field contains the entity name. For a business, this field is the entity name.
    Example: John
  • Maximum Length: 3
    The language used by the person receiving the notification. This determines the appropriate notification template to use.
    Example: ENG
  • Maximum Length: 50
    The person's last name. If the system does not use a name separator, this field is null. For a business, this field is also null.
    Example: Doe
  • Maximum Length: 100
    Description
  • Override Do Not Disturb is a boolean value that indicates whether the person allows notifications to be received during the Do Not Disturb (DND) time range.
    Example: true
  • Maximum Length: 100
    Description
  • Maximum Length: 10
    Person ID is the unique ID generated on create of a person.
    Example: 1469201746
  • Maximum Length: 254
    Template Name identifies the template used to send the notification to the person. The appropriate template is determined based on the person's language.
    Example: Outage Notification (English)
  • Maximum Length: 10
    Time Zone specifies the person's time zone. If no time zone is assigned to the person, the time zone configured in Installation Options is used by default. The Do Not Disturb From and Do Not Disturb To times are interpreted based on this time zone.
    Example: USPACIFIC

400 Response

Bad Request
Body ()
Root Schema : problemDetailDocument
Type: object
Show Source
  • Maximum Length: 60
    The long message description from the Oracle Utilities Application Framework in CDATA format.
  • Minimum Value: 0
    Maximum Value: 9999
    The HTTP Status code for the error.
  • Maximum Length: 60
    Fully qualified URL consisting of the Base URI Timestamp of error in ISO format, the User used for the transaction, the Message Category within Oracle Utilities Application Framework, the Message Number within Oracle Utilities Application Framework, the Request URL and the HTTP method used for the transaction.
  • Maximum Length: 60
    URL of the format "A/message/X/Y" where A is the base URI, X is the Message Category and Y is the Message Number within Oracle Utilities Application Framework.
  • serverMessage
  • Maximum Length: 60
    The stack trace shows where the error occurs during the execution of a program.
  • Maximum Length: 60
    Fully qualified error message from Oracle Utilities Application Framework in CDATA format.
Nested Schema : serverMessage
Type: object
Show Source
  • Maximum Length: 60
    Delimited sequence of programs called.
  • Maximum Length: 60
    The long message description from the Oracle Utilities Application Framework in CDATA format.
  • Minimum Value: 0
    Maximum Value: 0
    Message Category within Oracle Utilities Application Framework.
  • Minimum Value: -99999
    Maximum Value: 99999
    Message Number within Oracle Utilities Application Framework.
  • Maximum Length: 60
    Fully qualified error message from Oracle Utilities Application Framework in CDATA format.
  • Maximum Length: 60
    Name of the program that encountered the error.

500 Response

Internal Server Error
Body ()
Root Schema : problemDetailDocument
Type: object
Show Source
  • Maximum Length: 60
    The long message description from the Oracle Utilities Application Framework in CDATA format.
  • Minimum Value: 0
    Maximum Value: 9999
    The HTTP Status code for the error.
  • Maximum Length: 60
    Fully qualified URL consisting of the Base URI Timestamp of error in ISO format, the User used for the transaction, the Message Category within Oracle Utilities Application Framework, the Message Number within Oracle Utilities Application Framework, the Request URL and the HTTP method used for the transaction.
  • Maximum Length: 60
    URL of the format "A/message/X/Y" where A is the base URI, X is the Message Category and Y is the Message Number within Oracle Utilities Application Framework.
  • serverMessage
  • Maximum Length: 60
    The stack trace shows where the error occurs during the execution of a program.
  • Maximum Length: 60
    Fully qualified error message from Oracle Utilities Application Framework in CDATA format.
Nested Schema : serverMessage
Type: object
Show Source
  • Maximum Length: 60
    Delimited sequence of programs called.
  • Maximum Length: 60
    The long message description from the Oracle Utilities Application Framework in CDATA format.
  • Minimum Value: 0
    Maximum Value: 0
    Message Category within Oracle Utilities Application Framework.
  • Minimum Value: -99999
    Maximum Value: 99999
    Message Number within Oracle Utilities Application Framework.
  • Maximum Length: 60
    Fully qualified error message from Oracle Utilities Application Framework in CDATA format.
  • Maximum Length: 60
    Name of the program that encountered the error.
Back to Top