Webhook with multiple data structures

We have a Webhook that we use to integrate with our ERP. The ERP sends notifications for multiple operations (add customer, new invoice…), and allow a single integration.

We have been using the Webhook to receive notifications of New customers. And now we want to use it for the invoices generated on the ERP. So, we can trigger events on the marketing tool.

However, for New Invoice the Data structure is completely different, from the structure of New Customer. Only a field with the ACTION is common for all the operations.
So, despite in the “History” I can see different structures, depending on the ACTION, I’m not able to use them, because I’ve already parsed the structure of New Customer (And I want to continue using it).

There is any way that we can have multiple data structures for a single webhook?

Welcome to the Make community!

Yes, you definitely can, but it can only store one “sample” structure at a time.

To switch to a different structure, you can simply ask it to “relearn” another type of request.

Hope this helps! Let me know if there are any further questions or issues. P.S.: investing some effort into the tutorials in the Make Academy will save you lots of time and frustration using Make!

@samliew

Thanks for your answer @samliew
The problem is that we need both structures to live together. And being able to have both new customer and new invoice calls.

That’s a great idea! I’m sure others would agree that this is a nice feature to have.

You can submit this suggestion to the Idea exchange, under App Improvement Ideas

Don’t forget to search for it first, just in case someone already suggested it, so that you don’t end up creating a duplicate.
Screenshot_2024-01-17_130153

Hope this helps! Let me know if there are any further questions or issues. P.S.: investing some effort into the tutorials in the Make Academy will save you lots of time and frustration using Make!

@samliew