WP Webhooks Issue

[ad_1]

Hello! I'm having a real tough time with the WP Webhooks plugin at the moment. I've got some requests in from support but they seem slow to hear back from at times.

So, what I'm wanting to do is receive item price/availability notifications from this website GlassIt. They send JSON packets with this body:

{

}

So, with that info I'm trying to set up a webhook that creates or updates a post. Preferably this post will be a custom post type of my creation using CPT UI, and ACF. So currently I've tried to download the info as a file and I couldn't seem to locate the files that were supposedly being created.

I tried to create posts with the webhook, but that didn't seem to work either.

Finally, I tried to do a custom PHP function using some code that ChatGPT cooked up and expectedly that didn't work either.

I'm thinking I may be approaching this incorrectly, and perhaps I should be sending this data to a central database with the webhook and then populating posts or something?

The end goal is to have a grid of posts showing the lowest price available for a particular item, like a deal aggregator.

Any advice on the matter would be appreciated. I've included some screengrabs from some testing using Postman, my current data mapping setup on WP Webhooks, and some request logs. Thanks

Data Mapping:
{"template_settings":{"wpwhpro_data_mapping_whitelist_payload":"none"},"template_data":[{"new_key":"itemURL","singles":["{\"settings\":{\"wpwhpro_data_mapping_value_type\":\"key_mapping\",\"wpwhpro_data_mapping_convert_data\":\"none\",\"wpwhpro_data_mapping_decode_data\":\"none\",\"wpwhpro_data_mapping_fallback_value\":\"\"},\"value\":\"_meta.product_url\"}"]},{"new_key":"price","singles":["{\"settings\":{\"wpwhpro_data_mapping_value_type\":\"key_mapping\",\"wpwhpro_data_mapping_convert_data\":\"none\",\"wpwhpro_data_mapping_decode_data\":\"none\",\"wpwhpro_data_mapping_fallback_value\":\"\"},\"value\":\"_meta.price\"}"]},{"new_key":"type","singles":["{\"settings\":{\"wpwhpro_data_mapping_value_type\":\"key_mapping\",\"wpwhpro_data_mapping_convert_data\":\"none\",\"wpwhpro_data_mapping_decode_data\":\"none\",\"wpwhpro_data_mapping_fallback_value\":\"\"},\"value\":\"_meta.price_type\"}"]}]}

https://preview.redd.it/ki22kvrvyxfd1.png?width=1920&format=png&auto=webp&s=90d5f572cb9129e6aaecdc109f87ce252bd73eda

https://preview.redd.it/uqy7uprvyxfd1.png?width=1920&format=png&auto=webp&s=c0e770a4d4cd2db7f9c7d1e04d1b454e3e53198a

https://preview.redd.it/vz2loqrvyxfd1.png?width=1920&format=png&auto=webp&s=914f5278dd4fca7458e2f86a5fb6ef22afbd8d6c

https://preview.redd.it/h766x0t5zxfd1.png?width=1920&format=png&auto=webp&s=e64c17547e8fd6366054365a91b4160d6c2d22d0

[ad_2]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer