https:\/\/developers.hubspot.com\/docs\/reference\/api\/crm\/objects\/products#post-%2Fcrm%2Fv3%2Fobjects%2Fproducts%2Fsearch<\/a><\/P>\u00a0<\/P>
but I’m always getting\u00a0
<\/P>code: 400,
\nstatus: ‘error’,
\nmessage: ‘There was a problem with the request.’
This is my code:<\/P>const PublicObjectSearchRequest = {
\n properties: [“name”],
\n filterGroups: [
\n {
\n “filters”:[
\n {
\n “propertyName”:”sku”,
\n “value”: “SSCRV”,
\n “operator”:”EQ”
\n }
\n ]
\n }
\n ]
\n };<\/p>\n
const productResults = await hubspotClient.crm.products.searchApi.doSearch(PublicObjectSearchRequest);
Would anyone please point me where I’m getting it wrong?
\u00a0<\/P><\/p>\n","protected":false},"excerpt":{"rendered":"
I’m trying to use this endpoint:https:\/\/developers.hubspot.com\/docs\/reference\/api\/crm\/objects\/products#post-%2Fcrm%2Fv3%2Fobjects%2Fproducts%2Fsearch\u00a0but I’m always getting\u00a0code: 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 […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[14],"tags":[],"_links":{"self":[{"href":"http:\/\/gogetmuscle.com\/index.php\/wp-json\/wp\/v2\/posts\/828"}],"collection":[{"href":"http:\/\/gogetmuscle.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/gogetmuscle.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/gogetmuscle.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/gogetmuscle.com\/index.php\/wp-json\/wp\/v2\/comments?post=828"}],"version-history":[{"count":1,"href":"http:\/\/gogetmuscle.com\/index.php\/wp-json\/wp\/v2\/posts\/828\/revisions"}],"predecessor-version":[{"id":829,"href":"http:\/\/gogetmuscle.com\/index.php\/wp-json\/wp\/v2\/posts\/828\/revisions\/829"}],"wp:attachment":[{"href":"http:\/\/gogetmuscle.com\/index.php\/wp-json\/wp\/v2\/media?parent=828"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/gogetmuscle.com\/index.php\/wp-json\/wp\/v2\/categories?post=828"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/gogetmuscle.com\/index.php\/wp-json\/wp\/v2\/tags?post=828"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}