listTypes
get
/ccadmin/v1/appeasementTypes
List appeasement types based on the search criteria entered.
Request
Supported Media Types
- application/json
Query Parameters
-
fields(optional): string
This controls which fields are returned in the response body.
-
limit(optional): integer
This is the field to specify the number of records to be fetched per REST call.
-
offset(optional): integer
This field specifies the offset/starting index from which data to be fetched.
-
q: string
Search criteria - Following are the fields supported by this param: |Field|Type|Description| |------------------|------------------|------------------| |active|boolean|active flag of the appeasement type| |isOrderRequired|boolean|specifies whether order is mandatory for the type| |id|string|id of the appeasement type| |description|string|description of the appeasement type| |displayName|string|name of the appeasement type| Search criteria in SCIM Format should be as: active eq true.
-
sort(optional): string
This field specifies the sort order of the list to be fetched.
-
totalResults(optional): boolean
Indicates if the total results should be included in the response.
Response
Supported Media Types
- application/json
200 Response
Following model is returned when operation succeeds.
Root Schema : listTypes_response
Type:
Show Source
object
-
items(optional):
array items
Array containing the object representation of appeasement types. See getType for detailed description of the values of each property.
-
limit(optional):
integer
Limit of number of appeasement types.
-
offset(optional):
integer
Numeric offset of the first appeasement type item returned.
-
sort(optional):
array sort
An array that specifies the sort order.
-
total(optional):
integer
Total number of appeasement types. Deprecated.
-
totalResults(optional):
integer
Total number of appeasement types.
Example:
{
"total":1,
"totalResults":1,
"offset":0,
"limit":250,
"sort":[
{
"property":"id",
"order":"asc"
}
],
"items":[
{
"displayName":"Order",
"description":"Appeasement to be applied on a given order",
"active":true,
"id":"order",
"isOrderRequired":true
}
]
}
Nested Schema : items
Type:
array
Array containing the object representation of appeasement types. See getType for detailed description of the values of each property.
Show Source
Nested Schema : getType_response
Type:
Show Source
object
-
active(optional):
boolean
Indicates whether appeasement type is enabled or disabled.
-
description(optional):
string
Description of the appeasement type.
-
displayName(optional):
string
Name of the appeasement type.
-
id(optional):
string
Id of the appeasement type.
-
isOrderRequired(optional):
boolean
Indicates whether order is mandatory for the type.
Example:
{
"displayName":"Order",
"description":"Appeasement to be applied on a given order",
"active":true,
"id":"order",
"isOrderRequired":true
}
Nested Schema : items
Type:
Show Source
object
-
order(optional):
string
Whether this property should be sorted ascending ("asc") or descending ("dsc").
-
property(optional):
string
The name of the property to use for sorting.
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:
Below is the list of error codes:
|Error Code|Description|
|------------------|------------------|
|85000|Invalid SCIM filter format.|
|85003|Invalid attribute in query|
|900025|An internal error occured while processing the input request|
Root Schema : errorModel
Type:
Show Source
object
-
devMessage(optional):
string
An optional non-localized message containing technical information for developers
-
errorCode(optional):
string
The numerical code identifying the error
-
errors(optional):
array errors
An optional list of errors if multiple errors were encountered
-
message(optional):
string
The localized message describing the error
-
moreInfo(optional):
string
An optional non-localized message with more information
-
o:errorPath(optional):
string
An optional machine readable description of where the error occurred
-
status(optional):
string
The HTTP status code
-
type(optional):
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(optional):
string
An optional non-localized message containing technical information for developers
-
errorCode(optional):
string
The numerical code identifying the error
-
message(optional):
string
The localized message describing the error
-
moreInfo(optional):
string
An optional non-localized message with more information
-
o:errorPath(optional):
string
An optional machine readable description of where the error occurred
-
status(optional):
string
The HTTP status code