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

Example of Creating a B2C Billing Account


This example shows you how to use the accounts Web service to create a B2C billing account.

Operation

Use the following operation to create a B2C account:

POST /accounts

Sample URL

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

http://myhost.example.com:7017/rs/api/v2/accounts

Sample XML Input

The following is an example of XML input:

<accountInfo>
<accountId>BS2|7836380B2C1</accountId >
<billerId>BS2</billerId>
<accountNumber>7836380B2C1</accountNumber>
<accountType>PREPAY</accountType>
<accountName>7836380B2C1</accountName>
<contactName>xxx</contactName>
<address1>...</address1>
<address2>...</address2>
<address3>...</address3>
<city>...</city>
<state>...</state>
<country>...</country>
<postalCode>...</postalCode>
</accountInfo>

Sample JSON Input

The following is an example of JSON input:

{
"userId":"rsamb2c2",
"role":"User",
"firstName":"Rob",
"lastName":"Sunny",
"email":"RSunny@example.com",
"language":"en_US",
"billerId":"BS2",
"accountNumber":"AC-B2C-7836380-1",
"userType":"b2c"
}

Response Message
The following is an example of the response message:

Account Create Success

Visit <link>http://myhost.example.com:7017/rs/api/v2/accounts/BS2%7C7836380B2C1</link>

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