Logo
Salesforce Developers API Documentation

Query Eligible Products

GET {{_endpoint}}/services/data/v{{version}}/query/?q=SELECT Product2.Name, ProductSellingModelId, Product2.Id FROM ProductSellingModelOption Group By Product2.Name, Product2.Id, ProductSellingModelId

This query returns all the products that have a related Product Selling Model Option. To price a product with Subscription Management, the product must have a related Product Selling Model Option.

For more information, see Set Up Products and Pricing in Subscription Management.

 

Body PARAM

Key Datatype Required Description 
q
string



HEADERS

Key Datatype Required Description 
Content-Type
string




RESPONSES

status





Curl
curl -X GET '/services/data/v61.0/query/?q=SELECT Product2.Name, ProductSellingModelId, Product2.Id FROM ProductSellingModelOption Group By Product2.Name, Product2.Id, ProductSellingModelId ?q=SELECT Product2.Name, ProductSellingModelId, Product2.Id FROM ProductSellingModelOption Group By Product2.Name, Product2.Id, ProductSellingModelId ' -H 'Content-Type: application/json'

ENDPOINTS