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

Example of Creating a New Company and Primary Contact


This example shows you how to use the companies Web service to create a new company and add a primary contact for initial enrollment.

Operation

Use the following operation to update a company's information:

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 JSON Input

The following is an example of JSON input:

{
"companyId":"Company3",
"displayName":"Company3 Mobile Corporation",
"corpAccountNumber":"012",
"taxId":"022",
"street":"24 Tuvell St",
"city":"Portland",
"state":"CA",
"country":"USA",
"postalCode":"92901",
"primaryContactUsername":"newUserABC",
"primaryContactFirstname":"First",
"primaryContactLastname":"Last",
"primaryContactEmail":"Name@example.com",
"startDate":{
"pattern":"MM/dd/yyyy",
"value":"06/12/2015"
}
}

Response Message

The following is an example of the response message:

Company successfully created

Visit <link>http://hostname.example.com:7017/rs/api/v2/companies/Company3</link>

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