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
-
expand: string
This field determines the additional properties to be returned. Possible value for this query parameter is ???accessRights??? to include accessRights of the member.
-
filterUsersWithRoleIds: string
This field filters the users which have the given roles assigned.Possible values are role ids which are comma separated.
-
includedRoles: string
This field determines if only organizational roles or all roles are to be returned for the member. Default value is 'organizationalRolesForCurrentOrganization'. Possible values are 'organizationalRolesForCurrentOrganization', 'allRolesForCurrentOrganization'.
-
limit: string
This is the field to determine number of records to be fetched per REST call.
-
offset: string
This field determines the offset/starting index from which data to be fetched.
-
q: string
Query string built as per the SCIM standards that helps to search entered string across contact properties, 'firstName', 'lastName', 'email' and role
-
sort: string
This field determines the sort order of the list to be fetched.
Header Parameters
-
X-CCAsset-Language: string
The asset language of the request
-
X-CCOrganization: string
Current organization context of the logged in user
Response
Supported Media Types
- application/json
200 Response
Following model is returned when operation succeeds.
Root Schema : listMembers_response
Type:
Show Source
object
-
items:
array items
list of shopper profiles
-
limit:
string
Number of records to be fetched.
-
offset:
integer
Index of the first element to return.
-
sort:
array sort
Sorting criteria.
-
total:
string
Total number of records present in database matching the searched string.
-
totalResults:
integer
The total number of items that match the search criteria.
Nested Schema : items
Type:
Show Source
object
-
active:
boolean
This is active status of the profile should be true or false.
-
customerContactId:
string
The external customer contact id.
-
email:
string
The email address of the profile
-
firstName:
string
The first name of the profile
-
GDPRProfileP13nConsentDate:
string
The date on which GDPR personalization consent was granted by the user.
-
GDPRProfileP13nConsentGranted:
boolean
Indicates whether the user has given GDPR Profile P13n consent on the current site. Can be true or false.
-
id:
string
The id of the profile to retrieve
-
lastName:
string
The last name of the profile
-
locale:
string
The locale of the request/response
-
orderPriceLimit:
string
The order pricelimit for the organization
-
parentOrganization:
object parentOrganization
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:
string
This attribute is added for account-based commerce. It's value is 'b2b_user'
-
receiveEmail:
string
Indicates whether the customer has opted for receiving marketing emails on the current site. Can be yes or no.
-
receiveEmailDate:
string
The date on which the customer opted for receiving marketing emails.
-
repositoryId:
string
The id of the profile
-
roles:
array roles
List of user roles
Nested Schema : parentOrganization
Type:
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
Show Source
-
active:
boolean
This is active status of the profile should be true or false.
-
billingAddress:
object billingAddress
Default billing address of the organization
-
description:
string
The description of the parent organization
-
externalOrganizationId:
string
External organization id
-
id:
string
The id of the parent organization
-
name:
string
The name of the parent organization
-
punchoutUserId:
string
Punchout user Id of organization, read only property.
-
repositoryId:
string
The id of the parent organization
-
shippingAddress:
object shippingAddress
Default shipping address of the organization
Nested Schema : billingAddress
Type:
object
Default billing address of the organization
Show Source
-
repositoryId:
string
The id of the billing address
Nested Schema : shippingAddress
Type:
object
Default shipping address of the organization
Show Source
-
repositoryId:
string
The id of the shipping address
Nested Schema : items
Type:
Show Source
object
-
associations:
array associations
Associations of the role with the organization member
-
function:
string
Function of the role. Present only if type is organizationalRole
-
id:
string
ID of the role
-
name:
string
Name of the role
-
relativeTo:
object relativeTo
Organization in which the role applies. Present only if type is organizationalRole
-
repositoryId:
string
Repository id of the role
-
type:
string
Type of the role which can be organizationalRole or role
Nested Schema : associations
Type:
array
Associations of the role with the organization member
Show Source
Nested Schema : relativeTo
Type:
object
Organization in which the role applies. Present only if type is organizationalRole
Show Source
-
id:
string
Organization ID
Nested Schema : items
Type:
Show Source
object
- relatedItemId: string
-
type:
string
Type of the association.Possible values are - organization,global.
Nested Schema : items
Type:
Show Source
object
-
order:
string
Sort order: asc or desc.
-
property:
string
The property the listing is sorted by.
Example Response (application/json)
{
"total":3,
"totalResults":3,
"offset":0,
"limit":3,
"sort":[
{
"property":"email",
"order":"asc"
},
{
"property":"firstName",
"order":"asc"
},
{
"property":"lastName",
"order":"asc"
}
],
"items":[
{
"lastName":"jetu#$%^&test",
"firstName":"jetu&",
"customerContactId":"CRMID_1",
"profileType":"b2b_user",
"roles":[
{
"associations":[
{
"relatedItemId":"or-100003",
"type":"organization"
}
],
"function":"buyer",
"relativeTo":{
"id":"or-100003"
},
"repositoryId":"100006",
"name":"Buyer",
"id":"100006",
"type":"organizationalRole"
}
],
"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",
"externalOrganizationId":"EXT_ORG_1"
},
"email":"test&@example.com"
},
{
"lastName":"!@#$%^&*",
"firstName":"test1",
"customerContactId":"CRMID_1",
"profileType":"b2b_user",
"roles":[
{
"associations":[
{
"relatedItemId":null,
"type":"global"
}
],
"function":"buyer",
"relativeTo":{
"id":"or-100003"
},
"repositoryId":"100006",
"name":"Buyer",
"id":"100006",
"type":"organizationalRole"
}
],
"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",
"externalOrganizationId":"EXT_ORG_1"
},
"email":"test1@abc.com"
},
{
"lastName":"Test",
"firstName":"test",
"customerContactId":"CRMID_1",
"profileType":"b2b_user",
"roles":[
{
"associations":[
{
"relatedItemId":"or-100003",
"type":"organization"
}
],
"function":"buyer",
"relativeTo":{
"id":"or-100003"
},
"repositoryId":"100006",
"name":"Buyer",
"id":"100006",
"type":"organizationalRole"
}
],
"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",
"externalOrganizationId":"EXT_ORG_1"
},
"email":"test@example.com"
}
]
}
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|
|------------------|------------------|
|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'.|
|23044|If an invalid value for includeRoles query parameter 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