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

Example of Getting a List of Service Agreements


This example shows you how to use the service_agreements Web service to get a list of all service agreements for the current period. The list is based on the billing hierarchy for B2B users and the account-service agreement relationship for B2C users.

Operation

Use the following operation to get a list of service agreements:

GET /serviceAgreements

Sample URL

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

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

XML Response

The following is an example of the XML response:

<serviceAgreementList>
<count>2</count>
<serviceAgreement>
<serviceAgreementId>BS1|7836380B2B1|878-457-B2B1</serviceAgreementId>
<billerId>BS1</billerId>
<accountNumber>7836380B2B1</accountNumber>
<saNumber>878-457-B2B1</saNumber>
</serviceAgreement>
<serviceAgreement>
<serviceAgreementId>BS1|7836380DEMO1|878-342-DEM1</serviceAgreementId>
<billerId>BS1</billerId>
<accountNumber>7836380DEMO1</accountNumber>
<saNumber>878-342-DEM1</saNumber>
</serviceAgreement>
</serviceAgreementList>

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