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:
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.- preview
Type:string
If true, then preview profiles will be searched..- q
Type:string
Query 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:string
This field determines the sort order of the list to be fetched.- useAdvancedQParser
Type:boolean
This 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:
string
The 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:
array
itemsAdditional Properties Allowed:list of shopper profiles - limit
-
Type:
integer
Number of records to be fetched. - offset
-
Type:
integer
The offset - total
-
Type:
integer
Total number of records present in database matching the searched string. - totalResults
-
Type:
integer
The total number of records fetched.
Nested Schema : itemsNested Schema : itemsType:object
- active
-
Type:
boolean
the user status of the profile. Should be true or false - billingAddress
-
Type:
object
billingAddressAdditional Properties Allowed:Default billing address of the profile - catalog
-
Type:
string
This 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:
string
The date of birth of the profile user. - daytimeTelephoneNumber
-
Type:
string
the phone Number of the profile - derivedPriceListGroup
-
Type:
object
derivedPriceListGroupAdditional Properties Allowed:The derived price list group from the user's parent organization - derivedSalePriceList
-
Type:
object
derivedSalePriceListAdditional Properties Allowed:The derived sale price list from the user's parent organization - derivedShippingSurchargePriceList
-
Type:
object
derivedShippingSurchargePriceListAdditional Properties Allowed:The derived shipping surcharge price list from the user's parent organization - dynamicInternalOnlyProperty
-
Type:
object
dynamicInternalOnlyPropertyAdditional Properties Allowed:The value of the internalOnly dynamic property - dynamicProperty
-
Type:
object
dynamicPropertyAdditional Properties Allowed:the value of the dynamic property -
Type:
string
the email address of the profile - firstName
-
Type:
string
the first name of the profile - gender
-
Type:
string
The gender of the profile user. - id
-
Type:
string
the id of the profile to retrieve - lastActivity
-
Type:
string
Last activity date of the user - lastName
-
Type:
string
the last name of the profile - locale
-
Type:
string
the locale of the request/response - loyaltyPrograms
-
Type:
array
loyaltyProgramsAdditional Properties Allowed:Loyalty Programs Information - 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 - priceListGroup
-
Type:
object
priceListGroupAdditional Properties Allowed:The associated price list group for this user - profileType
-
Type:
string
This attribute is added for account based commerce. It's value is 'b2b_user' - receiveEmail
-
Type:
string
this is site specific 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. - secondaryOrganizations
-
Type:
array
secondaryOrganizationsAdditional 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:
object
shippingAddressAdditional Properties Allowed:Default shipping address of the profile - shippingAddresses
-
Type:
array
shippingAddressesAdditional Properties Allowed:List of shipping addresses associated with profile. - shippingSurchargePriceList
-
Type:
object
shippingSurchargePriceListAdditional Properties Allowed:The shipping surcharge price list for this user - taxExempt
-
Type:
boolean
Indicates tax exemption status.True or False - translations
-
Type:
array
translationsAdditional Properties Allowed:List of available locales for the user - userType
-
Type:
integer
Type of the user(property not used currently)
Nested Schema : billingAddressType:object
Default billing address of the profile- address1
-
Type:
string
the address1 of the billing address - address2
-
Type:
string
the address2 of the billing address - address3
-
Type:
string
the address3 of the shipping address. - city
-
Type:
string
the city of the billing address - country
-
Type:
string
the country of the billing address - county
-
Type:
string
the county of the billing address - firstName
-
Type:
string
the first name of the billing address - lastName
-
Type:
string
the last name of the billing address - phoneNumber
-
Type:
string
the phone Number of the billing address - postalCode
-
Type:
string
the postal Code of the billing address - repositoryId
-
Type:
string
the id of the billing address - state
-
Type:
string
the state of the billing address
Nested Schema : derivedPriceListGroupType:object
The derived price list group from the user's parent organization- repositoryId
-
Type:
string
Repository ID
Nested Schema : derivedSalePriceListType:object
The derived sale price list from the user's parent organization- repositoryId
-
Type:
string
Repository ID
Nested Schema : derivedShippingSurchargePriceListType:object
The derived shipping surcharge price list from the user's parent organization- repositoryId
-
Type:
string
Repository ID
Nested Schema : dynamicInternalOnlyPropertyType:object
The value of the internalOnly dynamic propertyNested Schema : dynamicPropertyType:object
the value of the dynamic propertyNested Schema : loyaltyProgramsNested 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
the status of the parent organization. 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:
array
secondaryAddressesAdditional Properties Allowed:List of shipping addresses associated with profile. - shippingAddress
-
Type:
object
shippingAddressAdditional Properties Allowed:Default shipping address of the profile
Nested Schema : priceListGroupType:object
The associated price list group for this user- repositoryId
-
Type:
string
Repository ID
Nested Schema : rolesNested Schema : secondaryOrganizationsNested Schema : shippingAddressType:object
Default shipping address of the profile- address1
-
Type:
string
the address1 of the shipping address - address2
-
Type:
string
the address2 of the shipping address - address3
-
Type:
string
the address3 of the shipping address. - city
-
Type:
string
the city of the shipping address - country
-
Type:
string
the country of the shipping address - county
-
Type:
string
the county of the shipping address - firstName
-
Type:
string
the first name of the shipping address - lastName
-
Type:
string
the last name of the shipping address - phoneNumber
-
Type:
string
the phone Number of the shipping address - postalCode
-
Type:
string
the postal Code of the shipping address - repositoryId
-
Type:
string
the id of the shipping address - state
-
Type:
string
the state of the shipping address
Nested Schema : shippingAddressesNested Schema : shippingSurchargePriceListType:object
The shipping surcharge price list for this user- repositoryId
-
Type:
string
Repository ID
Nested Schema : translationsNested Schema : itemsType:object
- membershipId
-
Type:
string
membershipId of the profile. - programId
-
Type:
string
programId of Loyalty Program - programName
-
Type:
string
programName of Loyalty Program - repositoryId
-
Type:
string
repository Id - status
-
Type:
string
status of Enrollment
Nested Schema : billingAddressType:object
Default billing address of the profile- repositoryId
-
Type:
string
the id of the billing address
Nested Schema : secondaryAddressesNested Schema : shippingAddressType:object
Default shipping address of the profile- repositoryId
-
Type:
string
the id of the shipping address
Nested Schema : itemsType:object
- repositoryId
-
Type:
string
the id of the shipping address
Nested Schema : itemsType:object
- function
-
Type:
string
Function of the role which can be admin or buyer. - relativeTo
-
Type:
object
relativeToAdditional Properties Allowed:Organization ID of the role. - repositoryId
-
Type:
string
Repository id of the role.
Nested Schema : relativeToType:object
Organization ID of the role.- id
-
Type:
string
Organization ID of the role to be assigned
Nested Schema : itemsType:object
- active
-
Type:
boolean
the status of the organization. Should be true or false - billingAddress
-
Type:
object
billingAddressAdditional Properties Allowed:Default billing address of the profile - description
-
Type:
string
Description of the organization - name
-
Type:
string
the name of the organization - repositoryId
-
Type:
string
Repository ID - secondaryAddresses
-
Type:
array
secondaryAddressesAdditional Properties Allowed:List of shipping addresses associated with profile. - shippingAddress
-
Type:
object
shippingAddressAdditional Properties Allowed:Default shipping address of the profile
Nested Schema : billingAddressType:object
Default billing address of the profile- address1
-
Type:
string
the address1 of the billing address - address2
-
Type:
string
the address2 of the billing address - city
-
Type:
string
the city of the billing address - country
-
Type:
string
the country of the billing address - county
-
Type:
string
the county of the billing address - firstName
-
Type:
string
the first name of the billing address - lastName
-
Type:
string
the last name of the billing address - phoneNumber
-
Type:
string
the phone Number of the billing address - postalCode
-
Type:
string
the postal Code of the billing address - repositoryId
-
Type:
string
the id of the billing address - state
-
Type:
string
the state of the billing address
Nested Schema : secondaryAddressesNested Schema : shippingAddressType:object
Default shipping address of the profile- address1
-
Type:
string
the address1 of the shipping address - address2
-
Type:
string
the address2 of the shipping address - city
-
Type:
string
the city of the shipping address - country
-
Type:
string
the country of the shipping address - county
-
Type:
string
the county of the shipping address - firstName
-
Type:
string
the first name of the shipping address - lastName
-
Type:
string
the last name of the shipping address - phoneNumber
-
Type:
string
the phone Number of the shipping address - postalCode
-
Type:
string
the postal Code of the shipping address - repositoryId
-
Type:
string
the id of the shipping address - state
-
Type:
string
the state of the shipping address
Nested Schema : itemsType:object
- address1
-
Type:
string
the address1 of the shipping address - address2
-
Type:
string
the address2 of the shipping address - city
-
Type:
string
the city of the shipping address - country
-
Type:
string
the country of the shipping address - county
-
Type:
string
the county of the shipping address - firstName
-
Type:
string
the first name of the shipping address - lastName
-
Type:
string
the last name of the shipping address - phoneNumber
-
Type:
string
the phone Number of the shipping address - postalCode
-
Type:
string
the postal Code of the shipping address - repositoryId
-
Type:
string
the id of the shipping address - state
-
Type:
string
the state of the shipping address
Nested Schema : itemsType:object
- address1
-
Type:
string
the address1 of the shipping address - address2
-
Type:
string
the address2 of the shipping address - address3
-
Type:
string
the address3 of the shipping address - city
-
Type:
string
the city of the shipping address - country
-
Type:
string
the country of the shipping address - county
-
Type:
string
the county of the shipping address - firstName
-
Type:
string
the first name of the shipping address - lastName
-
Type:
string
the last name of the shipping address - phoneNumber
-
Type:
string
the phone Number of the shipping address - postalCode
-
Type:
string
the postal Code of the shipping address - repositoryId
-
Type:
string
the id of the shipping address - state
-
Type:
string
the state of the shipping address
Nested Schema : itemsType:object
- id
-
Type:
string
Locale 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:
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: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": [] } ] }