listProfiles
get
/ccadmin/v1/profiles
List Profiles. This operation is used to get the collection of customer profiles from Oracle Commerce Cloud. Optionally takes the x-ccasset-language header to get translated content in another language. 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:
stringThis is the field to determine number of records to be fetched per REST call.- offset
Type:stringThis field determines the offset/starting index from which data to be fetched.- preview
Type:stringIf true, then preview profiles will be searched..- q
Type:stringQuery string built as per the SCIM standards that helps to search entered string across contact properties, 'firstName', 'lastName', 'email', 'parentOrganization' and 'profileType' and also dynamic contact properties.- sort
Type:stringThis field determines the sort order of the list to be fetched.- useAdvancedQParser
Type:booleanThis field determines the parser to be used. Default parser has limitations and nested queries or complex queries cannot be executed using this default parser. It is recommended to use this flag as true.Header Parameters- X-CCAsset-Language
-
Type:
stringThe asset language of the request
Response
Supported Media Types- application/json
200 ResponseFollowing model is returned when operation succeeds.BodyRoot Schema : listProfiles_response- items
-
Type:
arrayitemsAdditional Properties Allowed:list of shopper profiles - limit
-
Type:
integerNumber of records to be fetched. - offset
-
Type:
integerThe offset - total
-
Type:
integerTotal number of records present in database matching the searched string. - totalResults
-
Type:
integerThe total number of records fetched.
Nested Schema : itemsNested Schema : itemsType:object- active
-
Type:
booleanthe user status of the profile. Should be true or false - billingAddress
-
Type:
objectbillingAddressAdditional Properties Allowed:Default billing address of the profile - catalog
-
Type:
stringThis is a read only attribute added for 'Account Based Commerce', this is the ID of the catalog that is associated with the organization to which this user is associated - dateOfBirth
-
Type:
stringThe date of birth of the profile user. - daytimeTelephoneNumber
-
Type:
stringthe phone Number of the profile - derivedPriceListGroup
-
Type:
objectderivedPriceListGroupAdditional Properties Allowed:The derived price list group from the user's parent organization - derivedSalePriceList
-
Type:
objectderivedSalePriceListAdditional Properties Allowed:The derived sale price list from the user's parent organization - derivedShippingSurchargePriceList
-
Type:
objectderivedShippingSurchargePriceListAdditional Properties Allowed:The derived shipping surcharge price list from the user's parent organization - dynamicInternalOnlyProperty
-
Type:
objectdynamicInternalOnlyPropertyAdditional Properties Allowed:The value of the internalOnly dynamic property - dynamicProperty
-
Type:
objectdynamicPropertyAdditional Properties Allowed:the value of the dynamic property -
Type:
stringthe email address of the profile - firstName
-
Type:
stringthe first name of the profile - gender
-
Type:
stringThe gender of the profile user. - id
-
Type:
stringthe id of the profile to retrieve - lastActivity
-
Type:
stringLast activity date of the user - lastName
-
Type:
stringthe last name of the profile - locale
-
Type:
stringthe locale of the request/response - loyaltyPrograms
-
Type:
arrayloyaltyProgramsAdditional Properties Allowed:Loyalty Programs Information - parentOrganization
-
Type:
objectparentOrganizationAdditional 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 - priceListGroup
-
Type:
objectpriceListGroupAdditional Properties Allowed:The associated price list group for this user - profileType
-
Type:
stringThis attribute is added for account based commerce. It's value is 'b2b_user' - receiveEmail
-
Type:
stringthis is site specific email marketing flag. can be yes or no - repositoryId
-
Type:
stringthe id of the profile - roles
-
Type:
arrayrolesAdditional Properties Allowed:List of user roles. - secondaryOrganizations
-
Type:
arraysecondaryOrganizationsAdditional Properties Allowed:List of secondary organizations associated to profile. It will be empty always. Secondary Organizations associated to the profile can be fetched using organization endpoints - shippingAddress
-
Type:
objectshippingAddressAdditional Properties Allowed:Default shipping address of the profile - shippingAddresses
-
Type:
arrayshippingAddressesAdditional Properties Allowed:List of shipping addresses associated with profile. - shippingSurchargePriceList
-
Type:
objectshippingSurchargePriceListAdditional Properties Allowed:The shipping surcharge price list for this user - taxExempt
-
Type:
booleanIndicates tax exemption status.True or False - translations
-
Type:
arraytranslationsAdditional Properties Allowed:List of available locales for the user - userType
-
Type:
integerType of the user(property not used currently)
Nested Schema : billingAddressType:objectDefault billing address of the profile- address1
-
Type:
stringthe address1 of the billing address - address2
-
Type:
stringthe address2 of the billing address - address3
-
Type:
stringthe address3 of the shipping address. - city
-
Type:
stringthe city of the billing address - country
-
Type:
stringthe country of the billing address - county
-
Type:
stringthe county of the billing address - firstName
-
Type:
stringthe first name of the billing address - lastName
-
Type:
stringthe last name of the billing address - phoneNumber
-
Type:
stringthe phone Number of the billing address - postalCode
-
Type:
stringthe postal Code of the billing address - repositoryId
-
Type:
stringthe id of the billing address - state
-
Type:
stringthe state of the billing address
Nested Schema : derivedPriceListGroupType:objectThe derived price list group from the user's parent organization- repositoryId
-
Type:
stringRepository ID
Nested Schema : derivedSalePriceListType:objectThe derived sale price list from the user's parent organization- repositoryId
-
Type:
stringRepository ID
Nested Schema : derivedShippingSurchargePriceListType:objectThe derived shipping surcharge price list from the user's parent organization- repositoryId
-
Type:
stringRepository ID
Nested Schema : dynamicInternalOnlyPropertyType:objectThe value of the internalOnly dynamic propertyNested Schema : dynamicPropertyType:objectthe value of the dynamic propertyNested Schema : loyaltyProgramsNested Schema : parentOrganizationType:objectThis 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:
booleanthe status of the parent organization. Should be true or false - billingAddress
-
Type:
objectbillingAddressAdditional Properties Allowed:Default billing address of the profile - description
-
Type:
stringthe description of the parent organization - id
-
Type:
stringthe id of the parent organization - name
-
Type:
stringthe name of the parent organization - repositoryId
-
Type:
stringthe id of the parent organization - secondaryAddresses
-
Type:
arraysecondaryAddressesAdditional Properties Allowed:List of shipping addresses associated with profile. - shippingAddress
-
Type:
objectshippingAddressAdditional Properties Allowed:Default shipping address of the profile
Nested Schema : priceListGroupType:objectThe associated price list group for this user- repositoryId
-
Type:
stringRepository ID
Nested Schema : rolesNested Schema : secondaryOrganizationsNested Schema : shippingAddressType:objectDefault shipping address of the profile- address1
-
Type:
stringthe address1 of the shipping address - address2
-
Type:
stringthe address2 of the shipping address - address3
-
Type:
stringthe address3 of the shipping address. - city
-
Type:
stringthe city of the shipping address - country
-
Type:
stringthe country of the shipping address - county
-
Type:
stringthe county of the shipping address - firstName
-
Type:
stringthe first name of the shipping address - lastName
-
Type:
stringthe last name of the shipping address - phoneNumber
-
Type:
stringthe phone Number of the shipping address - postalCode
-
Type:
stringthe postal Code of the shipping address - repositoryId
-
Type:
stringthe id of the shipping address - state
-
Type:
stringthe state of the shipping address
Nested Schema : shippingAddressesNested Schema : shippingSurchargePriceListType:objectThe shipping surcharge price list for this user- repositoryId
-
Type:
stringRepository ID
Nested Schema : translationsNested Schema : itemsType:object- membershipId
-
Type:
stringmembershipId of the profile. - programId
-
Type:
stringprogramId of Loyalty Program - programName
-
Type:
stringprogramName of Loyalty Program - repositoryId
-
Type:
stringrepository Id - status
-
Type:
stringstatus of Enrollment
Nested Schema : billingAddressType:objectDefault billing address of the profile- repositoryId
-
Type:
stringthe id of the billing address
Nested Schema : secondaryAddressesNested Schema : shippingAddressType:objectDefault shipping address of the profile- repositoryId
-
Type:
stringthe id of the shipping address
Nested Schema : itemsType:object- repositoryId
-
Type:
stringthe id of the shipping address
Nested Schema : itemsType:object- function
-
Type:
stringFunction of the role which can be admin or buyer. - relativeTo
-
Type:
objectrelativeToAdditional Properties Allowed:Organization ID of the role. - repositoryId
-
Type:
stringRepository id of the role.
Nested Schema : relativeToType:objectOrganization ID of the role.- id
-
Type:
stringOrganization ID of the role to be assigned
Nested Schema : itemsType:object- active
-
Type:
booleanthe status of the organization. Should be true or false - billingAddress
-
Type:
objectbillingAddressAdditional Properties Allowed:Default billing address of the profile - description
-
Type:
stringDescription of the organization - name
-
Type:
stringthe name of the organization - repositoryId
-
Type:
stringRepository ID - secondaryAddresses
-
Type:
arraysecondaryAddressesAdditional Properties Allowed:List of shipping addresses associated with profile. - shippingAddress
-
Type:
objectshippingAddressAdditional Properties Allowed:Default shipping address of the profile
Nested Schema : billingAddressType:objectDefault billing address of the profile- address1
-
Type:
stringthe address1 of the billing address - address2
-
Type:
stringthe address2 of the billing address - city
-
Type:
stringthe city of the billing address - country
-
Type:
stringthe country of the billing address - county
-
Type:
stringthe county of the billing address - firstName
-
Type:
stringthe first name of the billing address - lastName
-
Type:
stringthe last name of the billing address - phoneNumber
-
Type:
stringthe phone Number of the billing address - postalCode
-
Type:
stringthe postal Code of the billing address - repositoryId
-
Type:
stringthe id of the billing address - state
-
Type:
stringthe state of the billing address
Nested Schema : secondaryAddressesNested Schema : shippingAddressType:objectDefault shipping address of the profile- address1
-
Type:
stringthe address1 of the shipping address - address2
-
Type:
stringthe address2 of the shipping address - city
-
Type:
stringthe city of the shipping address - country
-
Type:
stringthe country of the shipping address - county
-
Type:
stringthe county of the shipping address - firstName
-
Type:
stringthe first name of the shipping address - lastName
-
Type:
stringthe last name of the shipping address - phoneNumber
-
Type:
stringthe phone Number of the shipping address - postalCode
-
Type:
stringthe postal Code of the shipping address - repositoryId
-
Type:
stringthe id of the shipping address - state
-
Type:
stringthe state of the shipping address
Nested Schema : itemsType:object- address1
-
Type:
stringthe address1 of the shipping address - address2
-
Type:
stringthe address2 of the shipping address - city
-
Type:
stringthe city of the shipping address - country
-
Type:
stringthe country of the shipping address - county
-
Type:
stringthe county of the shipping address - firstName
-
Type:
stringthe first name of the shipping address - lastName
-
Type:
stringthe last name of the shipping address - phoneNumber
-
Type:
stringthe phone Number of the shipping address - postalCode
-
Type:
stringthe postal Code of the shipping address - repositoryId
-
Type:
stringthe id of the shipping address - state
-
Type:
stringthe state of the shipping address
Nested Schema : itemsType:object- address1
-
Type:
stringthe address1 of the shipping address - address2
-
Type:
stringthe address2 of the shipping address - address3
-
Type:
stringthe address3 of the shipping address - city
-
Type:
stringthe city of the shipping address - country
-
Type:
stringthe country of the shipping address - county
-
Type:
stringthe county of the shipping address - firstName
-
Type:
stringthe first name of the shipping address - lastName
-
Type:
stringthe last name of the shipping address - phoneNumber
-
Type:
stringthe phone Number of the shipping address - postalCode
-
Type:
stringthe postal Code of the shipping address - repositoryId
-
Type:
stringthe id of the shipping address - state
-
Type:
stringthe state of the shipping address
Nested Schema : itemsType:object- id
-
Type:
stringLocale Id
Example application/json
{ "total":3, "totalResults":3, "offset":0, "limit":3, "links":[ { "rel":"self", "href":"http://localhost:9080/ccadmin/v1/profiles?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":[ { "derivedPriceListGroup":null, "lastName":"jetu#$%^&test", "gender":"female", "catalog":null, "roles":[ { "function":"buyer", "repositoryId":"100006" } ], "locale":"en", "parentOrganization":null, "shippingSurchargePriceList":null, "profileType":"b2b_user", "translations":{ }, "id":"120015", "email":"test&@test.com", "daytimeTelephoneNumber":null, "derivedSalePriceList":null, "taxExempt":false, "receiveEmail":"yes", "active":true, "priceListGroup":null, "dateOfBirth":null, "firstName":"jetu&", "repositoryId":"120015", "shippingAddress":null, "lastActivity":"2017-01-09T19:21:39.000Z", "userType":null, "billingAddress":null, "derivedShippingSurchargePriceList":null, "secondaryOrganizations":[ ], "shippingAddresses":[ ] }, { "derivedPriceListGroup":null, "lastName":"!@#$%^&*", "gender":"female", "catalog":null, "roles":[ { "function":"buyer", "repositoryId":"100006" } ], "locale":"en", "parentOrganization":null, "shippingSurchargePriceList":null, "profileType":"b2b_user", "translations":{ }, "id":"130000", "email":"test1@abc.com", "daytimeTelephoneNumber":null, "derivedSalePriceList":null, "taxExempt":false, "receiveEmail":"yes", "active":true, "priceListGroup":null, "dateOfBirth":null, "firstName":"test1", "repositoryId":"130000", "shippingAddress":null, "lastActivity":"2017-01-09T19:21:39.000Z", "userType":null, "billingAddress":null, "derivedShippingSurchargePriceList":null, "secondaryOrganizations":[ ], "shippingAddresses":[ ] }, { "derivedPriceListGroup":null, "lastName":"Test", "gender":"female", "catalog":null, "roles":[ { "function":"buyer", "repositoryId":"100006" } ], "locale":"en", "parentOrganization":null, "shippingSurchargePriceList":null, "profileType":"b2b_user", "translations":{ }, "loyaltyPrograms":[ { "programName":"XTRAREWARDS", "repositoryId":100001, "membershipId":"abc123", "programId":"prog1", "status":"Enrolled" }, { "programName":"XTRAMILES", "repositoryId":100002, "membershipId":"xyz123", "programId":"prog2", "status":"Enrolled" } ], "id":"120008", "email":"test@test.com", "daytimeTelephoneNumber":null, "derivedSalePriceList":null, "taxExempt":false, "receiveEmail":"yes", "active":true, "priceListGroup":null, "dateOfBirth":null, "firstName":"test", "repositoryId":"120008", "shippingAddress":null, "lastActivity":"2017-01-09T19:21:39.000Z", "userType":null, "billingAddress":null, "derivedShippingSurchargePriceList":null, "secondaryOrganizations":[ ], "shippingAddresses":[ ] } ] }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'.| |22002|If there was no profile found with the given id| |22039|If there was any internal error while listing the profiles|BodyRoot Schema : errorModelType:object- devMessage
-
Type:
stringAn optional non-localized message containing technical information for developers - errorCode
-
Type:
stringThe numerical code identifying the error - errors
-
Type:
arrayerrorsAdditional Properties Allowed:An optional list of errors if multiple errors were encountered - message
-
Type:
stringThe localized message describing the error - moreInfo
-
Type:
stringAn optional non-localized message with more information - o:errorPath
-
Type:
stringAn optional machine readable description of where the error occurred - status
-
Type:
stringThe HTTP status code - type
-
Type:
stringThe URI to the HTTP state code definition
Nested Schema : errorsNested Schema : itemsType:object- devMessage
-
Type:
stringAn optional non-localized message containing technical information for developers - errorCode
-
Type:
stringThe numerical code identifying the error - message
-
Type:
stringThe localized message describing the error - moreInfo
-
Type:
stringAn optional non-localized message with more information - o:errorPath
-
Type:
stringAn optional machine readable description of where the error occurred - status
-
Type:
stringThe HTTP status code
Examples
Sample Response Payload returned by endpoint:
{ "total": 3, "totalResults": 3, "offset": 0, "limit": 3, "links": [{ "rel": "self", "href": "http://localhost:9080/ccadmin/v1/profiles?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": [ { "derivedPriceListGroup": null, "lastName": "jetu#$%^&test", "gender": "female", "catalog": null, "roles": [{ "function": "buyer", "repositoryId": "100006" }], "locale": "en", "parentOrganization": null, "shippingSurchargePriceList": null, "profileType": "b2b_user", "translations": {}, "id": "120015", "email": "test&@test.com", "daytimeTelephoneNumber": null, "derivedSalePriceList": null, "taxExempt": false, "receiveEmail": "yes", "active": true, "priceListGroup": null, "dateOfBirth": null, "firstName": "jetu&", "repositoryId": "120015", "shippingAddress": null, "lastActivity": "2017-01-09T19:21:39.000Z", "userType": null, "billingAddress": null, "derivedShippingSurchargePriceList": null, "secondaryOrganizations": [], "shippingAddresses": [] }, { "derivedPriceListGroup": null, "lastName": "!@#$%^&*", "gender": "female", "catalog": null, "roles": [{ "function": "buyer", "repositoryId": "100006" }], "locale": "en", "parentOrganization": null, "shippingSurchargePriceList": null, "profileType": "b2b_user", "translations": {}, "id": "130000", "email": "test1@abc.com", "daytimeTelephoneNumber": null, "derivedSalePriceList": null, "taxExempt": false, "receiveEmail": "yes", "active": true, "priceListGroup": null, "dateOfBirth": null, "firstName": "test1", "repositoryId": "130000", "shippingAddress": null, "lastActivity": "2017-01-09T19:21:39.000Z", "userType": null, "billingAddress": null, "derivedShippingSurchargePriceList": null, "secondaryOrganizations": [], "shippingAddresses": [] }, { "derivedPriceListGroup": null, "lastName": "Test", "gender": "female", "catalog": null, "roles": [{ "function": "buyer", "repositoryId": "100006" }], "locale": "en", "parentOrganization": null, "shippingSurchargePriceList": null, "profileType": "b2b_user", "translations": {}, "loyaltyPrograms": [ { "programName": "XTRAREWARDS", "repositoryId": 100001, "membershipId": "abc123", "programId": "prog1", "status": "Enrolled" }, { "programName": "XTRAMILES", "repositoryId": 100002, "membershipId": "xyz123", "programId": "prog2", "status": "Enrolled" } ], "id": "120008", "email": "test@test.com", "daytimeTelephoneNumber": null, "derivedSalePriceList": null, "taxExempt": false, "receiveEmail": "yes", "active": true, "priceListGroup": null, "dateOfBirth": null, "firstName": "test", "repositoryId": "120008", "shippingAddress": null, "lastActivity": "2017-01-09T19:21:39.000Z", "userType": null, "billingAddress": null, "derivedShippingSurchargePriceList": null, "secondaryOrganizations": [], "shippingAddresses": [] } ] }