searchAccounts
get
/ccadmin/v1/selfservice/accounts/search
Search accounts in the customer data master. Note : This endpoint is operational only when customer data sync is enabled.
Request
Supported Media Types
- application/json
Query Parameters
-
keyword: string
The keyword used to search the account
-
limit: integer
The maximum number of items to return.
-
offset: integer
Numeric offset of the first item returned.
Response
Supported Media Types
- application/json
200 Response
Following model is returned when operation succeeds.
Root Schema : SearchAccount_response
Type:
Show Source
object
-
hasMore:
boolean
Returns true if more resources are available on the server than the subset returned in current page.
-
items:
array items
List of accounts.
-
limit:
integer
The number of items to return.
-
links:
array links
Links to pages
-
offset:
integer
Index of the first element to return.
-
totalResults:
integer
The total number of items.
Example:
{
"totalResults":542,
"offset":0,
"limit":1,
"hasMore":true,
"links":[
{
"rel":"self",
"href":"http://localhost:9080/ccadminui/v1/selfservice/accounts?keyword=FG&limit=1"
},
{
"rel":"next",
"href":"http://localhost:9080/ccadminui/v1/selfservice/accounts?keyword=FG&limit=1&offset=1"
}
],
"items":[
{
"primaryContact":"Laura Brown",
"name":"Oracle",
"primaryAddress":{
"formattedAddress":"36130 600 Oracle Avenue Street 2"
},
"partyNumber":"CDRM_11111",
"partyId":"100101114441",
"dunsNumber":"123456789"
}
]
}
Nested Schema : items
Type:
Show Source
object
-
dunsNumber:
string
DunsNumber of an account
-
name:
string
Name of an account
-
partyId:
number
The party ID of an account
-
partyNumber:
string
PartyNumber of an account
-
PrimaryAddress:
object PrimaryAddress
Primary Address of an account
-
PrimaryContact:
string
Primary contact of an account
Nested Schema : PrimaryAddress
Type:
object
Primary Address of an account
Show Source
-
formattedAddress:
string
Formatted Address
Nested Schema : items
Type:
object
400 Response
When request payload is not correct or properties are missing.
Root Schema : errorModel400
Type:
Show Source
object
-
errorCode:
string
The CMS error codeExample:
80205
-
message:
string
The HTTP error messageExample:
Required properties are missing or invalid
-
status:
string
The HTTP status codeExample:
400
Default Response
The default error response.
The following are the internal error codes thrown by this API:
|Error Code|Description|
|------------------|------------------|
|58001|Internal server error.|
|58002|JSON related error.|
|58003|Invalid configuration error.|
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