listMembers
get
/ccstore/v1/organizationMembers
List Members. This operation is used to get the collection of customer profiles from Oracle Commerce Cloud. Optionally takes the x-ccasset-language headers to get translated content in another language.Also it optionally takes X-CCOrganization to specify current Organization of logged in user. It can also be used to return the list on a searched string and in a sorted order against various properties of profile.
Request
Supported Media Types
- application/json
Query Parameters
- limit
-
Type:
string
This is the field to determine number of records to be fetched per REST call.- offset
Type:string
This field determines the offset/starting index from which data to be fetched.- q
Type:string
Query string built as per the SCIM standards that helps to search entered string across contact properties, 'firstName', 'lastName', 'email' and role- sort
Type:string
This field determines the sort order of the list to be fetched.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
Response
Supported Media Types- application/json
200 ResponseFollowing model is returned when operation succeeds.BodyRoot Schema : listMembers_response- items
-
Type:
array
itemsAdditional Properties Allowed:list of shopper profiles - limit
-
Type:
string
Number of records to be fetched. - total
-
Type:
string
Total number of records present in database matching the searched string.
Nested Schema : itemsNested Schema : itemsType:object
- active
-
Type:
boolean
This is active status of the profile should be true or false. -
Type:
string
the email address of the profile - firstName
-
Type:
string
the first name of the profile - id
-
Type:
string
the id of the profile to retrieve - lastName
-
Type:
string
the last name of the profile - locale
-
Type:
string
the locale of the request/response - parentOrganization
-
Type:
object
parentOrganizationAdditional Properties Allowed:This attribute is added for 'Account-Based Commerce', this is required only in case of 'Account-Based Commerce', this is the id of organization to which user is associated - profiletype
-
Type:
string
This attribute is added for account-based commerce. It's value is 'b2b_user' - receiveEmail
-
Type:
string
this is email marketing flag. can be yes or no - repositoryId
-
Type:
string
the id of the profile - roles
-
Type:
array
rolesAdditional Properties Allowed:List of user roles
Nested Schema : parentOrganizationType:object
This attribute is added for 'Account-Based Commerce', this is required only in case of 'Account-Based Commerce', this is the id of organization to which user is associated- active
-
Type:
boolean
This is active status of the profile should be true or false. - billingAddress
-
Type:
object
billingAddressAdditional Properties Allowed:Default billing address of the profile - description
-
Type:
string
the description of the parent organization - id
-
Type:
string
the id of the parent organization - name
-
Type:
string
the name of the parent organization - repositoryId
-
Type:
string
the id of the parent organization - secondaryAddresses
-
Type:
object
secondaryAddressesAdditional Properties Allowed:List of shipping addresses associated with the profile. - shippingAddress
-
Type:
object
shippingAddressAdditional Properties Allowed:Default shipping address of the profile
Nested Schema : rolesNested Schema : billingAddressType:object
Default billing address of the profile- repositoryId
-
Type:
string
the id of the billing address
Nested Schema : secondaryAddressesType:object
List of shipping addresses associated with the profile.- AddressType
-
Type:
object
AddressTypeAdditional Properties Allowed:Address type represents nick-name of address.
Nested Schema : shippingAddressType:object
Default shipping address of the profile- repositoryId
-
Type:
string
the id of the shipping address
Nested Schema : AddressTypeType:object
Address type represents nick-name of address.- repositoryId
-
Type:
string
Repository ID of the shipping address
Nested Schema : itemsType:object
- function
-
Type:
string
the function of the role - repositoryId
-
Type:
string
the repository id of the role
Example application/json
{ "total":3, "totalResults":3, "offset":0, "limit":3, "links":[ { "rel":"self", "href":"http://localhost:8080/ccstore/v1/organizationMembers?limit=20&offset=0&sort=email:asc&q=lastName%20co%20%22test%22%20or%20email%20co%20%22test%22%20and%20profileType%20eq%20%22b2b_user%22%20and%20parentOrganization%20eq%20%22null%22%20and%20roles.function%20eq%20%22buyer%22" } ], "sort":[ { "property":"email", "order":"asc" }, { "property":"firstName", "order":"asc" }, { "property":"lastName", "order":"asc" } ], "items":[ { "lastName":"jetu#$%^&test", "firstName":"jetu&", "profileType":"b2b_user", "roles":[ { "function":"buyer", "repositoryId":"100006" } ], "repositoryId":"120015", "receiveEmail":"yes", "active":true, "id":"120015", "locale":"en", "parentOrganization":{ "repositoryId":"100003", "name":"sample12", "active":true, "description":null, "shippingAddress":null, "secondaryAddresses":{ }, "billingAddress":null, "id":"100003" }, "email":"test&@test.com" }, { "lastName":"!@#$%^&*", "firstName":"test1", "profileType":"b2b_user", "roles":[ { "function":"buyer", "repositoryId":"100006" } ], "repositoryId":"130000", "receiveEmail":"yes", "active":true, "id":"130000", "locale":"en", "parentOrganization":{ "repositoryId":"100001", "name":"sample1", "active":true, "description":null, "shippingAddress":null, "secondaryAddresses":{ }, "billingAddress":null, "id":"100001" }, "email":"test1@abc.com" }, { "lastName":"Test", "firstName":"test", "profileType":"b2b_user", "roles":[ { "function":"buyer", "repositoryId":"100006" } ], "repositoryId":"120008", "receiveEmail":"yes", "active":true, "id":"120008", "locale":"en", "parentOrganization":{ "repositoryId":"100002", "name":"sample2", "active":true, "description":null, "shippingAddress":null, "secondaryAddresses":{ }, "billingAddress":null, "id":"100002" }, "email":"test@test.com" } ] }
Default ResponseThe 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| |------------------|------------------| |100070|Invalid Query Expression.| |22000|If the profile id passes is null or empty| |22001|If there was any internal error while getting the profile| |10002|The value x for parameter 'y' is invalid. 'y' can be 'limit', 'offset' or 'sort'.|BodyRoot Schema : errorModelType: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
errorsAdditional Properties Allowed:An 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 : errorsNested Schema : itemsType: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 Response Payload returned by endpoint:
{ "total": 3, "totalResults": 3, "offset": 0, "limit": 3, "links": [{ "rel": "self", "href": "http://localhost:8080/ccstore/v1/organizationMembers?limit=20&offset=0&sort=email:asc&q=lastName%20co%20%22test%22%20or%20email%20co%20%22test%22%20and%20profileType%20eq%20%22b2b_user%22%20and%20parentOrganization%20eq%20%22null%22%20and%20roles.function%20eq%20%22buyer%22" }], "sort": [ { "property": "email", "order": "asc" }, { "property": "firstName", "order": "asc" }, { "property": "lastName", "order": "asc" } ], "items": [ { "lastName": "jetu#$%^&test", "firstName": "jetu&", "profileType": "b2b_user", "roles": [{ "function": "buyer", "repositoryId": "100006" }], "repositoryId": "120015", "receiveEmail": "yes", "active": true, "id": "120015", "locale": "en", "parentOrganization": { "repositoryId": "100003", "name": "sample12", "active": true, "description": null, "shippingAddress": null, "secondaryAddresses": {}, "billingAddress": null, "id": "100003" }, "email": "test&@test.com" }, { "lastName": "!@#$%^&*", "firstName": "test1", "profileType": "b2b_user", "roles": [{ "function": "buyer", "repositoryId": "100006" }], "repositoryId": "130000", "receiveEmail": "yes", "active": true, "id": "130000", "locale": "en", "parentOrganization": { "repositoryId": "100001", "name": "sample1", "active": true, "description": null, "shippingAddress": null, "secondaryAddresses": {}, "billingAddress": null, "id": "100001" }, "email": "test1@abc.com" }, { "lastName": "Test", "firstName": "test", "profileType": "b2b_user", "roles": [{ "function": "buyer", "repositoryId": "100006" }], "repositoryId": "120008", "receiveEmail": "yes", "active": true, "id": "120008", "locale": "en", "parentOrganization": { "repositoryId": "100002", "name": "sample2", "active": true, "description": null, "shippingAddress": null, "secondaryAddresses": {}, "billingAddress": null, "id": "100002" }, "email": "test@test.com" } ] }