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

Example of Creating a Service Agreement


This example shows you how to use the service_agreements Web service to create a service agreement.

Operation

Use the following operation to create a service agreement:

POST /service_agreements

Sample URL

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

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

Roles

The CSR Admin role is valid for this Web service example.

Sample XML Input Rules

The following are the XML input rules:

  • Tags in bold are required.
  • If tags are not present, then the corresponding fields are set to the default values.
  • The value of serviceType must be in the SERVICE_TYPE_CD in the EDX_RPT_SERVICE_TYPE_DIM table in the Online Analytic Processing (OLAP) database.
Sample XML Input

The following is an example of XML input:

<serviceAgreementInfo>

<serviceAgreementId>BS1|7836380B2B1|878-457-B2B1</serviceAgreementId>

<billerId>BS1</billerId>

<accountNumber>7836380B2B1</accountNumber>

<saNumber>878-457-B2B1</saNumber>

<serviceType>UNK</serviceType>

<description>xxx</description>

<subscriber>xxx</subscriber>

</serviceAgreementInfo>

Response Message

The following is an example of the response message:

Service Agreement Create Success

Visit <link>/BS1%7C7836380B2B1%7C878-457-B2B1</link>

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