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: string
The asset language of the request
-
X-CCOrganization: string
Current organization context of the logged in user
Root Schema : createMember_request
Type:
Show Source
object
-
active(required):
boolean
This is active status of the profile should be true or false.
-
dynamicProperty:
object dynamicProperty
Dynamic property name and value.
-
email(required):
string
The email address of the profile
-
firstName(required):
string
The first name of the profile
-
GDPRProfileP13nConsentGranted:
boolean
Indicates whether the customer has given consent for his/her profile information to be used for personalization purposes. Can be true or false.
-
lastName(required):
string
The last name of the profile
-
receiveEmail(required):
string
Indicates whether the customer should receive marketing emails on the current site. Can be yes or no.
-
roles(required):
array roles
List of roles need to associate with the user
Example:
{
"firstName":"Leota",
"lastName":"Dilliard",
"GDPRProfileP13nConsentGranted":true,
"dynamicProperty1":"dynamicPropertyValue",
"roles":[
{
"function":"admin"
},
{
"function":"buyer"
}
],
"active":true,
"receiveEmail":"yes",
"email":"leota@example.com"
}
Nested Schema : dynamicProperty
Type:
object
Dynamic property name and value.
Nested Schema : items
Type:
Show Source
object
-
function(required):
string
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.
Root Schema : createMember_response
Type:
Show Source
object
-
id:
string
Repository id of the newly created profile
Example Response (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|
|13001|If role function is given as 'custom' but no repositoryId is given|
Root Schema : errorModel
Type:
Show Source
object
-
devMessage:
string
An optional non-localized message containing technical information for developers
-
errorCode:
string
The numerical code identifying the error
-
errors:
array errors
An optional list of errors if multiple errors were encountered
-
message:
string
The localized message describing the error
-
moreInfo:
string
An optional non-localized message with more information
-
o:errorPath:
string
An optional machine readable description of where the error occurred
-
status:
string
The HTTP status code
-
type:
string
The URI to the HTTP state code definition
Nested Schema : errors
Type:
array
An optional list of errors if multiple errors were encountered
Show Source
Nested Schema : items
Type:
Show Source
object
-
devMessage:
string
An optional non-localized message containing technical information for developers
-
errorCode:
string
The numerical code identifying the error
-
message:
string
The localized message describing the error
-
moreInfo:
string
An optional non-localized message with more information
-
o:errorPath:
string
An optional machine readable description of where the error occurred
-
status:
string
The HTTP status code