Skip to main content
Solved

Back in stock custom fields

  • June 24, 2022
  • 1 reply
  • 333 views

Forum|alt.badge.img+2
  • Problem Solver I
  • 4 replies

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?

Best answer by alex.hong

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

View original
Did this topic or the replies in the thread help you find an answer to your question?

1 reply

alex.hong
Forum|alt.badge.img+58
  • Klaviyo Alum
  • 1552 replies
  • Answer
  • June 24, 2022

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