GOGETMUSCLE Community Product Search API endpoint

Product Search API endpoint

I’m trying to use this endpoint:
https://developers.hubspot.com/docs/reference/api/crm/objects/products#post-%2Fcrm%2Fv3%2Fobjects%2Fproducts%2Fsearch

but I’m always getting 

code: 400,
status: ‘error’,
message: ‘There was a problem with the request.’


This is my code:

const PublicObjectSearchRequest = {
properties: [“name”],
filterGroups: [
{
“filters”:[
{
“propertyName”:”sku”,
“value”: “SSCRV”,
“operator”:”EQ”
}
]
}
]
};

const productResults = await hubspotClient.crm.products.searchApi.doSearch(PublicObjectSearchRequest);


Would anyone please point me where I’m getting it wrong?

Leave a Reply

Your email address will not be published.

Related Post