Web Services Reference for Oracle Billing Insight > Examples of Web Services > Examples of the Notifications Web Service >

Example of Updating a Notification Choice


This example shows you how to use the notification Web service to get a list of notification choices.

Operation

Use the following operation to update a notification choice:

PUT /notifications

Sample URL

The following is a sample URL for this Web service example:

http://myhost.example.com:7017/rs/api/v2/notifications

Sample XML Input Rules

The following are the XML input rules:

  • Tags in bold are required, and the corresponding fields cannot be updated.
  • If tags are not present, then the corresponding fields are not updated.
  • If tags are present with an empty value, then the corresponding fields are set to empty if a null value is allowed.
Sample XML Input

The following is an example of XML input:

<notificationChoices>
<choice>
<id>paymentDueXDays</id>
<email>
<selected>true</selected>
</email>
<sms>
<selected>true</selected>
</sms>
<parameters>
<parameter>
<name>numDaysBeforeDueDate</name>
<value>6</value>
</parameter>
</parameters>
</choice>
</notificationChoices>

Sample JSON Input

The following is an example of JSON input:

{
"choice": [
{
"id": "paymentDueXDays",
"email": {
"selected": true
},
"sms": {
"selected": true
},
"parameters": {
"parameter": [
"name": "numDaysBeforeDueDate",
"value": "6"
}
]

}
]
}

Response Message

Update Notification Choices SUCCESS

Web Services Reference for Oracle Billing Insight Copyright © 2016, Oracle and/or its affiliates. All rights reserved. Legal Notices.