Skip to main content

We got the back in stock flow working in our Shopware 6 shop.

But we run into an issue where we want to know the language/store/storefront on which the customer subscribed to the back in stock list. This so we can communicate in their language.

Just got off the chat with support and David C. helped me with the email template question I had, and said that for the above issue, it would just be a simple question of adding an additional field to the call.

We tried it:

curl 'https://a.klaviyo.com/api/v1/catalog/subscribe' 
--data 'a=ID&email=test@klaviyo.com&variant=970997f8f2384dbaa2a727ea486590ed&platform=api&language=Nederlands'

I get a success message, the email gets added to the back to stock. 

 

 

But language or any additional field we add, does not go through.

Any suggestions?

Hi there @MarcD,

Thanks for sharing. I’ve received word regarding this case and I believe this might be what you’re looking for:

At this time, it's not possible to pass additional custom properties to the Back in Stock subscription endpoint, and only the properties documented in our developer documentation are accepted. What you could do in this case would be to make an additional call to our identify API endpoint to add the customer's language as a custom property to their profile, which you could then use for filtering purposes in a segment or flow.  More information on that here: https://developers.klaviyo.com/en/docs/identify-api-reference.

 

Thanks,

Alex


Reply