Search for Products
post
/rest/v18/products/actions/search
Use this endpoint to filter CPQ products using the specified search criteria.
Request
Supported Media Types
- application/json
Root Schema : Product Search Collection Request Definitions
Type:
object
Title:
Show Source
Product Search Collection Request Definitions
-
context:
object Product Search Context
Title:
Product Search Context
Context definition for product search. -
criteria:
object Query Definition
Title:
Query Definition
Captures the query definition for the current resource request.
Nested Schema : Product Search Context
Type:
object
Title:
Product Search Context
Context definition for product search.
Show Source
-
commerce:
object Commerce Data
Title:
Commerce Data
Transaction data for products search. -
pricebookVarName:
string
Title:
Pricebook Variable Name
String value that specifies the variable Name of the pricebook.
Nested Schema : Query Definition
Type:
object
Title:
Query Definition
Captures the query definition for the current resource request.
Show Source
-
actions:
array actions
Array of actions names, whose state is requested in the state object response.
-
childDefs:
array childDefs
-
enableHierarchy:
boolean
Parameter value should be true to execute hierarchy search and sort. Default value is false.
-
excludeFieldTypes:
array excludeFieldTypes
Array of field names that you want to exclude in the response.
-
expand:
array expand
Array of child resource names that you want to expand so that the contents return with the parent in the same request.
-
expandedDomainCriteria:
array expandedDomainCriteria
Map of dynamic menu field names, whose expanded domains are requested in the state object response, to a map of criteria, which are meant for filtering dynamic menu options. The criteria map should contain the node(s) information when dynamic menus on LIG are expanded. The criteria map also contains the search string. The search strings support contains, and are case-insensitive.
-
expandedDomains:
array expandedDomains
Array of field names, whose expanded domains are requested in the state object response.
-
expandNodes:
boolean
Boolean value that only be available when enableHierarchy is true. True = all nodes will be expanded; False = All nodes will be collapsed.Default value is true.
-
fields:
array fields
Array of field names that you wanted returned in a request.
-
groups:
array groups
Array of group names, whose state is requested in the state object response.
-
limit:
integer
Positive integer value that specifies the maximum number of items returned by the server.
-
nodesExceptionList:
array nodesExceptionList
Array of document_number, recording the nodes that violate current expandNodes flag
-
offset:
integer
Non-negative integer values that specifies the index of the first item to be returned. The offset index begins at 0. By default, the offset is 0, which returns all items starting from the first item in the collection.
-
orderBy:
array orderBy
Array of field names, each optionally followed by asc or desc, that specifies the order of items returned in the response payload.
-
q:
string
Filter (a ???where???clause) to restrict the items returned in the collection. By default, no filtering is applied.
-
state:
boolean
Boolean value that specifies whether to calculate the state property. By default, this value is set to false indicating that state is not calculated.
-
totalResults:
boolean
Boolean value that specifies whether to calculate the totalResults property. By default, this value is set to false indicating that totalResults is not calculated.
Nested Schema : Commerce Data
Type:
object
Title:
Commerce Data
Transaction data for products search.
Show Source
-
cacheInstanceId:
string
Title:
Cache Instance Id
The unique identifier for the entry of transaction data stored in the cache. This typically is obtained from first createTransaction or OpenTransaction action to avoid reload transaction data from db. -
currencyCode:
string
Title:
Currency Code
The currencyCode value in which the attribute is represented -
id:
string
Title:
Transaction Id
Current Unique Buyside ID of the transaction. -
mainDocument:
object Main Document Data
Title:
Main Document Data
The transaction's main document data. -
process:
object Process
Title:
Process
The transaction's process meta-data.
Nested Schema : Main Document Data
Type:
object
Title:
Main Document Data
The transaction's main document data.
Show Source
-
attributes:
object Attributes
Title:
Attributes
A set of key, value pairs with key being attribute's variableName and value being the value of the attribute. If it's an msm, it can take list of values in items array. -
variableName:
string
Title:
Main Document Variable Name
The variable name of the main document that the current transaction data belongs to.
Nested Schema : Process
Type:
object
Title:
Process
The transaction's process meta-data.
Show Source
-
variableName:
string
Title:
Process Variable Name
The variable name of the process that the current transaction data belongs to.
Nested Schema : Attributes
Type:
object
Title:
Attributes
A set of key, value pairs with key being attribute's variableName and value being the value of the attribute. If it's an msm, it can take list of values in items array.
Nested Schema : actions
Type:
array
Array of actions names, whose state is requested in the state object response.
Show Source
Nested Schema : childDefs
Type:
Show Source
array
-
Array of:
object Child query criteria.
Title:
Child query criteria.
Captures the query criteria for the child resource.
Nested Schema : excludeFieldTypes
Type:
array
Array of field names that you want to exclude in the response.
Show Source
Nested Schema : expand
Type:
array
Array of child resource names that you want to expand so that the contents return with the parent in the same request.
Show Source
Nested Schema : expandedDomainCriteria
Type:
array
Map of dynamic menu field names, whose expanded domains are requested in the state object response, to a map of criteria, which are meant for filtering dynamic menu options. The criteria map should contain the node(s) information when dynamic menus on LIG are expanded. The criteria map also contains the search string. The search strings support contains, and are case-insensitive.
Show Source
Nested Schema : expandedDomains
Type:
array
Array of field names, whose expanded domains are requested in the state object response.
Show Source
Nested Schema : fields
Type:
array
Array of field names that you wanted returned in a request.
Show Source
Nested Schema : groups
Type:
array
Array of group names, whose state is requested in the state object response.
Show Source
Nested Schema : nodesExceptionList
Type:
array
Array of document_number, recording the nodes that violate current expandNodes flag
Show Source
Nested Schema : orderBy
Type:
array
Array of field names, each optionally followed by asc or desc, that specifies the order of items returned in the response payload.
Show Source
Nested Schema : Child query criteria.
Type:
object
Title:
Child query criteria.
Captures the query criteria for the child resource.
Show Source
-
name:
string
Rest alias name of the child resource this query belongs to.
-
queryDef:
object Query Definition
Title:
Query Definition
Captures the query definition for the current resource request. -
recursive:
boolean
Boolean value that specifies whether this query is a recursive expand on the current child resource query.
Response
Supported Media Types
- application/json
Default Response
Root Schema : Product Search Collection Response Definitions
Type:
object
Title:
Show Source
Product Search Collection Response Definitions
-
result:
object Product Collection Definitions
Title:
Product Collection Definitions
Nested Schema : Product Collection Definitions
Type:
object
Title:
Show Source
Product Collection Definitions
-
count:
integer
The number of resource instances returned in the current range.
-
hasMore:
boolean
Returns true if more resources are available on the server than the subset returned in current page.
-
items:
array items
-
limit:
integer
The actual paging size used by the server.
-
offset:
integer
The offset used in the current page.
-
totalResults:
integer
Capture the total count of the resource instances, which not only includes the instances in the current range, but all instances on the server that satisfy the request.
Nested Schema : items
Type:
Show Source
array
-
Array of:
object Product Instance Definitions
Title:
Product Instance Definitions
Nested Schema : Product Instance Definitions
Type:
object
Title:
Show Source
Product Instance Definitions
-
bomItemVariableName:
string
Title:
BOM Item Variable Name
The variable name of the BOM item -
description:
string
Title:
Description
Description of the Product -
id:
integer
Title:
Id
Resource ID -
label:
string
Title:
Label
Product label -
listPrice:
string
Title:
List Price
List Price of the Product -
model:
string
Title:
Model
Name of the model -
modelPath:
string
Title:
Model Path Variable Name
Uniquely identifies a product mode -
partNumber:
string
Title:
Part Number
Part number of the Product -
productIdentifier:
string
Title:
Product Identifier
Uniquely identifies a Product -
productType:
object Product Type
Title:
Product Type
Type of The Product -
status:
object Status
Title:
Status
Workflow status of this product
Nested Schema : Product Type
Type:
object
Title:
Product Type
Type of The Product
Show Source
-
displayValue:
string
Title:
Display Value
Translated display name of the type for which fixed list of values can be defined. -
id:
integer
Title:
Id
Primary Key of the fixed list of value resource. -
lookupCode:
string
Title:
Lookup Code
Language independent code of the fixed list of value.
Nested Schema : Status
Type:
object
Title:
Status
Workflow status of this product
Show Source
-
displayValue:
string
Title:
Display Value
Translated display name of the type for which fixed list of values can be defined. -
id:
integer
Title:
Id
Primary Key of the fixed list of value resource. -
lookupCode:
string
Title:
Lookup Code
Language independent code of the fixed list of value.