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
Nested Schema : roles
Type: object
List 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.
Body
Root Schema : createMember_response
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
Nested Schema : errors
Type: array
An optional list of errors if multiple errors were encountered
Nested Schema : items
Type: object

Examples

Sample Request:

{
  "dynamicProperty": "dynamicProperty value",
  "firstName": "bcd",
  "lastName": "K",
  "roles": [{"function": "buyer"}],
  "receiveEmail": "yes",
  "active": true,
  "email": "bcd@abc.com"
}

Sample Response Payload returned by endpoint:

{"id": "110026"}