Web Services Reference for Oracle Self-Service E-Billing > Examples of Web Services > Examples of the Accounts Web Service >

Example of Getting a List of Billing Accounts for a User


This example shows you how to use the accounts Web service to get a list of the billing accounts that a user can access.

Operation

Use the following operation to get a list of accounts for a user:

GET /accounts

Sample URL

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

http://myhost.example.com:7017/ebillingrs/rs/accounts

Roles

The following roles are valid for this Web service example:

  • B2B Admin
  • B2B Manager
  • B2C User
XML Response

The following is an example of the XML response:

<accountList>

<count>2</count>

<account currency="USD">

<accountId>BS1|7836380B2B1</accountId>

<billerId>BS1</billerId>

<accountNumber>7836380B2B1</accountNumber>

<currBalance>999</currBalance>

<companyId>Dutch Home Insurance</companyId>

<contactName>John SMITH updated</contactName>

</account>

<account>

<accountId>BS1|7836381B2B1</accountId>

<billerId>BS1</billerId>

<accountNumber>7836381B2B1</accountNumber>

<accountName>7836381B2B1</accountName>

<companyId>Dutch Home Insurance</companyId>

<contactName>xxx</contactName>

<address1>...</address1>

<address2>...</address2>

<address3>...</address3>

<city>...</city>

<state>...</state>

<country>...</country>

<postalCode>...</postalCode>

</account>

</accountList>

Web Services Reference for Oracle Self-Service E-Billing Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Legal Notices.