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

Example of Updating an Existing Billing Account


This example shows you how to use the accounts Web service to update the information for an existing billing account.

Operation

Use the following operation to update an existing billing account:

PUT /accounts/{accountId}

Sample URL

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

http://myhost.example.com:7017/rs/api/v2/accounts/7836380B2B1

Sample XML Input Rules

The following are the XML input rules:

  • Tags in bold are required, and the corresponding fields cannot be updated.
  • Tags that are not in bold are optional.
  • 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:

<accountInfo>
<accountId>BS1|7836380B2B1</accountId>
<billerId>BS1</billerId>
<accountNumber>7836380B2B1</accountNumber>
<accountName>7836380B2B1</accountName>
<companyId>Dutch Home Insurance</companyId>
<contactName>xxx</contactName>
<address1>...</address1>
<address2>...</address2>
<address3>...</address3>
<city>...</city>
<state>...</state>
<country>...</country>
<postalCode>...</postalCode>
</accountInfo>

Sample JSON Input

The following is an example of JSON input:

{
   "accountId": "BS1|7836380B2B1",
   "billerId": "BS1",
   "accountNumber": "7836380B2B1",
   "accountName": "7836380B2B1",
   "companyId": "Dutch Home Insurance",
   "contactName": "xxx",
   "address1": "...",
   "address2": "...",
   "address3": "...",
   "city": "...",
   "state": "...",
   "country": "...",
   "postalCode": "..."
}

Response Message

The following is an example of the response message:

Account Update Success

Visit <link>http://myhost.example.com:7017/rs/api/v2/accounts/BS1%7C7836380B2B1</link>

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