Hello @mr1kai,
Great question!
This would really all be dependent on the information being passed by your metric/event. From my experience, if you were using one of the ecommerce integration which has a direct integration with Klaviyo such as Shopify, the default events passed by these ecommerce integrations does not provide stock levels as part of their metadata. This isn’t to say you wouldn’t be able to adjust this however.
To have stock levels provided as part of your metric’s event metadata, I would suggest reviewing your ecommerce platform’s backend to see if you could include this information to be passed to Klaviyo. If the ecommerce backend does not support including this information, an alternative solution would be creating your own custom event via API which would include your desired metadata. To achieve this, I would recommend working with a developer you are familiar with or finding a Klaviyo Partner who excels at developmental work.
In addition, I would further suggest taking a look at the following Help Center article we offer on using API to push your own custom events as well as some similar Community posts that touch upon this subject. I’ve included a few examples below:
I hope this helps!
David