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

Example of Creating a Company and a Billing Hierarchy


This example shows you how to use the companies Web service to create a company and a billing hierarchy for the company.

Operation

Use the following operation to create a company and a billing hierarchy:

POST /companies

Sample URL

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

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

Role

CSR Admin

Sample XML Input Rule

The following are the XML input rules:

  • Tags in bold are required.
  • Corresponding fields cannot be updated.
Sample XML Input

The following is an example of XML input:

<companyInfo>

< companyId>Dutch Home Insurance</companyId>

<companyName>Dutch Home Insurance Corporation</companyName>

<taxId>...</taxId>

<address1>...</address1>

<city>...</city>

<state>...</state>

<country>...</country>

<postalCode>...</postalCode>

</companyInfo>

Response Message

The following is an example of the response message:

Company Create Success

Visit <link>/companies/Dutch%20Home%20Insurance</link>

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