Closed williamhibberd closed 2 years ago
You would need to create a custom serializer class that formatted the response how you want. For example, see the built-in JsonFeedV1Serializer class, which formats the response according to the JSON Feed spec.
I have been using the plugin following the steps here: https://klaviyoconnect.fostercommerce.com/Feed.html to create a Klaviyo product catalogue.
My data looks like this:
I am getting the error
Invalid format. The JSON feed must be a list of dictionaries.
when adding it to Klaviyo. Digging a bit deeper it looks like data is too deep, and I need to remove the "data" node as it's pushing the actual information that's needed too deep for Klaviyo to read.Is there a way to remove the "data" node with the Element API plugin as per Klaviyos catalog example: