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

Example of Creating a B2C User


This example shows you how to use the users Web service to create a B2C user (for SSO, not enrollment).

Operation

POST /users

Sample URL

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

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

Sample XML Input Rules

The following are the XML input rules:

  • Tags in bold are required, and the corresponding fields cannot be updated.
  • If tags are not present, then the corresponding fields will be set to the default values.
Sample XML Input

The following is an example of XML input:

<userProfile>
<userId>rsam</userId>
<role>User</role>
<firstName>Rich</firstName>
<lastName>Sam</lastName>
<email>mdhoni@example.com</email>
<language>en_US</language>
<billerId>BS2</billerId>
<accountNumber>7836380B2C1</accountNumber>
<userType>b2c</userType>
</userProfile>

Sample JSON Input

The following is an example of JSON input:

{
"userId":"rsamb2c2",
"role":"User",
"firstName":"Rob",
"lastName":"Sunny",
"email":"rs002@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:

User Create Success

Visit <link>http://myhost.example.com:7017/rs/api/v2/users/ rsam</link>

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