[Suspected Bug] Creating a Smart Collection filtered by metafield

I found what seems to be a bug while creating a Smart Collection via the Rest API to filter by product metafields.

I pass in the condition_object_id value as a number, but when I request it, I see it’s saved as a string, which breaks the functionality (see images below).

As you can see in the frontend image, it breaks the page’s functionality in two ways:

  1. It can’t render the rule
  2. The rule isn’t functional

However, when I reconfigure the collection from the frontend, the API returns condition_object_id as a number, and everything works.

This leads to me believe that it’s a rest API issue, being that’s how the bug is reproducible (and the frontend doesn’t use it).

Hi Menachems,

I’ve flagged with to our API support team to investigate - will report back asap!

1 Like

Hi again Menachems,

Just to update - our team has confirmed this is a bug on our side and are working on a fix.

1 Like