Logo
Salesforce Developers API Documentation

Search products by search term

POST {{orgUrl}}/services/data/v{{apiVersion}}/commerce/webstores/{{webstoreId}}/search/product-search

Uses the variable productSearchTerm to search for products in the webstore. Sets the first returned product in the variable productId.

 

Body PARAM

Key Datatype Required Description 



HEADERS

Key Datatype Required Description 
Content-Type
string




RESPONSES

status





Curl
curl -X POST '/services/data/v57.0/commerce/webstores//search/product-search' -H 'Content-Type: application/json' -d '{"searchTerm":"coffee"}'

ENDPOINTS