Get Qualified Products Action
Retrieves the PricebookEntry IDs for products that a user is authorized to use for a given account and territories. When productPurpose isn’t specified, the action defaults to Quote. Allowed purpose values are Quote, Visit, and Order.
This action is available in API version 66.0 and later.
URI: /services/data/vXX.X/actions/standard/getQualifiedProducts
Where XX.X is the latest API version.
Formats: JSON, XML
HTTP Methods: POST
Authentication: Authorization: Bearer TOKEN
Where TOKEN is your OAuth access token.
| Input | Type | Description |
|---|---|---|
accountId | ID | Required. The ID of the account used to qualify products. |
territoryIds | ID | Required. The IDs of the territories used to qualify products. Accepts up to 200 IDs. |
pricebookId | ID | Required. The ID of the price book used to retrieve qualified price book entries. Invocable REST keys are case-sensitive; use pricebookId (lowercase b). |
catalogId | ID | Optional. The ID of the product catalog (prefix 0ZS). Required when categoryId is specified. |
categoryId | ID | Optional. The ID of the product category (prefix 0ZG). Requires catalogId. |
searchTerm | String | Optional. A search string used to filter products by name. |
productPurpose | String | Optional. The product territory availability purpose picklist API value. Allowed values are Quote, Visit, and Order. Defaults to Quote when omitted. |
usageType | String | Optional. The product territory availability usage type picklist API value. The allowed value is LifeSciences. Defaults to LifeSciences when omitted. |
pageLimit | Integer | Optional. The maximum number of price book entry IDs to return in a single response. Valid range is 1–200. Default value is 200. |
pageOffset | Integer | Optional. The zero-based offset used for pagination. Defaults to 0. |
currencyIsoCode | String | Optional in single-currency orgs. Required in multi-currency orgs; omitting it throws an error. When provided, the value must be a valid 3-letter uppercase ISO currency code, such as USD or EUR. |
| Output | Type | Description |
|---|---|---|
pricebookEntryIds | ID | A collection of qualified PricebookEntry IDs for the current page. Invocable REST keys are case-sensitive. Use pricebookEntryIds (lowercase b). The number of IDs returned in one response is limited by pageLimit (1–200, default value is 200), not by the invocable collection capacity. |
hasMoreRecords | Boolean | Indicates whether more qualified price book entries are available beyond the current page. |
displayCurrencyIsoCode | String | The ISO currency code used to display the returned price book entries. |
This example retrieves up to 50 qualified price book entry IDs for an account and territory, filtered by catalog, category, search term, purpose, and currency.
Example request
Example response