Send Discount Code to Klaviyo Customer Profile via Shopify Flow

Hello!

I am trying to send a discount code from a discount code set called ‘Einmalkäufer Shopify Flow’

and send it to klaviyo to assign it as a custom field called “einmalkauf code” of a customer.

But its ending up in Klaviyo as empty and custom field is also not created. Can someone help?

Your query is invalid syntax. Look at the examples and docs for the correct syntax and fields you can use.

That said, I don’t think you need a query at all if you want the discounts on the order. Look at the fields discountCode, discountCodes, or discountApplications. The latter is usually the best to use, but depends on which type of discount you have.