Web Services Reference for Oracle Billing Insight > 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/rs/api/v2/companies

Sample XML Input Rules

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>

Sample JSON Input

The following is an example of JSON input:

{
"companyId": "Dutch Home Insurance",
"companyName": "Dutch Home Insurance Corporation",
"taxId": "...",
"address1": "...",
"city": "...",
"state": "...",
"country": "...",
"postalCode": "..."
}

Response Message

The following is an example of the response message:

Company Create Success

Visit <link>http://myhost.example.com:7017/rs/api/v2/companies/Dutch%20Home%20Insurance</link>

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