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

Example of Getting a List of All Service Agreements for an Account


This example shows you how to use the service_agreements Web service to get a list of all service agreements for a particular account.

Operation

Use the following operation to get a list of all service agreements for an account:

GET /service_agreements/accounts/{account_id}

Sample URL

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

http://myhost.example.com:7017/ebillingrs/rs/service_agreements/accounts/{account_id}

Roles

The following roles are valid for this Web service example:

  • B2B Admin
  • B2B Manager
  • B2B Subscriber
  • B2C User
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 Self-Service E-Billing Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Legal Notices.