createMember
post
/ccstore/v1/organizationMembers
Create Member. This operation is used to create a profile in Oracle Commerce Cloud for a customer. Optionally takes the x-ccasset-language headers to get translated content in another language. Also it can have optional X-CCOrganization header which is a JSON field to specify current Organization id of logged in user.
Request
Supported Media Types
- application/json
Header Parameters
- X-CCAsset-Language
-
Type:
string
The asset language of the request- X-CCOrganization
Type:string
Current organization context of the logged in user
Body Parameter
Root Schema : createMember_request
{
"firstName":"Leota",
"lastName":"Dilliard",
"roles":[
{
"function":"admin"
},
{
"function":"buyer"
}
],
"active":true,
"receiveEmail":"yes",
"email":"leota@example.com",
"Age":30,
"Nickname":"Leota"
}
- active
-
Type:
boolean
Required:true
This is active status of the profile should be true or false. - dynamicProperty
-
Type:
object
dynamicPropertyDynamic property name and value. -
Type:
string
Required:true
The email address of the profile - firstName
-
Type:
string
Required:true
The first name of the profile - lastName
-
Type:
string
Required:true
The last name of the profile - receiveEmail
-
Type:
string
Required:true
The string representation of whether the user wants to recieve email or not, it should be 'yes' or 'no' - roles
-
Type:
array
rolesRequired:true
List of roles need to associate with the user
Nested Schema : dynamicProperty
Type:
object
Dynamic property name and value.
Nested Schema : roles
Nested Schema : items
Type:
object
- function
-
Type:
string
Required:true
The function of the role which can be admin or buyer.
Response
Supported Media Types
- application/json
200 Response
Following model is returned when operation succeeds.
Body
Root Schema : createMember_response
- id
-
Type:
string
Repository id of the newly created profile
Example application/json
{
"id":"110026"
}
Default Response
The error response.
The following are the internal error codes thrown by this API when the request processing fails in Oracle Commerce Cloud:
|Error Code|Description|
|------------------|------------------|
|22003|If the email passed is null or empty|
|22004|If there was any internal error while creating the profile|
Body
Root Schema : errorModel
Type:
object
- devMessage
-
Type:
string
An optional non-localized message containing technical information for developers - errorCode
-
Type:
string
The numerical code identifying the error - errors
-
Type:
array
errorsAn optional list of errors if multiple errors were encountered - message
-
Type:
string
The localized message describing the error - moreInfo
-
Type:
string
An optional non-localized message with more information - o:errorPath
-
Type:
string
An optional machine readable description of where the error occurred - status
-
Type:
string
The HTTP status code - type
-
Type:
string
The URI to the HTTP state code definition
Nested Schema : errors
Nested Schema : items
Type:
object
- devMessage
-
Type:
string
An optional non-localized message containing technical information for developers - errorCode
-
Type:
string
The numerical code identifying the error - message
-
Type:
string
The localized message describing the error - moreInfo
-
Type:
string
An optional non-localized message with more information - o:errorPath
-
Type:
string
An optional machine readable description of where the error occurred - status
-
Type:
string
The HTTP status code
Examples
Sample Request:
{ "firstName": "bcd", "lastName": "K", "roles": [{"function": "buyer"}], "receiveEmail": "yes", "active": true, "email": "bcd@abc.com" }
Sample Response Payload returned by endpoint:
{"id": "110026"}