searchProfiles
get
/ccagent/v1/profiles
Search Profiles. Get profiles by the search criteria entered. The search criteria include First Name, Last Name, Email, Postal Code, Phone Number .
Request
Supported Media Types
- application/json
Query Parameters
- fields
-
Type:
string
This controls which fields are returned in the response body. Applicable when queryFormat=SCIM- limit
Type:integer
This is the field to specify the number of records to be fetched per REST call. Applicable when queryFormat=SCIM- offset
Type:integer
This field specifies the offset/starting index from which data to be fetched. Applicable when queryFormat=SCIM- q
Type:string
Required:true
Search criteria - Following are the fields supported by this param: |Field|Type|Description| |------------------|------------------|------------------| |firstName|string|First name of the profile| |lastName|string|Last name of the profile| |phoneNumber|string|The phone Number of the shipping address.| |pageNumber|integer|The page number for pagination| |postalCode|string|The postal Code of the shipping address| |limit|integer|The batch size of the order records to be fetched together.| |email|string|email of the profile| Search criteria in SCIM Format should be as: firstName co "Kim". Searching with custom properties: For Text Search, add prefix "dynProps_" (case sensitive) to the name of custom property being searched. For example: For a custom property with name as isVipCustomer, use search criteria field as dynProps_isVipCustomer. For SCIM Search, use the custom property name as the search criteria field without any prefix. For example: For a custom property with name as isVipCustomer, use search criteria field as isVipCustomer.- queryFormat
Type:string
Should be SCIM if we are searching using SCIM query format- sort
Type:string
This field specifies the sort order of the list to be fetched. Applicable when queryFormat=SCIM- totalResults
Type:boolean
Indicates if the total results should be included in the response. Applicable when queryFormat=SCIMResponse
Supported Media Types- application/json
200 ResponseFollowing model is returned when operation succeeds.BodyRoot Schema : searchProfiles_response- items
-
Type:
array
itemsAdditional Properties Allowed:List of customer profiles. SCIM query response contains this property. - limit
-
Type:
integer
Limit of number of profiles. SCIM query response contains this property. - offset
-
Type:
integer
Numeric offset of the first item returned. SCIM query response contains this property. - profileList
-
Type:
array
profileListAdditional Properties Allowed:List of profiles. Non-SCIM query response contains this property. - sort
-
Type:
array
sortAdditional Properties Allowed:An array that specifies the sort order. SCIM query response contains this property. - total
-
Type:
integer
Total number of profiles. Deprecated. SCIM query response contains this property. - totalNoOfProfiles
-
Type:
integer
Total number of customer profiles present in search result. Non-SCIM query response contains this property. - totalResults
-
Type:
integer
Total number of profiles. SCIM query response contains this property.
Nested Schema : itemsNested Schema : profileListNested Schema : sortNested Schema : itemsType:object
-
Type:
string
Email. - firstName
-
Type:
string
First name. - id
-
Type:
string
Profile ID. - lastName
-
Type:
string
Last name. - parentOrganization
-
Type:
object
parentOrganizationAdditional Properties Allowed:The parent Organization associated with the B2B customer profile. - profileType
-
Type:
string
The type of the user. Possible values are b2b_user and b2c_user. - repositoryId
-
Type:
string
Profile ID. - secondaryOrganizations
-
Type:
array
secondaryOrganizationsAdditional Properties Allowed:The secondary organizations associated with the B2B customer profile. - shippingAddress
-
Type:
object
shippingAddressAdditional Properties Allowed:Details of the customer's shipping address.
Nested Schema : parentOrganizationType:object
The parent Organization associated with the B2B customer profile.- active
-
Type:
boolean
Indicates whether the organization is active - name
-
Type:
string
The name of the organization. - repositoryId
-
Type:
string
The repository id of the comment record.
Nested Schema : secondaryOrganizationsNested Schema : shippingAddressType:object
Details of the customer's 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
ID of shipping address.
Nested Schema : itemsType:object
- active
-
Type:
boolean
Indicates whether the organization is active - name
-
Type:
string
The name of the organization. - repositoryId
-
Type:
string
The repository id of the comment record.
Nested Schema : itemsType:object
- hasIncompleteOrder
-
Type:
boolean
Indicates whether profile has incomplete order or not. - latestOrderId
-
Type:
string
Id of latest order placed by customer. - numberOfOrders
-
Type:
integer
Total number of orders for the customer profile. - profileDetail
-
Type:
object
profileDetailAdditional Properties Allowed:Details of the customer profile
Nested Schema : profileDetailType:object
Details of the customer profile-
Type:
string
Email. - firstName
-
Type:
string
First name. - id
-
Type:
string
Profile ID. - lastName
-
Type:
string
Last name. - repositoryId
-
Type:
string
Profile ID. - shippingAddress
-
Type:
object
shippingAddressAdditional Properties Allowed:Details of the customer's shipping address.
Nested Schema : shippingAddressType:object
Details of the customer's 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
ID of shipping address.
Nested Schema : itemsType:object
- order
-
Type:
string
Whether this property should be sorted ascending ("asc") or descending ("dsc"). SCIM query response contains this property. - property
-
Type:
string
The name of the property to use for sorting. SCIM query response contains this property.
Example application/json
{ "profileList":[ { "profileDetail":{ "firstName":"Kim", "lastName":"Anderson", "repositoryId":"se-570031", "shippingAddress":{ "phoneNumber":"212-555-1977", "postalCode":"13202", "repositoryId":"se-980031" }, "id":"se-570031", "parentOrganization":null, "email":"kim@example.com" }, "numberOfOrders":43, "latestOrderId":"o10042", "hasIncompleteOrder":false } ], "hasMore":false, "links":[ { "rel":"self", "href":"http://localhost:9080/ccagentui/v1/profiles?q=%7BfirstName=kim%2ClastName=%22%22%2Climit=20%2CpageNumber=0%2CrequireCount=false%7D" } ], "totalNoOfProfiles":1 }
Default ResponseThe error response. The following are the internal error codes thrown by this API when the request processing fails in Oracle Commerce Cloud: Below is the list of error codes specific to Text Search: |Error Code|Description| |------------------|------------------| |100001|Search client internal error.| |100002|Invalid date format| |100003|No pagination info passed in the search reuqest.| |100004|Invalid search criteria passed in search request.| |100006|Invalid boolean value.| |100013|Text search configuration is not enabled. Please enable text search to fetch the records Below is the list of error codes specific to SCIM Search: |Error Code|Description| |------------------|------------------| |85003|Invalid attribute in queryBodyRoot 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:
{ "profileList": [{ "profileDetail": { "firstName": "Kim", "lastName": "Anderson", "repositoryId": "se-570031", "shippingAddress": { "phoneNumber": "212-555-1977", "postalCode": "13202", "repositoryId": "se-980031" }, "id": "se-570031", "parentOrganization": null, "email": "kim@example.com" }, "numberOfOrders": 43, "latestOrderId": "o10042", "hasIncompleteOrder": false }], "hasMore": false, "links": [{ "rel": "self", "href": "http://localhost:9080/ccagentui/v1/profiles?q=%7BfirstName=kim%2ClastName=%22%22%2Climit=20%2CpageNumber=0%2CrequireCount=false%7D" }], "totalNoOfProfiles": 1 }