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(optional): string
                        
                        The asset language of the request
- 
                        X-CCOrganization(optional): string
                        
                        Current organization context of the logged in user
Root Schema : createMember_request
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
        Show Source
        object- 
            active: 
            boolean
            This is active status of the profile should be true or false.
- 
            email: 
            string
            the email address of the profile
- 
            firstName: 
            string
            the first name of the profile
- 
            lastName: 
            string
            the last name of the profile
- 
            receiveEmail: 
            string
            the string representation of whether the user wants to recieve email or not, it should be 'yes' or 'no'
- 
            roles(optional): 
            object  roles
            
            List of role's function that need to associate with the user
Example:
    
    
{
    "dynamicProperty":"dynamicProperty value",
    "firstName":"bcd",
    "lastName":"K",
    "roles":[
        {
            "function":"buyer"
        }
    ],
    "receiveEmail":"yes",
    "active":true,
    "email":"bcd@example.com"
}Nested Schema : roles
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    objectList of role's function that need to associate with the user
    
    
    
    
    
    
    
    
    
    
Response
Supported Media Types
                - application/json
200 Response
Following model is returned when operation succeeds.
                
                
                    Root Schema : createMember_response
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
        Show Source
        object- 
            id(optional): 
            string
            Repository id of the 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|
                
                
                    Root Schema : errorModel
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
        Show Source
        object- 
            devMessage(optional): 
            string
            An optional non-localized message containing technical information for developers
- 
            errorCode(optional): 
            string
            The numerical code identifying the error
- 
            errors(optional): 
            array  errors
            
            An optional list of errors if multiple errors were encountered
- 
            message(optional): 
            string
            The localized message describing the error
- 
            moreInfo(optional): 
            string
            An optional non-localized message with more information
- 
            o:errorPath(optional): 
            string
            An optional machine readable description of where the error occurred
- 
            status(optional): 
            string
            The HTTP status code
- 
            type(optional): 
            string
            The URI to the HTTP state code definition
Nested Schema : errors
    
      
      Type: 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    arrayAn optional list of errors if multiple errors were encountered
    
    
    
    
    
        Show Source
        
        
    
    
    
    
    
    
Nested Schema : items
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
        Show Source
        object- 
            devMessage(optional): 
            string
            An optional non-localized message containing technical information for developers
- 
            errorCode(optional): 
            string
            The numerical code identifying the error
- 
            message(optional): 
            string
            The localized message describing the error
- 
            moreInfo(optional): 
            string
            An optional non-localized message with more information
- 
            o:errorPath(optional): 
            string
            An optional machine readable description of where the error occurred
- 
            status(optional): 
            string
            The HTTP status code