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

Example of Updating a Billing Account Balance


This example shows you how to use the accounts Web service to update a billing account balance with additional information.

Operation

Use the following operation to update a billing account balance:

PUT /accounts/{account_id}/balance

Sample URL

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

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

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.
  • The amount uses the localized format and is parsed in the locale that is passed in the Accept Language HTML attribute.
Sample XML Input

The following is an example of XML input:

<paymentAccountActivity>
<billerId>BS1</billerId>
<accountNumber>7836380B2B1</accountNumber>
<currBalance>786.00</currBalance>
<lastPaymentReceivedAmount>120.00</lastPaymentReceivedAmount>
<lastPaymentReceivedDate pattern="MM/dd/yyyy">08/13/2012<
lastPaymentReceivedDate>
</paymentAccountActivity>

Response Message

The following is an example of the response message:

Update Success

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